author | chicken <chicken> | 2003-11-18 16:01:58 (UTC) |
---|---|---|
committer | chicken <chicken> | 2003-11-18 16:01:58 (UTC) |
commit | 6b50f01126f1e22ed1cebef7db2901c7ff33116f (patch) (unidiff) | |
tree | 80d3944caa10c768347be23890e84ae4be529c18 | |
parent | fef70b95241f814328678e422bc9b9027e142386 (diff) | |
download | opie-6b50f01126f1e22ed1cebef7db2901c7ff33116f.zip opie-6b50f01126f1e22ed1cebef7db2901c7ff33116f.tar.gz opie-6b50f01126f1e22ed1cebef7db2901c7ff33116f.tar.bz2 |
include is in local directory
-rw-r--r-- | noncore/apps/zsafe/scqtfileedit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/zsafe/scqtfileedit.h b/noncore/apps/zsafe/scqtfileedit.h index 7b22bb7..1a62a08 100644 --- a/noncore/apps/zsafe/scqtfileedit.h +++ b/noncore/apps/zsafe/scqtfileedit.h | |||
@@ -1,106 +1,106 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | scqtfileedit.h - description | 2 | scqtfileedit.h - description |
3 | ------------------- | 3 | ------------------- |
4 | begin : Mon Sep 3 2001 | 4 | begin : Mon Sep 3 2001 |
5 | copyright : (C) 2001 by Werner Schulte | 5 | copyright : (C) 2001 by Werner Schulte |
6 | email : sc@schulte-ac.de | 6 | email : sc@schulte-ac.de |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /* $Id$ */ | 9 | /* $Id$ */ |
10 | 10 | ||
11 | /*************************************************************************** | 11 | /*************************************************************************** |
12 | * * | 12 | * * |
13 | * This program is free software; you can redistribute it and/or modify * | 13 | * This program is free software; you can redistribute it and/or modify * |
14 | * it under the terms of the GNU General Public License as published by * | 14 | * it under the terms of the GNU General Public License as published by * |
15 | * the Free Software Foundation; either version 2 of the License, or * | 15 | * the Free Software Foundation; either version 2 of the License, or * |
16 | * (at your option) any later version. * | 16 | * (at your option) any later version. * |
17 | * * | 17 | * * |
18 | ***************************************************************************/ | 18 | ***************************************************************************/ |
19 | 19 | ||
20 | #ifndef SCQTFILEEDIT_H | 20 | #ifndef SCQTFILEEDIT_H |
21 | #define SCQTFILEEDIT_H | 21 | #define SCQTFILEEDIT_H |
22 | 22 | ||
23 | #include <qdir.h> | 23 | #include <qdir.h> |
24 | #include <qobject.h> | 24 | #include <qobject.h> |
25 | #include <qpixmap.h> | 25 | #include <qpixmap.h> |
26 | #include <qstring.h> | 26 | #include <qstring.h> |
27 | #include <qlistview.h> | 27 | #include <qlistview.h> |
28 | #include <qcombobox.h> | 28 | #include <qcombobox.h> |
29 | #include <qtimer.h> | 29 | #include <qtimer.h> |
30 | 30 | ||
31 | #include <scqtfiledlg.h> | 31 | #include "scqtfiledlg.h" |
32 | 32 | ||
33 | #define MAXDIRCOMBOCOUNT 8 | 33 | #define MAXDIRCOMBOCOUNT 8 |
34 | #define MAXTYPECOMBOCOUNT 8 | 34 | #define MAXTYPECOMBOCOUNT 8 |
35 | 35 | ||
36 | /** | 36 | /** |
37 | *@author Werner Schulte | 37 | *@author Werner Schulte |
38 | */ | 38 | */ |
39 | 39 | ||
40 | class ScQtFileEditDlg : public ScQtFileDlg, QDir | 40 | class ScQtFileEditDlg : public ScQtFileDlg, QDir |
41 | { | 41 | { |
42 | Q_OBJECT | 42 | Q_OBJECT |
43 | public: | 43 | public: |
44 | ScQtFileEditDlg( QWidget *parent=0, const char *name=0, | 44 | ScQtFileEditDlg( QWidget *parent=0, const char *name=0, |
45 | const QString &path="/", const QString &filter="*" ); | 45 | const QString &path="/", const QString &filter="*" ); |
46 | ~ScQtFileEditDlg(); | 46 | ~ScQtFileEditDlg(); |
47 | QString getResult( ); | 47 | QString getResult( ); |
48 | QString getFileName( ); | 48 | QString getFileName( ); |
49 | void readIt( ); | 49 | void readIt( ); |
50 | void setAutoExtension( bool ex=false ); | 50 | void setAutoExtension( bool ex=false ); |
51 | void allowMkDir( bool mkdir=false ); | 51 | void allowMkDir( bool mkdir=false ); |
52 | void setNFilter( bool ff=false ); | 52 | void setNFilter( bool ff=false ); |
53 | void setFSorting( bool ff=false ); | 53 | void setFSorting( bool ff=false ); |
54 | void setMode( int mode=QDir::All ); | 54 | void setMode( int mode=QDir::All ); |
55 | 55 | ||
56 | private slots: | 56 | private slots: |
57 | void slotOK( ); | 57 | void slotOK( ); |
58 | void slotCancel( ); | 58 | void slotCancel( ); |
59 | void slotDoubleClicked( QListViewItem *item=0 ); | 59 | void slotDoubleClicked( QListViewItem *item=0 ); |
60 | void slotSelectionChanged( QListViewItem *item=0 ); | 60 | void slotSelectionChanged( QListViewItem *item=0 ); |
61 | void slotDirComboBoxChanged( int item ); | 61 | void slotDirComboBoxChanged( int item ); |
62 | void slotTypeComboBoxChanged( int item ); | 62 | void slotTypeComboBoxChanged( int item ); |
63 | void slotFileTextChanged( const QString &txt="" ); | 63 | void slotFileTextChanged( const QString &txt="" ); |
64 | void slotShowDir(); | 64 | void slotShowDir(); |
65 | void slotMkDir(); | 65 | void slotMkDir(); |
66 | 66 | ||
67 | protected: | 67 | protected: |
68 | QTimer showTimer; | 68 | QTimer showTimer; |
69 | bool mkdirflag, fsorting, fnfilter; | 69 | bool mkdirflag, fsorting, fnfilter; |
70 | int fmode; | 70 | int fmode; |
71 | const QFileInfoList *qfil; | 71 | const QFileInfoList *qfil; |
72 | bool rFlag, exflag; // recursionFlag,extensionflag | 72 | bool rFlag, exflag; // recursionFlag,extensionflag |
73 | QString bpath, bfilter, filename; | 73 | QString bpath, bfilter, filename; |
74 | QString dirstr,linkstr, filestr; | 74 | QString dirstr,linkstr, filestr; |
75 | QPixmap *fileIcon, *dirIcon, *linkIcon, *cdToParentIcon; | 75 | QPixmap *fileIcon, *dirIcon, *linkIcon, *cdToParentIcon; |
76 | const QFileInfoList *readDir( const QString &path="/", const QString &filter="*" ); | 76 | const QFileInfoList *readDir( const QString &path="/", const QString &filter="*" ); |
77 | int checkComboEntryExists( QComboBox *com=0, const QString &str="" ); | 77 | int checkComboEntryExists( QComboBox *com=0, const QString &str="" ); |
78 | void insDirCombo( const QString &str="" ); | 78 | void insDirCombo( const QString &str="" ); |
79 | void insTypeCombo( const QString &str="" ); | 79 | void insTypeCombo( const QString &str="" ); |
80 | void initDirCombo( const QString &str="" ); | 80 | void initDirCombo( const QString &str="" ); |
81 | void initTypeCombo( const QString &str="" ); | 81 | void initTypeCombo( const QString &str="" ); |
82 | void autoExtension( ); | 82 | void autoExtension( ); |
83 | 83 | ||
84 | }; | 84 | }; |
85 | 85 | ||
86 | class ScQtFileEdit : public QObject | 86 | class ScQtFileEdit : public QObject |
87 | { | 87 | { |
88 | Q_OBJECT | 88 | Q_OBJECT |
89 | public: | 89 | public: |
90 | ScQtFileEdit( QWidget *parent=0, const char *name=0 ); | 90 | ScQtFileEdit( QWidget *parent=0, const char *name=0 ); |
91 | ~ScQtFileEdit(); | 91 | ~ScQtFileEdit(); |
92 | static void resize( int width, int height ); | 92 | static void resize( int width, int height ); |
93 | static QString getOpenFileName( QWidget *parent=0, const char *name=0, | 93 | static QString getOpenFileName( QWidget *parent=0, const char *name=0, |
94 | const QString &path="/", const QString &filter="*" ); | 94 | const QString &path="/", const QString &filter="*" ); |
95 | static QString getSaveAsFileName( QWidget *parent=0, const char *name=0, | 95 | static QString getSaveAsFileName( QWidget *parent=0, const char *name=0, |
96 | const QString &path="/", const QString &filter="*" ); | 96 | const QString &path="/", const QString &filter="*" ); |
97 | static QString getDirName( QWidget *parent=0, const char *name=0, | 97 | static QString getDirName( QWidget *parent=0, const char *name=0, |
98 | const QString &path="/" ); | 98 | const QString &path="/" ); |
99 | static QString mkDir( QWidget *parent=0, const char *name=0, | 99 | static QString mkDir( QWidget *parent=0, const char *name=0, |
100 | const QString &path="/", const QString &filter="*" ); | 100 | const QString &path="/", const QString &filter="*" ); |
101 | 101 | ||
102 | protected: | 102 | protected: |
103 | 103 | ||
104 | }; | 104 | }; |
105 | 105 | ||
106 | #endif | 106 | #endif |