summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/helpwindow.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/helpwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/helpwindow.cpp95
1 files changed, 0 insertions, 95 deletions
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
76HelpWindow::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
93HelpWindow::~HelpWindow()
94{
95}