OFileSelector Class Reference
a dropin replacement for the FileSelector More...
#include <ofileselector.h>
Inheritance diagram for OFileSelector:


Public Types | |
| enum | Mode { Open = 1, Save = 2, FileSelector = 4, OPEN = 1, SAVE = 2, FILESELECTOR = 4 } |
| The Mode of the Fileselector Open = Open A File Save = Save a File FILESELECTOR = As A GUI in a screen to select a file. More... | |
| enum | Selector { Normal = 0, Extended = 1, ExtendedAll = 2, Default = 3, NORMAL = 0, EXTENDED = 1, EXTENDED_ALL = 2, DEFAULT = 3 } |
| Normal = The old FileSelector Extended = Dir View ExtendedAll = Dir View with all hidden files Default = What the vendor considers best. More... | |
Signals | |
| void | dirSelected (const QString &) |
| dirSelected is emitted whenever changed into a different dir | |
| void | fileSelected (const DocLnk &) |
| fileSelected is emitted when a file is selected it uses a DocLnk as parameter | |
| void | fileSelected (const QString &) |
| fileSelected is emitted when a file is selected the complete path is a parameter | |
| void | newSelected (const DocLnk &) |
| Create a new File with a DocLnk. | |
| void | closeMe () |
| void | ok () |
| Ok is emitted on a Qt::Key_Return or Q::Key_Enter in the line edit. | |
| void | cancel () |
Public Member Functions | |
| OFileSelector (QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName, const MimeTypes &mimetypes=MimeTypes(), bool newVisible=FALSE, bool closeVisible=FALSE) | |
| new and complete c'tor | |
| OFileSelector (const QString &mimeFilter, QWidget *parent, const char *name=0, bool newVisible=TRUE, bool closeVisible=FALSE) | |
| This a convience c'tor to just substitute the use of FileSelector. | |
| ~OFileSelector () | |
| d'tor | |
| const DocLnk * | selected () |
| Convience function for the fileselector make sure to delete the DocLnk. | |
| QString | selectedName () const |
| QString | selectedPath () const |
| QString | directory () const |
| DocLnk | selectedDocument () const |
| int | fileCount () const |
| void | reread () |
| int | mode () const |
| int | selector () const |
| void | setNewVisible (bool b) |
| Set the Icon visible. | |
| void | setCloseVisible (bool b) |
| Set the Icon visible. | |
| void | setNameVisible (bool b) |
| Set the Name Line visible. | |
Friends | |
| class | OFileViewFileListView |
Detailed Description
a dropin replacement for the FileSelectorThis class is first used insert the OFileDialog. It supports multiple view and mimetype filtering for now.
- See also:
- OFileDialog
- Author:
- zecke
- Version:
- 0.1
Definition at line 67 of file ofileselector.h.
Member Enumeration Documentation
|
|
The Mode of the Fileselector Open = Open A File Save = Save a File FILESELECTOR = As A GUI in a screen to select a file.
Definition at line 78 of file ofileselector.h. |
|
|
Normal = The old FileSelector Extended = Dir View ExtendedAll = Dir View with all hidden files Default = What the vendor considers best.
Definition at line 86 of file ofileselector.h. |
Constructor & Destructor Documentation
|
||||||||||||||||||||||||||||||||||||
|
new and complete c'tor Create a OFileSelector to let the user select a file. It can either be used to open a file, select a save name in a dir or as a dropin for the FileSelector.
Definition at line 660 of file ofileselector.cpp. References QComboBox::setCurrentItem(), QLineEdit::setText(), and QObject::tr(). |
|
||||||||||||||||||||||||
|
This a convience c'tor to just substitute the use of FileSelector.
Definition at line 703 of file ofileselector.cpp. References QPEApplication::documentDir(), QMap::insert(), QString::isEmpty(), and QComboBox::setCurrentItem(). |
|
|
d'tor
Definition at line 803 of file ofileselector.cpp. |
Member Function Documentation
|
|
Convience function for the fileselector make sure to delete the DocLnk.
Definition at line 814 of file ofileselector.cpp. References selectedDocument(). |
|
|
Definition at line 823 of file ofileselector.cpp. |
|
|
Definition at line 830 of file ofileselector.cpp. |
|
|
Definition at line 837 of file ofileselector.cpp. |
|
|
Definition at line 844 of file ofileselector.cpp. Referenced by selected(). |
|
|
Definition at line 851 of file ofileselector.cpp. |
|
|
Definition at line 858 of file ofileselector.cpp. |
|
|
Definition at line 877 of file ofileselector.cpp. |
|
|
Definition at line 884 of file ofileselector.cpp. |
|
|
Set the Icon visible.
Definition at line 921 of file ofileselector.cpp. |
|
|
Set the Icon visible.
Definition at line 925 of file ofileselector.cpp. |
|
|
Set the Name Line visible.
Definition at line 929 of file ofileselector.cpp. References QWidget::hide(), and QWidget::show(). |
|
|
dirSelected is emitted whenever changed into a different dir
|
|
|
fileSelected is emitted when a file is selected it uses a DocLnk as parameter
|
|
|
fileSelected is emitted when a file is selected the complete path is a parameter
|
|
|
Create a new File with a DocLnk.
|
|
|
Ok is emitted on a Qt::Key_Return or Q::Key_Enter in the line edit.
|
The documentation for this class was generated from the following files:
