summaryrefslogtreecommitdiff
path: root/libopie/ofileselector.h
Side-by-side diff
Diffstat (limited to 'libopie/ofileselector.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h
index bf3cb48..5e98a1e 100644
--- a/libopie/ofileselector.h
+++ b/libopie/ofileselector.h
@@ -113,17 +113,17 @@ class OFileSelectorItem : public QListViewItem {
QString m_dir;
};
class OFileSelector : public QWidget {
Q_OBJECT
public:
- enum Mode {OPEN=1, SAVE, FILESELECTOR };
+ enum Mode {OPEN=1, SAVE=2, FILESELECTOR=4, DIR=8 };
enum Selector{NORMAL=1, EXTENDED = 2, EXTENDED_ALL =4 };
enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 };
- OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList mimetypes = QStringList() );
-
+ OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList &mimetypes = QStringList() );
+ ~OFileSelector() {};
bool isToolbarVisible() const { return m_shTool; };
bool isPermissionBarVisible() const { return m_shPerm; };
bool isLineEditVisible()const { return m_shLne; };
bool isChooserVisible( )const { return m_shChooser; };
bool isYesCancelVisible()const { return m_shYesNo; };
void setYesCancelVisible( bool show );
@@ -177,12 +177,13 @@ class OFileSelector : public QWidget {
/* the user needs to delete it */
QValueList<DocLnk> selectedDocuments()const;
signals:
void fileSelected( const DocLnk & );
void fileSelected( const QString & );
+ void dirSelected(const QString &dir );
void closeMe();
void ok();
void cancel();
protected slots:
void slotOk();