Diffstat (limited to 'noncore/settings/packagemanager/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/mainwindow.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/noncore/settings/packagemanager/mainwindow.h b/noncore/settings/packagemanager/mainwindow.h index f00e344..e7003e4 100644 --- a/noncore/settings/packagemanager/mainwindow.h +++ b/noncore/settings/packagemanager/mainwindow.h | |||
@@ -1,75 +1,76 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | =. Copyright (c) 2003 Dan Williams <drw@handhelds.org> | 4 | Copyright (C)2004, 2005 Dan Williams <drw@handhelds.org> |
5 | .=l. | 5 | =. |
6 | .>+-= | 6 | .=l. |
7 | _;:, .> :=|. This file is free software; you can | 7 | .>+-= |
8 | .> <`_, > . <= redistribute it and/or modify it under | 8 | _;:, .> :=|. This program is free software; you can |
9 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | .="- .-=="i, .._ License as published by the Free Software | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | ._= =} : or (at your option) any later version. | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | .%`+i> _;_. | 13 | ._= =} : or (at your option) any later version. |
14 | .i_,=:_. -<s. This file is distributed in the hope that | 14 | .%`+i> _;_. |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | : .. .:, . . . without even the implied warranty of | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | : .. .:, . . . without even the implied warranty of |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | ..}^=.= = ; Public License for more details. | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ++= -. .` .: | 20 | ..}^=.= = ; Library General Public License for more |
21 | : = ...= . :.=- You should have received a copy of the GNU | 21 | ++= -. .` .: details. |
22 | -. .:....=;==+<; General Public License along with this file; | 22 | : = ...= . :.=- |
23 | -_. . . )=. = see the file COPYING. If not, write to the | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -- :-=` Free Software Foundation, Inc., | 24 | -_. . . )=. = Library General Public License along with |
25 | 59 Temple Place - Suite 330, | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
26 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
27 | |||
28 | */ | 29 | */ |
29 | 30 | ||
30 | #ifndef MAINWINDOW_H | 31 | #ifndef MAINWINDOW_H |
31 | #define MAINWINDOW_H | 32 | #define MAINWINDOW_H |
32 | 33 | ||
33 | #include "opackagemanager.h" | 34 | #include "opackagemanager.h" |
34 | 35 | ||
35 | #include <qpe/config.h> | 36 | #include <qpe/config.h> |
36 | 37 | ||
37 | #include <qlabel.h> | 38 | #include <qlabel.h> |
38 | #include <qlistview.h> | 39 | #include <qlistview.h> |
39 | #include <qmainwindow.h> | 40 | #include <qmainwindow.h> |
40 | #include <qpixmap.h> | 41 | #include <qpixmap.h> |
41 | #include <qprogressbar.h> | 42 | #include <qprogressbar.h> |
42 | #include <qtoolbar.h> | 43 | #include <qtoolbar.h> |
43 | #include <qwidgetstack.h> | 44 | #include <qwidgetstack.h> |
44 | 45 | ||
45 | class QAction; | 46 | class QAction; |
46 | class QLineEdit; | 47 | class QLineEdit; |
47 | 48 | ||
48 | class MainWindow :public QMainWindow | 49 | class MainWindow :public QMainWindow |
49 | { | 50 | { |
50 | Q_OBJECT | 51 | Q_OBJECT |
51 | 52 | ||
52 | public: | 53 | public: |
53 | MainWindow( QWidget *parent = 0x0, const char *name = 0x0, WFlags fl = 0 ); | 54 | MainWindow( QWidget *parent = 0x0, const char *name = 0x0, WFlags fl = 0 ); |
54 | static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); }; | 55 | static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); }; |
55 | 56 | ||
56 | protected: | 57 | protected: |
57 | void closeEvent( QCloseEvent *event ); | 58 | void closeEvent( QCloseEvent *event ); |
58 | 59 | ||
59 | private: | 60 | private: |
60 | Config m_config; // Configuration file | 61 | Config m_config; // Configuration file |
61 | 62 | ||
62 | OPackageManager m_packman; // Package manager | 63 | OPackageManager m_packman; // Package manager |
63 | 64 | ||
64 | // Toolbars | 65 | // Toolbars |
65 | QToolBar m_menuBar; // Main toolbar containing menu | 66 | QToolBar m_menuBar; // Main toolbar containing menu |
66 | QToolBar m_toolBar; // Main toolbar | 67 | QToolBar m_toolBar; // Main toolbar |
67 | QToolBar m_findBar; // Find toolbar | 68 | QToolBar m_findBar; // Find toolbar |
68 | 69 | ||
69 | QWidgetStack m_widgetStack; // Main widget stack which contains m_packageList & m_statusWidget | 70 | QWidgetStack m_widgetStack; // Main widget stack which contains m_packageList & m_statusWidget |
70 | QListView m_packageList; // Main list view of all packages | 71 | QListView m_packageList; // Main list view of all packages |
71 | 72 | ||
72 | QLineEdit *m_findEdit; // Line edit box used for find toolbar | 73 | QLineEdit *m_findEdit; // Line edit box used for find toolbar |
73 | 74 | ||
74 | // Status widget controls | 75 | // Status widget controls |
75 | QWidget m_statusWidget; // Widget to display status during long operations | 76 | QWidget m_statusWidget; // Widget to display status during long operations |