#include </home/clem/local/src/opie/noncore/unsupported/libopie/ofiledialog.h>
Collaboration 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 |
Static Public Member Functions | |
| static 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) |
| static 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) |
Private Slots | |
| void | slotFileSelected (const QString &) |
| void | slotDirSelected (const QString &) |
| void | slotSelectorOk () |
Private Attributes | |
| OFileDialogPrivate * | d |
| OFileSelector * | file |
This class places a OFileSelector inside a QDialog. 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@slash* ";
mimeTypes.insert( tr("Text"), types );
mimeTypes.insert( tr("All"), " *@slash* " ); // remove the spaces in the 2nd comment
QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL,
"foo","bar", mimeTypes);
Definition at line 60 of file ofiledialog.h.
|
||||||||||||||||||||||||||||||||
|
|
|
|
Definition at line 122 of file ofiledialog.cc. Referenced by getOpenFileName(), and getSaveFileName(). |
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
|
This opens up a file dialog in save mode
Definition at line 174 of file ofiledialog.cc. References fileName(), QString::isEmpty(), lastUsedDir(), OFileSelector::Save, saveLastDir(), and tr. Referenced by WellenreiterMainWindow::getFileName(), QTReaderApp::gotobkmk(), InstallDlgImpl::optionsSelected(), CameraMainWindow::outputToMenuItemClicked(), TextEdit::saveAs(), Opietooth2::OTSniffing::SLOT_Save(), ViewMail::slotItemClicked(), TinyKate::slotSaveAs(), and ZSafe::zsaveDialog(). |
|
|
Definition at line 114 of file ofiledialog.cc. References QString::null. |
|
|
return a DocLnk to the current file Definition at line 130 of file ofiledialog.cc. Referenced by AddAtt::addattachment(). |
|
|
Definition at line 207 of file ofiledialog.cc. |
|
|
Definition at line 197 of file ofiledialog.cc. |
|
|
Definition at line 202 of file ofiledialog.cc. |
|
|
Definition at line 92 of file ofiledialog.h. |
|
|
Definition at line 94 of file ofiledialog.h. |
1.4.2