Diffstat (limited to 'noncore/settings/packagemanager/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/mainwindow.cpp | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/noncore/settings/packagemanager/mainwindow.cpp b/noncore/settings/packagemanager/mainwindow.cpp index 8a5b90c..0e40c01 100644 --- a/noncore/settings/packagemanager/mainwindow.cpp +++ b/noncore/settings/packagemanager/mainwindow.cpp | |||
@@ -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 | #include "mainwindow.h" | 31 | #include "mainwindow.h" |
31 | #include "installdlg.h" | 32 | #include "installdlg.h" |
32 | #include "filterdlg.h" | 33 | #include "filterdlg.h" |
33 | #include "promptdlg.h" | 34 | #include "promptdlg.h" |
34 | #include "entrydlg.h" | 35 | #include "entrydlg.h" |
35 | #include "packageinfodlg.h" | 36 | #include "packageinfodlg.h" |
36 | 37 | ||
37 | #include <opie2/ofiledialog.h> | 38 | #include <opie2/ofiledialog.h> |
38 | 39 | ||
39 | #include <qpe/qcopenvelope_qws.h> | 40 | #include <qpe/qcopenvelope_qws.h> |
40 | #include <qpe/qpeapplication.h> | 41 | #include <qpe/qpeapplication.h> |
41 | #include <qpe/resource.h> | 42 | #include <qpe/resource.h> |
42 | 43 | ||
43 | #include <qaction.h> | 44 | #include <qaction.h> |
44 | #include <qdir.h> | 45 | #include <qdir.h> |
45 | #include <qlayout.h> | 46 | #include <qlayout.h> |
46 | #include <qlineedit.h> | 47 | #include <qlineedit.h> |
47 | #include <qmenubar.h> | 48 | #include <qmenubar.h> |
48 | #include <qmessagebox.h> | 49 | #include <qmessagebox.h> |
49 | #include <qpopupmenu.h> | 50 | #include <qpopupmenu.h> |
50 | #include <qtimer.h> | 51 | #include <qtimer.h> |
51 | #include <qtoolbar.h> | 52 | #include <qtoolbar.h> |
52 | #include <qwhatsthis.h> | 53 | #include <qwhatsthis.h> |
53 | 54 | ||
54 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags /*fl*/ ) | 55 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags /*fl*/ ) |
55 | : QMainWindow( parent, name, WStyle_ContextHelp ) | 56 | : QMainWindow( parent, name, WStyle_ContextHelp ) |
56 | , m_config( "packman" ) | 57 | , m_config( "packman" ) |
57 | , m_packman( &m_config, this ) | 58 | , m_packman( &m_config, this ) |
58 | , m_menuBar( this ) | 59 | , m_menuBar( this ) |
59 | , m_toolBar( this ) | 60 | , m_toolBar( this ) |
60 | , m_findBar( this ) | 61 | , m_findBar( this ) |
61 | , m_widgetStack( this ) | 62 | , m_widgetStack( this ) |
62 | , m_packageList( this ) | 63 | , m_packageList( this ) |
63 | , m_statusWidget( this ) | 64 | , m_statusWidget( this ) |
64 | , m_statusText( &m_statusWidget ) | 65 | , m_statusText( &m_statusWidget ) |
65 | , m_statusBar( &m_statusWidget ) | 66 | , m_statusBar( &m_statusWidget ) |
66 | , m_iconUpdated( Resource::loadPixmap( "packagemanager/updated" ) ) | 67 | , m_iconUpdated( Resource::loadPixmap( "packagemanager/updated" ) ) |
67 | , m_iconInstalled( Resource::loadPixmap( "installed" ) ) | 68 | , m_iconInstalled( Resource::loadPixmap( "installed" ) ) |
68 | , m_iconNull( m_iconUpdated.size() ) | 69 | , m_iconNull( m_iconUpdated.size() ) |
69 | , m_filterName( QString::null ) | 70 | , m_filterName( QString::null ) |
70 | , m_filterServer( QString::null ) | 71 | , m_filterServer( QString::null ) |
71 | , m_filterDest( QString::null ) | 72 | , m_filterDest( QString::null ) |
72 | , m_filterStatus( OPackageManager::NotDefined ) | 73 | , m_filterStatus( OPackageManager::NotDefined ) |
73 | , m_filterCategory( QString::null ) | 74 | , m_filterCategory( QString::null ) |
74 | 75 | ||
75 | { | 76 | { |