#include </home/clem/local/src/opie/libopie2/opieui/fileselector/ofiledialog.h>
Collaboration diagram for Opie::Ui::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) |
| static QString | getDirectory (int selector, const QString &startDir=QString::null, 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"), " * / * " ); // remove the spaces in the 2nd comment
QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL,
"foo","bar", mimeTypes);
Definition at line 64 of file ofiledialog.h.
|
||||||||||||||||||||||||||||||||
|
|
|
|
Definition at line 127 of file ofiledialog.cpp. Referenced by getOpenFileName(). |
|
||||||||||||||||||||
|
This opens up a filedialog in select directory mode
Definition at line 219 of file ofiledialog.cpp. References Opie::Ui::OFileSelector::DirectorySelector, QPEApplication::execDialog(), QString::isEmpty(), lastUsedDir(), saveLastDir(), and tr. Referenced by PlayListWidget::openDirectory(), BackupAndRestore::selectLocation(), PlaylistView::slotAppendDir(), OIpkgConfigDlg::slotOptSelectSourceListsPath(), OIpkgDestDlg::slotSelectPath(), EntryDlg::slotSelectPath(), and ConfigureDlg::slotSelectSwordPath(). |
|
||||||||||||||||||||||||||||
|
This opens up a filedialog in Open mode
Definition at line 151 of file ofiledialog.cpp. References QPEApplication::execDialog(), fileName(), QString::isEmpty(), lastUsedDir(), Opie::Ui::OFileSelector::Open, saveLastDir(), and tr. Referenced by AddressbookWindow::importvCard(), Clock::slotBrowseMp3File(), and PlaylistView::slotOpenM3u(). |
|
||||||||||||||||||||||||||||
|
This opens up a file dialog in save mode
Definition at line 179 of file ofiledialog.cpp. References QPEApplication::execDialog(), file, QString::isEmpty(), lastUsedDir(), Opie::Ui::OFileSelector::Save, saveLastDir(), and tr. Referenced by AddressbookWindow::exportvCard(), IRCMessageParser::parseCTCPDCC(), InstallDlg::slotBtnOptions(), ScreenshotControl::slotGrab(), and PlaylistView::slotSaveAsM3u(). |
|
|
Definition at line 119 of file ofiledialog.cpp. References QString::null. |
|
|
return a DocLnk to the current file Definition at line 135 of file ofiledialog.cpp. |
|
|
Definition at line 250 of file ofiledialog.cpp. |
|
|
Definition at line 240 of file ofiledialog.cpp. |
|
|
Definition at line 245 of file ofiledialog.cpp. |
|
|
Definition at line 102 of file ofiledialog.h. |
|
|
Definition at line 104 of file ofiledialog.h. Referenced by getSaveFileName(). |
1.4.2