X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilepicker.h;h=e2f379f62cd84929893600e4f8dd03056c3abc99;hb=9af4fb023287b26dce01a36c65c9e30f56481051;hp=447162efb7ccb56f491169c887f0cb2288e655e4;hpb=caf1236884015695c52910a75b8420be7c63d574;p=virtualjaguar diff --git a/src/gui/filepicker.h b/src/gui/filepicker.h index 447162e..e2f379f 100644 --- a/src/gui/filepicker.h +++ b/src/gui/filepicker.h @@ -18,18 +18,34 @@ 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 *); + 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; -// QAbstractItemModel * model; FileListModel * model; QListView * fileList; + QLabel * cartImage; + QLabel * title; + QLabel * data; + QPushButton * insertCart; };