176 QWidget* parent =
nullptr,
ThemeManager* themeManager =
nullptr);
180 void onScanClicked();
181 void onProgressUpdate(
const QString& source,
const QString& operation,
int percent);
182 void onSourceComplete(
const QString& source,
int gamesFound);
183 void onScanComplete(
const std::vector<ImportableGame>& games);
184 void onScanError(
const QString& error);
185 void onImportClicked();
188 void onSelectInstalled();
189 void onFilterChanged();
190 void onSourceToggled();
191 void onItemChanged(QTreeWidgetItem* item,
int column);
196 void setupSourcePanel();
197 void setupResultsPanel();
198 void updateSourceStats();
199 void populateGameList();
201 void markAlreadyImported();
205 QString getRunnerDisplayName(
const QString& runner)
const;
206 QString formatSize(uint64_t bytes)
const;
209 QGroupBox* sourceGroup_;
210 QCheckBox* steamCheck_;
211 QCheckBox* lutrisCheck_;
212 QCheckBox* bottlesCheck_;
213 QCheckBox* heroicEpicCheck_;
214 QCheckBox* heroicGOGCheck_;
215 QCheckBox* legendaryCheck_;
216 QCheckBox* nativeCheck_;
217 QCheckBox* winePrefixCheck_;
221 QLabel* lutrisStats_;
222 QLabel* bottlesStats_;
223 QLabel* heroicEpicStats_;
224 QLabel* heroicGOGStats_;
225 QLabel* legendaryStats_;
226 QLabel* nativeStats_;
227 QLabel* winePrefixStats_;
230 QProgressBar* progressBar_;
231 QLabel* statusLabel_;
234 QTreeWidget* gameTree_;
235 QCheckBox* hideImportedCheck_;
236 QCheckBox* showInstalledOnlyCheck_;
240 QPushButton* scanBtn_;
241 QPushButton* selectAllBtn_;
242 QPushButton* selectNoneBtn_;
243 QPushButton* selectInstalledBtn_;
244 QPushButton* importBtn_;
245 QPushButton* closeBtn_;
249 QThread* workerThread_ =
nullptr;
251 std::vector<ImportableGame> importableGames_;
253 std::map<ImportableGame::SourceType, ImportSourceStats> sourceStats_;
254 bool scanning_ =
false;