63 QWidget* parent =
nullptr);
70 void onSearchTextChanged(
const QString& text);
71 void onSearchTriggered();
72 void onSearchComplete(
const std::vector<LutrisSearchResult>& results);
73 void onSearchError(
const QString& error);
74 void onGameSelectionChanged();
75 void onInstallersLoaded(
const QString& gameSlug,
76 const std::vector<LutrisInstallerSummary>& installers);
77 void onInstallerSelected(QTreeWidgetItem* item,
int column);
79 void onInstallerScriptError(
const QString& installerSlug,
const QString& error);
80 void onInstallClicked();
84 void startSearch(
const QString& query);
85 void clearInstallers();
86 void updateInstallButton();
91 QLineEdit* searchEdit_;
92 QPushButton* searchBtn_;
93 QTreeWidget* gameTree_;
94 QTreeWidget* installerTree_;
96 QLabel* installerLabel_;
97 QProgressBar* progressBar_;
98 QPushButton* installBtn_;
99 QPushButton* closeBtn_;
102 std::vector<LutrisSearchResult> searchResults_;
103 std::vector<LutrisInstallerSummary> currentInstallers_;
104 QString selectedGameSlug_;
105 QString selectedInstallerSlug_;
107 bool hasSelectedScript_ =
false;
110 QThread* workerThread_ =
nullptr;
112 QTimer* searchDebounce_ =
nullptr;
113 std::atomic<bool> searching_{
false};