OFileDialog Class Reference
This class places a OFileSelector inside a QDialog. A small QDialog swalloing a FileSelector. More...
#include <ofiledialog.h>
Inheritance diagram for OFileDialog:


Public Member Functions | |
| OFileDialog (const QString &caption, QWidget *, int mode, int selector, const QString &dirName, const QString &fileName=QString::null, const MimeTypes &mimetypes=MimeTypes()) | |
| QString | mimetype () const |
| QString | fileName () const |
| DocLnk | selectedDocument () const |
| return a DocLnk to the current file | |
Static Public Member Functions | |
| QString | getOpenFileName (int selector, const QString &startDir=QString::null, const QString &fileName=QString::null, const MimeTypes &mime=MimeTypes(), QWidget *wid=0, const QString &caption=QString::null) |
| This opens up a filedialog in Open mode. | |
| QString | getSaveFileName (int selector, const QString &startDir=QString::null, const QString &fileName=QString::null, const MimeTypes &mimefilter=MimeTypes(), QWidget *wid=0, const QString &caption=QString::null) |
| This opens up a file dialog in save mode. | |
Detailed Description
This class places a OFileSelector inside a QDialog. A small QDialog swalloing a FileSelector.It provides static method for letting a user chose a file for either opening or saving. Most of the time the c'tor will not be used instead using the static member functions is prefered.
QMap<QString, QStringList> mimeTypes; QStringList types; types << "text/* "; mimeTypes.insert( tr("Text"), types ); mimeTypes.insert( tr("All"), " */* " ); // remove the spaces in the 2nd comment QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL, "foo","bar", mimeTypes);
- See also:
- QDialog
- Version:
- 0.1-unfinished
- Author:
- Holger Freyther ( zecke@handhelds.org )
Definition at line 60 of file ofiledialog.h.
Member Function Documentation
|
|
Definition at line 117 of file ofiledialog.cc. |
|
|
Definition at line 125 of file ofiledialog.cc. Referenced by getOpenFileName(), and getSaveFileName(). |
|
|
return a DocLnk to the current file
Definition at line 133 of file ofiledialog.cc. |
|
||||||||||||||||||||||||||||
|
This opens up a filedialog in Open mode.
Definition at line 149 of file ofiledialog.cc. References QDialog::exec(), fileName(), QString::isEmpty(), QWidget::showMaximized(), and QObject::tr(). |
|
||||||||||||||||||||||||||||
|
This opens up a file dialog in save mode.
Definition at line 177 of file ofiledialog.cc. References QDialog::exec(), fileName(), QString::isEmpty(), QWidget::showMaximized(), and QObject::tr(). |
The documentation for this class was generated from the following files:
