author | drw <drw> | 2003-03-04 01:15:19 (UTC) |
---|---|---|
committer | drw <drw> | 2003-03-04 01:15:19 (UTC) |
commit | 7cf53b4030437bdbd405b8b16684ba9f68e2891d (patch) (unidiff) | |
tree | 5dd4474a127422a837f886b83947ab494806225e | |
parent | c0045eaf96fc06316bfab1ac2f5c4fade050c088 (diff) | |
download | opie-7cf53b4030437bdbd405b8b16684ba9f68e2891d.zip opie-7cf53b4030437bdbd405b8b16684ba9f68e2891d.tar.gz opie-7cf53b4030437bdbd405b8b16684ba9f68e2891d.tar.bz2 |
Remove AQPkg's own help window, use standard help system
-rw-r--r-- | noncore/settings/aqpkg/aqpkg.pro | 2 | ||||
-rw-r--r-- | noncore/settings/aqpkg/doc.txt | 49 | ||||
-rw-r--r-- | noncore/settings/aqpkg/helpwindow.cpp | 95 | ||||
-rw-r--r-- | noncore/settings/aqpkg/helpwindow.h | 34 | ||||
-rw-r--r-- | noncore/settings/aqpkg/mainwin.cpp | 25 | ||||
-rw-r--r-- | noncore/settings/aqpkg/mainwin.h | 2 |
6 files changed, 0 insertions, 207 deletions
diff --git a/noncore/settings/aqpkg/aqpkg.pro b/noncore/settings/aqpkg/aqpkg.pro index 6b4fb30..e4076f5 100644 --- a/noncore/settings/aqpkg/aqpkg.pro +++ b/noncore/settings/aqpkg/aqpkg.pro | |||
@@ -11,7 +11,6 @@ HEADERS = global.h \ | |||
11 | destination.h \ | 11 | destination.h \ |
12 | utils.h \ | 12 | utils.h \ |
13 | server.h \ | 13 | server.h \ |
14 | helpwindow.h \ | ||
15 | letterpushbutton.h \ | 14 | letterpushbutton.h \ |
16 | inputdlg.h \ | 15 | inputdlg.h \ |
17 | categoryfilterimpl.h | 16 | categoryfilterimpl.h |
@@ -27,7 +26,6 @@ SOURCES = mainwin.cpp \ | |||
27 | destination.cpp \ | 26 | destination.cpp \ |
28 | utils.cpp \ | 27 | utils.cpp \ |
29 | server.cpp \ | 28 | server.cpp \ |
30 | helpwindow.cpp \ | ||
31 | letterpushbutton.cpp \ | 29 | letterpushbutton.cpp \ |
32 | inputdlg.cpp \ | 30 | inputdlg.cpp \ |
33 | version.cpp \ | 31 | version.cpp \ |
diff --git a/noncore/settings/aqpkg/doc.txt b/noncore/settings/aqpkg/doc.txt deleted file mode 100644 index 7722c07..0000000 --- a/noncore/settings/aqpkg/doc.txt +++ b/dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | <qt><h1>Documentation for AQPkg</h1><p> | ||
2 | AQPkg is a package manager for the Sharp Zaurus.<br> | ||
3 | Basic Instructions:<br> | ||
4 | On startup, you will be shown a window. The main part of the window is taken up | ||
5 | by a list box showing packages. The packages shown will depend on the server selected.<br> | ||
6 | The servers list contains network servers containing feeds of packages that can be downloaded | ||
7 | and installed onto your Zaurus. These are held in the file /etc/ipkg.conf and can be maintained | ||
8 | using AQPkg. In addition to the servers defined in ipkg.conf file, there are two other servers - | ||
9 | local and local IPKGs. These are not network servers but views of yours Zaurus.<br> | ||
10 | The local server shows all installed packages, and the local IPKGs server shows all ipks | ||
11 | that are stored on your Zaurus.<br> | ||
12 | On the local server, you can only remove packages. On the local IPKGs server you can only | ||
13 | install and delete packages - removing installed packages is currently not working. On all other | ||
14 | servers you can install, uninstall, upgrade and download packages.<br> | ||
15 | To get the latest package list for a server (or refresh the view), select the server you | ||
16 | wish to update and click the Refresh List button.<br> | ||
17 | To download a package from a remote server, select the server (any except local and local IPKGs), | ||
18 | then select the package(s) you wish to download (by tapping in the box next to the package | ||
19 | name so that a tick appears in the box) and click the Download button. Enter the path where you | ||
20 | want the package to be downloaded to and click OK to download the package.<br> | ||
21 | To install, upgrade or remove a package select the packages you wish to install and click the Apply | ||
22 | button. You will then be shown a dialog which allows you to select which destination you wish | ||
23 | to install the package to, which packages will be installed, removed and upgraded. You can also | ||
24 | set various options. (for the moment, see the documentation for IPKG for more details on these | ||
25 | options). To start the process, click Start. This will perform the necessary operations and | ||
26 | will show you what is happening. Once everything has completed click the Close button.<br> | ||
27 | Note: Currently, the operation to perform for a package is automatically decided based on the | ||
28 | following rules:<br> | ||
29 | If a package isn't installed, then it will be installed.<br> | ||
30 | If a package is installed and there isn't a later version available then it will be removed.<br> | ||
31 | If a package is installed and a different version is available then it will be upgraded. (Note, | ||
32 | I haven't yet found a way to determine if an available package is newer or older than the one | ||
33 | currently installed so it is possible that a package may be downgraded).<br> | ||
34 | As previously mentioned, a package can be explicitly removed by using the local server.<br><br> | ||
35 | A couple of last notes, in the main window, the following may be useful:<br> | ||
36 | If a package is installed then it will have (installed) after it.<br> | ||
37 | If a different version is available then it will have a * after the package name.<br> | ||
38 | You can view details of a package by tapping twice (quickly) on the package name (NOT the | ||
39 | box next to the package name). This will show you a brief description of the package, the | ||
40 | version installed (if it is installed), and the version available for download/installation | ||
41 | (if a different on is available).<br><br><br> | ||
42 | Well, hope you enjoy using this program. If you have any ideas/suggestions/ideas for improvements | ||
43 | then please let me know at andy.qua@blueyonder.co.uk.<br><br> | ||
44 | Thanks for using this. | ||
45 | Andy. | ||
46 | </p></qt> | ||
47 | |||
48 | |||
49 | |||
diff --git a/noncore/settings/aqpkg/helpwindow.cpp b/noncore/settings/aqpkg/helpwindow.cpp deleted file mode 100644 index 0302b3f..0000000 --- a/noncore/settings/aqpkg/helpwindow.cpp +++ b/dev/null | |||
@@ -1,95 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | helpwindow.cpp - description | ||
3 | ------------------- | ||
4 | begin : Sun Sep 8 2002 | ||
5 | copyright : (C) 2002 by Andy Qua | ||
6 | email : andy.qua@blueyonder.co.uk | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #include <qwidget.h> | ||
19 | #include <qlayout.h> | ||
20 | #include <qstring.h> | ||
21 | #include <qtextview.h> | ||
22 | |||
23 | #include "helpwindow.h" | ||
24 | #include "global.h" | ||
25 | |||
26 | |||
27 | #define HELP_TEXT \ | ||
28 | "<qt><h1>Documentation for AQPkg</h1><p> " \ | ||
29 | "AQPkg is a package manager for the Sharp Zaurus.<br><br> " \ | ||
30 | "Basic Instructions:<br><br> " \ | ||
31 | "On startup, you will be shown a window. The main part of the window is taken up " \ | ||
32 | "by a list box showing packages. The packages shown will depend on the server selected.<br><br> " \ | ||
33 | "The servers list contains network servers containing feeds of packages that can be downloaded " \ | ||
34 | "and installed onto your Zaurus. These are held in the file /etc/ipkg.conf and can be maintained " \ | ||
35 | "using AQPkg. In addition to the servers defined in ipkg.conf file, there are two other servers - " \ | ||
36 | "local and local IPKGs. These are not network servers but views of yours Zaurus.<br><br> " \ | ||
37 | "The local server shows all installed packages, and the local IPKGs server shows all ipks " \ | ||
38 | "that are stored on your Zaurus.<br><br> " \ | ||
39 | "On the local server, you can only remove packages. On the local IPKGs server you can only " \ | ||
40 | "install and delete packages - removing installed packages is currently not working. On all other " \ | ||
41 | "servers you can install, uninstall, upgrade and download packages.<br><br> " \ | ||
42 | "To get the latest package list for a server (or refresh the view), select the server you " \ | ||
43 | "wish to update and click the Refresh List button.<br><br> " \ | ||
44 | "To download a package from a remote server, select the server (any except local and local IPKGs), " \ | ||
45 | "then select the package(s) you wish to download (by tapping in the box next to the package " \ | ||
46 | "name so that a tick appears in the box) and click the Download button. Enter the path where you " \ | ||
47 | "want the package to be downloaded to and click OK to download the package.<br><br> " \ | ||
48 | "To install, upgrade or remove a package select the packages you wish to install and click the Apply " \ | ||
49 | "button. You will then be shown a dialog which allows you to select which destination you wish " \ | ||
50 | "to install the package to, which packages will be installed, removed and upgraded. You can also " \ | ||
51 | "set various options. (for the moment, see the documentation for IPKG for more details on these " \ | ||
52 | "options). To start the process, click Start. This will perform the necessary operations and " \ | ||
53 | "will show you what is happening. Once everything has completed click the Close button.<br><br> " \ | ||
54 | "Note: Currently, the operation to perform for a package is automatically decided based on the " \ | ||
55 | "following rules:<br><br> " \ | ||
56 | " If a package isn't installed, then it will be installed.<br> " \ | ||
57 | " If a package is installed and there isn't a later version available then it will be removed.<br> " \ | ||
58 | " If a package is installed and a different version is available then it will be upgraded. (Note, " \ | ||
59 | "I haven't yet found a way to determine if an available package is newer or older than the one " \ | ||
60 | "currently installed so it is possible that a package may be downgraded).<br><br> " \ | ||
61 | "As previously mentioned, a package can be explicitly removed by using the local server.<br><br> " \ | ||
62 | "A couple of last notes, in the main window, the following may be useful:<br><br> " \ | ||
63 | "If a package is installed then it will have (installed) after it.<br><br> " \ | ||
64 | "If a different version is available then it will have a * after the package name.<br><br> " \ | ||
65 | "You can view details of a package by tapping twice (quickly) on the package name (NOT the " \ | ||
66 | "box next to the package name). This will show you a brief description of the package, the " \ | ||
67 | "version installed (if it is installed), and the version available for download or installation " \ | ||
68 | "(if a different on is available).<br><br> " \ | ||
69 | "Well, hope you enjoy using this program. If you have any ideas/suggestions/ideas for improvements " \ | ||
70 | "then please let me know at andy.qua@blueyonder.co.uk.<br><br> " \ | ||
71 | "Thanks for using this. " \ | ||
72 | "Andy. " \ | ||
73 | "</p></qt>" | ||
74 | |||
75 | |||
76 | HelpWindow::HelpWindow( QWidget *parent, const char *name, bool modal, WFlags flags ) | ||
77 | : QDialog( parent, name, modal, flags ) | ||
78 | { | ||
79 | // resize( 230, 280 ); | ||
80 | |||
81 | setCaption( "Help for AQPkg" ); | ||
82 | |||
83 | QVBoxLayout *layout = new QVBoxLayout( this ); | ||
84 | QString text = HELP_TEXT;; | ||
85 | QTextView *view = new QTextView( text, 0, this, "view" ); | ||
86 | layout->insertSpacing( -1, 5 ); | ||
87 | layout->insertWidget( -1, view ); | ||
88 | layout->insertSpacing( -1, 5 ); | ||
89 | |||
90 | showMaximized(); | ||
91 | } | ||
92 | |||
93 | HelpWindow::~HelpWindow() | ||
94 | { | ||
95 | } | ||
diff --git a/noncore/settings/aqpkg/helpwindow.h b/noncore/settings/aqpkg/helpwindow.h deleted file mode 100644 index edc1b6e..0000000 --- a/noncore/settings/aqpkg/helpwindow.h +++ b/dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | helpwindow.h - description | ||
3 | ------------------- | ||
4 | begin : Sun Sep 8 2002 | ||
5 | copyright : (C) 2002 by Andy Qua | ||
6 | email : andy.qua@blueyonder.co.uk | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #ifndef HELPWINDOW_H | ||
19 | #define HELPWINDOW_H | ||
20 | |||
21 | #include <qdialog.h> | ||
22 | |||
23 | /** | ||
24 | *@author Andy Qua | ||
25 | */ | ||
26 | |||
27 | class HelpWindow : public QDialog | ||
28 | { | ||
29 | public: | ||
30 | HelpWindow( QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags flags = 0 ); | ||
31 | ~HelpWindow(); | ||
32 | }; | ||
33 | |||
34 | #endif | ||
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 8ae5815..392d04d 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp | |||
@@ -43,7 +43,6 @@ | |||
43 | #include "categoryfilterimpl.h" | 43 | #include "categoryfilterimpl.h" |
44 | #include "datamgr.h" | 44 | #include "datamgr.h" |
45 | #include "global.h" | 45 | #include "global.h" |
46 | #include "helpwindow.h" | ||
47 | #include "inputdlg.h" | 46 | #include "inputdlg.h" |
48 | #include "ipkg.h" | 47 | #include "ipkg.h" |
49 | #include "installdlgimpl.h" | 48 | #include "installdlgimpl.h" |
@@ -204,18 +203,6 @@ MainWindow :: MainWindow() | |||
204 | connect( a, SIGNAL( activated() ), this, SLOT( displaySettings() ) ); | 203 | connect( a, SIGNAL( activated() ), this, SLOT( displaySettings() ) ); |
205 | a->addTo( popup ); | 204 | a->addTo( popup ); |
206 | 205 | ||
207 | popup->insertSeparator(); | ||
208 | |||
209 | a = new QAction( tr( "Help" ), Resource::loadPixmap( "help_icon" ), QString::null, 0, this, 0 ); | ||
210 | a->setWhatsThis( tr( "Click here for help." ) ); | ||
211 | connect( a, SIGNAL( activated() ), this, SLOT( displayHelp() ) ); | ||
212 | a->addTo( popup ); | ||
213 | |||
214 | a = new QAction( tr( "About" ), Resource::loadPixmap( "UtilsIcon" ), QString::null, 0, this, 0 ); | ||
215 | a->setWhatsThis( tr( "Click here for software version information." ) ); | ||
216 | connect( a, SIGNAL( activated() ), this, SLOT( displayAbout() ) ); | ||
217 | a->addTo( popup ); | ||
218 | |||
219 | mb->insertItem( tr( "Options" ), popup ); | 206 | mb->insertItem( tr( "Options" ), popup ); |
220 | 207 | ||
221 | // Finish find toolbar creation | 208 | // Finish find toolbar creation |
@@ -353,13 +340,6 @@ void MainWindow :: displaySettings() | |||
353 | } | 340 | } |
354 | delete dlg; | 341 | delete dlg; |
355 | } | 342 | } |
356 | |||
357 | void MainWindow :: displayHelp() | ||
358 | { | ||
359 | HelpWindow *dlg = new HelpWindow( this ); | ||
360 | dlg->exec(); | ||
361 | delete dlg; | ||
362 | } | ||
363 | 343 | ||
364 | void MainWindow :: displayFindBar() | 344 | void MainWindow :: displayFindBar() |
365 | { | 345 | { |
@@ -393,11 +373,6 @@ void MainWindow :: hideJumpBar() | |||
393 | jumpBar->hide(); | 373 | jumpBar->hide(); |
394 | } | 374 | } |
395 | 375 | ||
396 | void MainWindow :: displayAbout() | ||
397 | { | ||
398 | QMessageBox::about( this, tr( "About AQPkg" ), tr( VERSION_TEXT ) ); | ||
399 | } | ||
400 | |||
401 | void MainWindow :: filterUninstalledPackages() | 376 | void MainWindow :: filterUninstalledPackages() |
402 | { | 377 | { |
403 | showUninstalledPkgs = actionUninstalled->isOn(); | 378 | showUninstalledPkgs = actionUninstalled->isOn(); |
diff --git a/noncore/settings/aqpkg/mainwin.h b/noncore/settings/aqpkg/mainwin.h index db06e16..d75e5d2 100644 --- a/noncore/settings/aqpkg/mainwin.h +++ b/noncore/settings/aqpkg/mainwin.h | |||
@@ -103,14 +103,12 @@ private: | |||
103 | 103 | ||
104 | public slots: | 104 | public slots: |
105 | // void setDocument( const QString &doc ); | 105 | // void setDocument( const QString &doc ); |
106 | void displayHelp(); | ||
107 | void displayFindBar(); | 106 | void displayFindBar(); |
108 | void displayJumpBar(); | 107 | void displayJumpBar(); |
109 | void repeatFind(); | 108 | void repeatFind(); |
110 | void findPackage( const QString & ); | 109 | void findPackage( const QString & ); |
111 | void hideFindBar(); | 110 | void hideFindBar(); |
112 | void hideJumpBar(); | 111 | void hideJumpBar(); |
113 | void displayAbout(); | ||
114 | void displaySettings(); | 112 | void displaySettings(); |
115 | void filterUninstalledPackages(); | 113 | void filterUninstalledPackages(); |
116 | void filterInstalledPackages(); | 114 | void filterInstalledPackages(); |