author | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
commit | 59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2 (patch) (side-by-side diff) | |
tree | f148d4858859dac3b413e675c760acfdab24b8e6 /noncore/apps/opie-reader/fileBrowser.h | |
parent | c08be8ae22dcc1bfb83cfdec807149b161d770f5 (diff) | |
download | opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.zip opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.gz opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.bz2 |
initial
Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/fileBrowser.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/fileBrowser.h b/noncore/apps/opie-reader/fileBrowser.h new file mode 100644 index 0000000..d222791 --- a/dev/null +++ b/noncore/apps/opie-reader/fileBrowser.h @@ -0,0 +1,70 @@ +/* +Derived from the file browser published by ljp@llornkcor.com but extensively +modified to work in rotated views on the Zaurus +*/ + +/**************************************************************************** +** Form interface generated from reading ui file 'fileBrowzer.ui' +** +** Created: Fri Dec 14 08:16:02 2001 +** by: The User Interface Compiler (uic) +** +** WARNING! All changes made in this file will be lost! +blah,blah,blah +****************************************************************************/ +#ifndef FILEBROWSER_H +#define FILEBROWSER_H + +//#include <qvariant.h> +#include <qdialog.h> +#include <qfile.h> +#include <qdir.h> +#include <qstringlist.h> +#include <qlabel.h> +#include <qstring.h> + +class QVBoxLayout; +class QHBoxLayout; +class QGridLayout; +class QtrListView; +class QListViewItem; +class QPushButton; + +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(); + + QPushButton* buttonOk; + QtrListView* ListView; + QPushButton* buttonCancel; + QLabel *dirLabel; + QString selectedFileName, filterStr; + QDir currentDir; + QFile file; + QStringList fileList; + +//QListViewItem * item; +public slots: + +private: + +private slots: + void upDir(); + void listDoubleClicked(QListViewItem *); + void listClicked(QListViewItem *); + void OnRoot(); + void OnCancel(); + +protected slots: + +protected: + void OnOK(); + virtual void resizeEvent(QResizeEvent* e); +}; + +#endif // FILEBROWSER_H |