Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions reai_toolkit/app/components/dialogs/matching_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Ui_MatchingPanel,
)

print("[AnnDialog] Qt version:", QT_VER)
logger.debug(f"[AnnDialog] Qt version: {QT_VER}")

DEBOUNCE_MS = 250

Expand Down Expand Up @@ -218,7 +218,7 @@ def __init__(

self._progress_bar = self.ui.loadingBar if hasattr(self.ui, "loadingBar") else None
if self._progress_bar is not None:
print("[AnnDialog] Progress bar found")
logger.debug("[AnnDialog] Progress bar found")
self._progress_bar.setMinimum(0)
self._progress_bar.setMaximum(0)

Expand Down Expand Up @@ -705,7 +705,7 @@ def start_ann(self):
debug_all=True if self.ui.chkDebugSymbols.isChecked() else None,
)

print(f"[AnnDialog] Starting ANN with args: {gen_kwargs}")
logger.debug(f"[AnnDialog] Starting ANN with args: {gen_kwargs}")

self.stop_ann() # ensure previous worker is cleaned up

Expand All @@ -732,7 +732,7 @@ def on_ann_error(self, msg: str):
if self._progress_bar:
self._progress_bar.setVisible(False)
self.toggle_search_ui(pause=False)
print(f"[AnnDialog] ANN worker error: {msg}")
logger.error(f"[AnnDialog] ANN worker error: {msg}")
self.error_dialog = ErrorDialog(error_message=msg, parent=self)
self.error_dialog.show()

Expand All @@ -746,7 +746,7 @@ def stop_ann(self):
try:
self._matching_worker.stop()
except Exception as e:
print(f"[AnnDialog] Failed to stop ANN worker: {e}")
logger.debug(f"[AnnDialog] Failed to stop ANN worker: {e}")
pass
if self._matching_thread is not None:
# Let it exit naturally; Qt handles cleanup via the signals we set
Expand All @@ -763,7 +763,7 @@ def on_ann_event(self, ev):
etype = getattr(ev, "event", None)
etype: MatchEvent

print(
logger.debug(
f"[AnnDialog] ANN event: {etype}, completed: {getattr(ev, 'completed', None)}/{getattr(ev, 'total', None)}, ok: {getattr(ev, 'ok', None)}"
)

Expand Down Expand Up @@ -978,7 +978,7 @@ def display_matching_results_single_function(self, query: str = ""):
table.setWordWrap(True)
table.resizeRowsToContents()

print(
logger.debug(
f"Single: Displayed {len(self.matching_results.results[0].matched_functions)} ANN results"
)

Expand Down Expand Up @@ -1202,7 +1202,7 @@ def select_all() -> None:
self.ui.btnResultClearAll.clicked.connect(clear_all)
self.ui.btnResultSelectAll.clicked.connect(select_all)

print(f"Multiple: Displayed {len(self.matching_results.results)} ANN results")
logger.debug(f"Multiple: Displayed {len(self.matching_results.results)} ANN results")

def enqueue_renames(self):
# Read checked rows from results table
Expand All @@ -1216,7 +1216,7 @@ def enqueue_renames(self):
function_id = item.data(QtCore.Qt.ItemDataRole.UserRole)
matched_item = table.item(r, MatchColumns.MATCHED_NAME).text()
vaddr = self.rename_service.function_id_to_vaddr(function_id)
print(f"RENAME: Function ID {function_id} -> {matched_item}")
logger.debug(f"RENAME: Function ID {function_id} -> {matched_item}")
rename_list.append(
RenameInput(
function_id=function_id,
Expand All @@ -1228,7 +1228,7 @@ def enqueue_renames(self):
self.accept()

except Exception as e:
print(f"Failed to enqueue renames: {e}")
logger.error(f"Failed to enqueue renames: {e}")

def import_data_types(self):
selected_matches: dict[int, int] = {}
Expand Down
Empty file.
279 changes: 0 additions & 279 deletions reai_toolkit/app/components/forms/ai_decomp/ai_decomp_panel_qt5.ui

This file was deleted.

Loading
Loading