Diffstat (limited to 'libopie/ofileselector/ofileview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileview.h | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/libopie/ofileselector/ofileview.h b/libopie/ofileselector/ofileview.h deleted file mode 100644 index e84a3e1..0000000 --- a/libopie/ofileselector/ofileview.h +++ b/dev/null | |||
@@ -1,140 +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 | #ifndef ofileview_h | ||
30 | #define ofileview_h | ||
31 | |||
32 | #include <qobject.h> | ||
33 | #include <qwidget.h> | ||
34 | #include <qpopupmenu.h> | ||
35 | |||
36 | class QFileInfo; | ||
37 | class QDir; | ||
38 | class DocLnk; | ||
39 | |||
40 | /** | ||
41 | * A OFileView is a specialised View for the | ||
42 | * OFileSelector | ||
43 | * With a View you can chage the user visible | ||
44 | * representation of a OFileLister | ||
45 | * OFileView is just a basic interface which helps you to | ||
46 | * write new views | ||
47 | */ | ||
48 | class OFileSelector; | ||
49 | class OFileView { | ||
50 | public: | ||
51 | OFileView( OFileSelector* ); | ||
52 | OFileView(); | ||
53 | virtual ~OFileView(); | ||
54 | |||
55 | virtual void clear() = 0; | ||
56 | virtual void addFile(const QPixmap&, | ||
57 | const QString &mine, | ||
58 | QFileInfo *info, | ||
59 | const QString& extra = QString::null, | ||
60 | bool isSymlink = FALSE ) = 0; | ||
61 | |||
62 | virtual void addFile(const QPixmap&, | ||
63 | const QString& mine, const QString& dir, | ||
64 | const QString& file, | ||
65 | const QString& extra = QString::null, | ||
66 | bool = FALSE ) = 0; | ||
67 | |||
68 | virtual void addDir (const QPixmap&, | ||
69 | const QString &mine, | ||
70 | QFileInfo *info, | ||
71 | const QString& extra = QString::null, | ||
72 | bool isSymlink = FALSE ) = 0; | ||
73 | virtual void addDir (const QPixmap&, | ||
74 | const QString& mine, const QString& dir, | ||
75 | const QString& file, | ||
76 | const QString& extra = QString::null, | ||
77 | bool = FALSE) = 0; | ||
78 | |||
79 | virtual void addSymlink(const QPixmap&, | ||
80 | const QString &mime, | ||
81 | QFileInfo *info, | ||
82 | const QString& extra = QString::null, | ||
83 | bool isSymlink = FALSE ) = 0; | ||
84 | |||
85 | virtual void addSymlink(const QPixmap&, | ||
86 | const QString& mine, | ||
87 | const QString& path, | ||
88 | const QString& file, | ||
89 | const QString& extra = QString::null, | ||
90 | bool isSymlink = FALSE ) = 0; | ||
91 | |||
92 | virtual void cd(const QString &path ) = 0; | ||
93 | virtual QWidget* widget() = 0; | ||
94 | |||
95 | virtual QString selectedName()const = 0; | ||
96 | virtual QStringList selectedNames()const = 0; | ||
97 | virtual QString selectedPath()const = 0; | ||
98 | virtual QStringList selectedPaths()const = 0; | ||
99 | virtual QString selectedExtra()const = 0; | ||
100 | virtual int fileCount() = 0; | ||
101 | virtual void sort() =0; | ||
102 | |||
103 | /*signals:*/ | ||
104 | protected: | ||
105 | |||
106 | /** | ||
107 | * @param dir The dir name | ||
108 | * @param file The file name | ||
109 | * @param extra The extra information | ||
110 | */ | ||
111 | void fileSelected(const QString &dir, const QString& file, const QString& extra = QString::null); | ||
112 | void contextMenu(); | ||
113 | |||
114 | /** | ||
115 | * | ||
116 | * @param dir The dir name | ||
117 | * @param file The file name | ||
118 | * @param extra The extra informations | ||
119 | */ | ||
120 | void changedDir(const QString &dir, const QString& file, const QString& extra = QString::null); | ||
121 | |||
122 | /* updates the file name line of the FileSelector */ | ||
123 | void updateLine( const QString& ); | ||
124 | OFileSelector* selector()const; | ||
125 | |||
126 | private: | ||
127 | OFileSelector* m_sel; | ||
128 | }; | ||
129 | |||
130 | class OFileViewFactory { | ||
131 | public: | ||
132 | OFileViewFactory() {} ; | ||
133 | virtual ~OFileViewFactory() = 0; | ||
134 | |||
135 | OFileView* newView(QWidget *parent, const char *name ); | ||
136 | QString name()const; | ||
137 | }; | ||
138 | |||
139 | |||
140 | #endif | ||