summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofiledialog.h
Unidiff
Diffstat (limited to 'libopie/ofileselector/ofiledialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/ofiledialog.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/libopie/ofileselector/ofiledialog.h b/libopie/ofileselector/ofiledialog.h
deleted file mode 100644
index e368e96..0000000
--- a/libopie/ofileselector/ofiledialog.h
+++ b/dev/null
@@ -1,78 +0,0 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 zecke <zecke@handhelds.org>
4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
28
29
30#ifndef OpieFileDialog_h
31#define OpieFileDialog_h
32
33#include <qdialog.h>
34
35//#include <opie/ofileselector.h>
36#include "ofileselector.h"
37
38class OFileDialog : public QDialog {
39 Q_OBJECT
40 public:
41 OFileDialog(const QString &caption,
42 QWidget *, int mode, int selector,
43 const QString &dirName,
44 const QString &fileName = QString::null,
45 const MimeTypes &mimetypes = MimeTypes() );
46 QString mimetype() const;
47 QString fileName() const;
48 DocLnk selectedDocument()const;
49
50 // static methods
51 static QString getOpenFileName(int selector,
52 const QString& startDir = QString::null,
53 const QString &fileName = QString::null,
54 const MimeTypes& mime = MimeTypes(),
55 QWidget *wid = 0,
56 const QString &caption = QString::null );
57
58 static QString getSaveFileName(int selector,
59 const QString& startDir = QString::null,
60 const QString& fileName = QString::null,
61 const MimeTypes& mimefilter = MimeTypes(),
62 QWidget *wid = 0,
63 const QString &caption = QString::null );
64
65 //let's OFileSelector catch up first
66 //static QString getExistingDirectory(const QString& startDir = QString::null,
67 // QWidget *parent = 0,
68 // const QString& caption = QString::null );
69 private:
70 class OFileDialogPrivate;
71 OFileDialogPrivate *d;
72 OFileSelector *file;
73
74 private slots:
75 void slotFileSelected( const QString & );
76 void slotDirSelected(const QString & );
77};
78#endif