X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilepicker.h;h=f304ab141914784c5ac10140d2d2a7fb68e119cd;hb=32f569e1bd09f5d7f07005d119f6408805106381;hp=3ab470b17f0a1235c25c9610f222ab29444fc319;hpb=f45b4acc547ca85d9af9efa37d8caa68c20a42e6;p=virtualjaguar diff --git a/src/gui/filepicker.h b/src/gui/filepicker.h index 3ab470b..f304ab1 100644 --- a/src/gui/filepicker.h +++ b/src/gui/filepicker.h @@ -2,8 +2,7 @@ // filepicker.h - A ROM chooser // -#include -#include "types.h" +#include // Forward declarations class QListWidget; @@ -18,21 +17,28 @@ class FilePickerWindow: public QWidget public: FilePickerWindow(QWidget * parent = 0); + QString GetSelectedPrettyName(void); + void ScanSoftwareFolder(bool allow = false); public slots: void AddFileToList(unsigned long index); void AddFileToList2(unsigned long index, QString, QImage *, unsigned long size); + void AddFileToList3(unsigned long index, QString, QImage *, unsigned long size, bool, unsigned long, unsigned long); void UpdateSelection(const QModelIndex &, const QModelIndex &); void LoadButtonPressed(void); + void CatchDoubleClick(const QModelIndex &); signals: void RequestLoad(QString); + void FilePickerHiding(void); protected: + void keyPressEvent(QKeyEvent *); // void PopulateList(void); private: QString currentFile; + QString prettyFilename; QListWidget * fileList2; FileThread * fileThread; FileListModel * model;