Diffstat (limited to 'noncore/settings/tabmanager/tabmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/tabmanager/tabmanager.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/noncore/settings/tabmanager/tabmanager.h b/noncore/settings/tabmanager/tabmanager.h new file mode 100644 index 0000000..2700fe7 --- a/dev/null +++ b/noncore/settings/tabmanager/tabmanager.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | |||
3 | =. This file is part of the OPIE Project | ||
4 | .=l. Copyright (c) 2002 Benjamin Meyer <meyerb@sharpsec.com> | ||
5 | .>+-= | ||
6 | _;:, .> :=|. This library is free software; you can | ||
7 | .> <`_, > . <= redistribute it and/or modify it under | ||
8 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
9 | .="- .-=="i, .._ License as published by the Free Software | ||
10 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
11 | ._= =} : or (at your option) any later version. | ||
12 | .%`+i> _;_. | ||
13 | .i_,=:_. -<s. This library is distributed in the hope that | ||
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
15 | : .. .:, . . . without even the implied warranty of | ||
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
18 | ..}^=.= = ; Library General Public License for more | ||
19 | ++= -. .` .: details. | ||
20 | : = ...= . :.=- | ||
21 | -. .:....=;==+<; You should have received a copy of the GNU | ||
22 | -_. . . )=. = Library General Public License along with | ||
23 | -- :-=` this library; see the file COPYING.LIB. | ||
24 | If not, write to the Free Software Foundation, | ||
25 | Inc., 59 Temple Place - Suite 330, | ||
26 | Boston, MA 02111-1307, USA. | ||
27 | |||
28 | */ | ||
29 | #ifndef TABMANAGER_H | ||
30 | #define TABMANAGER_H | ||
31 | |||
32 | #include "tabmanagerbase.h" | ||
33 | #include <qmap.h> | ||
34 | #include <qevent.h> | ||
35 | |||
36 | class QListViewItem; | ||
37 | |||
38 | class TabManager : public TabManagerBase { | ||
39 | Q_OBJECT | ||
40 | |||
41 | public: | ||
42 | TabManager( QWidget* parent = 0, const char* name = 0); | ||
43 | ~TabManager(); | ||
44 | bool changed; | ||
45 | |||
46 | public slots: | ||
47 | void newFolder(); | ||
48 | void newApplication(); | ||
49 | void removeItem(); | ||
50 | void editCurrentItem(); | ||
51 | |||
52 | private slots: | ||
53 | void moveApplication(QListViewItem *, QListViewItem *); | ||
54 | void editItem(QListViewItem * item); | ||
55 | |||
56 | protected: | ||
57 | void rescanFolder(QString directory, QListViewItem* parent=NULL); | ||
58 | QMap<QListViewItem *, QString> itemList; | ||
59 | bool findInstalledApplication(QString desktopFile, QString &installedAppFile); | ||
60 | void swapInstalledLocation( QString installedAppFile, QString desktopFile, QString newLocation ); | ||
61 | |||
62 | }; | ||
63 | |||
64 | #endif | ||
65 | |||
66 | // tabmanager.h | ||
67 | |||