Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/fileBrowser.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/apps/opie-reader/fileBrowser.h b/noncore/apps/opie-reader/fileBrowser.h index 5521383..a5274f8 100644 --- a/noncore/apps/opie-reader/fileBrowser.h +++ b/noncore/apps/opie-reader/fileBrowser.h @@ -26,46 +26,49 @@ blah,blah,blah class QVBoxLayout; class QHBoxLayout; class QGridLayout; class QtrListView; class QListViewItem; class QPushButton; +class QLineEdit; class fileBrowser : public QDialog { Q_OBJECT public: void populateList(); - fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0, const QString iPath=0); + fileBrowser( bool allownew, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0, const QString iPath=0); ~fileBrowser(); QPushButton* buttonOk; QPushButton* buttonShowHidden; QtrListView* ListView; QPushButton* buttonCancel; QLabel *dirLabel; QString selectedFileName, filterStr; QDir currentDir; QFile file; - QStringList fileList; + QString getCurrentFile(); + QLineEdit* m_filename; int filterspec; // QDir::FilterSpec filterspec; //QListViewItem * item; public slots: private: - + QString filename; private slots: void upDir(); void listDoubleClicked(QListViewItem *); void listClicked(QListViewItem *); void OnRoot(); void OnCancel(); void setHidden(bool); + void onReturn(); protected slots: protected: void OnOK(); virtual void resizeEvent(QResizeEvent* e); |