2 // filepicker.h - A ROM chooser
5 #include <QtWidgets/QtWidgets>
7 // Forward declarations
13 class FilePickerWindow
: public QWidget
15 // Once we have signals/slots, we need this...
19 FilePickerWindow(QWidget
* parent
= 0);
20 QString
GetSelectedPrettyName(void);
21 void ScanSoftwareFolder(bool allow
= false);
24 void AddFileToList(unsigned long index
);
25 void AddFileToList2(unsigned long index
, QString
, QImage
*, unsigned long size
);
26 void AddFileToList3(unsigned long index
, QString
, QImage
*, unsigned long size
, bool, unsigned long, unsigned long);
27 void UpdateSelection(const QModelIndex
&, const QModelIndex
&);
28 void LoadButtonPressed(void);
29 void CatchDoubleClick(const QModelIndex
&);
32 void RequestLoad(QString
);
33 void FilePickerHiding(void);
36 void keyPressEvent(QKeyEvent
*);
37 // void PopulateList(void);
41 QString prettyFilename
;
42 QListWidget
* fileList2
;
43 FileThread
* fileThread
;
44 FileListModel
* model
;
49 QPushButton
* insertCart
;