ofiledialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef OpieFileDialog_h
00031 #define OpieFileDialog_h
00032
00033 #include <qdialog.h>
00034
00035 #include <opie/ofileselector.h>
00036
00060 class OFileDialog : public QDialog {
00061 Q_OBJECT
00062 public:
00063 OFileDialog(const QString &caption,
00064 QWidget *, int mode, int selector,
00065 const QString &dirName,
00066 const QString &fileName = QString::null,
00067 const MimeTypes &mimetypes = MimeTypes() );
00068 QString mimetype() const;
00069 QString fileName() const;
00070 DocLnk selectedDocument()const;
00071
00072
00073 static QString getOpenFileName(int selector,
00074 const QString& startDir = QString::null,
00075 const QString &fileName = QString::null,
00076 const MimeTypes& mime = MimeTypes(),
00077 QWidget *wid = 0,
00078 const QString &caption = QString::null );
00079
00080 static QString getSaveFileName(int selector,
00081 const QString& startDir = QString::null,
00082 const QString& fileName = QString::null,
00083 const MimeTypes& mimefilter = MimeTypes(),
00084 QWidget *wid = 0,
00085 const QString &caption = QString::null );
00086
00087
00088
00089
00090
00091 private:
00092 class OFileDialogPrivate;
00093 OFileDialogPrivate *d;
00094 OFileSelector *file;
00095
00096 private slots:
00097 void slotFileSelected( const QString & );
00098 void slotDirSelected(const QString & );
00099 void slotSelectorOk();
00100 };
00101 #endif
This file is part of the documentation for OPIE Version 1.1.