summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/modulesdetail.cpp12
-rw-r--r--noncore/settings/sysinfo/modulesinfo.cpp8
-rw-r--r--noncore/settings/sysinfo/processdetail.cpp10
-rw-r--r--noncore/settings/sysinfo/processinfo.cpp9
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp41
5 files changed, 51 insertions, 29 deletions
diff --git a/noncore/settings/sysinfo/modulesdetail.cpp b/noncore/settings/sysinfo/modulesdetail.cpp
index 48d47f6..ea5f352 100644
--- a/noncore/settings/sysinfo/modulesdetail.cpp
+++ b/noncore/settings/sysinfo/modulesdetail.cpp
@@ -25,5 +25,4 @@
#include <stdio.h>
+
#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qtextview.h>
#include <qlayout.h>
@@ -31,5 +30,8 @@
#include <qmessagebox.h>
+#include <qpushbutton.h>
+#include <qtextview.h>
+#include <qwhatsthis.h>
ModulesDetail::ModulesDetail( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
+ : QWidget( parent, name, WStyle_ContextHelp )
{
@@ -45,4 +47,4 @@ ModulesDetail::ModulesDetail( QWidget* parent, const char* name, WFlags fl )
// I can't think of other useful commands yet. Anyone?
-
layout->addWidget( CommandCB, 1, 0 );
+ QWhatsThis::add( CommandCB, tr( "Select a command here and then click the Send button to the right to send the command." ) );
@@ -50,2 +52,3 @@ ModulesDetail::ModulesDetail( QWidget* parent, const char* name, WFlags fl )
layout->addMultiCellWidget( ModulesView, 0, 0, 0, 1 );
+ QWhatsThis::add( ModulesView, tr( "This area shows detailed information about this module." ) );
@@ -57,2 +60,3 @@ ModulesDetail::ModulesDetail( QWidget* parent, const char* name, WFlags fl )
layout->addWidget( SendButton, 1, 1 );
+ QWhatsThis::add( SendButton, tr( "Click here to send the selected command to this module." ) );
}
diff --git a/noncore/settings/sysinfo/modulesinfo.cpp b/noncore/settings/sysinfo/modulesinfo.cpp
index 7a32c20..a0d26c7 100644
--- a/noncore/settings/sysinfo/modulesinfo.cpp
+++ b/noncore/settings/sysinfo/modulesinfo.cpp
@@ -23,7 +23,8 @@
+#include <qfile.h>
#include <qheader.h>
-#include <qlistview.h>
#include <qlayout.h>
+#include <qlistview.h>
#include <qtimer.h>
-#include <qfile.h>
+#include <qwhatsthis.h>
@@ -47,4 +48,5 @@ ModulesInfo::ModulesInfo( QWidget* parent, const char* name, WFlags fl )
this, SLOT( viewModules( QListViewItem * ) ) );
-
layout->addWidget( ModulesView );
+ QWhatsThis::add( ModulesView, tr( "This is a list of all the kernel modules currently loaded on this handheld device.\n\nClick and hold on a module to see additional information about the module, or to unload it." ) );
+
QTimer *t = new QTimer( this );
diff --git a/noncore/settings/sysinfo/processdetail.cpp b/noncore/settings/sysinfo/processdetail.cpp
index 5c0d335..661e32c 100644
--- a/noncore/settings/sysinfo/processdetail.cpp
+++ b/noncore/settings/sysinfo/processdetail.cpp
@@ -25,4 +25,2 @@
#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qtextview.h>
#include <qlayout.h>
@@ -30,5 +28,8 @@
#include <qmessagebox.h>
+#include <qpushbutton.h>
+#include <qtextview.h>
+#include <qwhatsthis.h>
ProcessDetail::ProcessDetail( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
+ : QWidget( parent, name, WStyle_ContextHelp )
{
@@ -52,2 +53,3 @@ ProcessDetail::ProcessDetail( QWidget* parent, const char* name, WFlags fl )
layout->addWidget( SignalCB, 1, 0 );
+ QWhatsThis::add( SignalCB, tr( "Select a signal here and then click the Send button to the right to send to this process." ) );
@@ -55,2 +57,3 @@ ProcessDetail::ProcessDetail( QWidget* parent, const char* name, WFlags fl )
layout->addMultiCellWidget( ProcessView, 0, 0, 0, 1 );
+ QWhatsThis::add( ProcessView, tr( "This area shows detailed information about this process." ) );
@@ -62,2 +65,3 @@ ProcessDetail::ProcessDetail( QWidget* parent, const char* name, WFlags fl )
layout->addWidget( SendButton, 1, 1 );
+ QWhatsThis::add( SendButton, tr( "Click here to send the selected signal to this process." ) );
}
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp
index 0512141..86133a9 100644
--- a/noncore/settings/sysinfo/processinfo.cpp
+++ b/noncore/settings/sysinfo/processinfo.cpp
@@ -21,8 +21,9 @@
+#include <qdir.h>
+#include <qfile.h>
#include <qheader.h>
-#include <qlistview.h>
#include <qlayout.h>
+#include <qlistview.h>
#include <qtimer.h>
-#include <qfile.h>
-#include <qdir.h>
+#include <qwhatsthis.h>
@@ -46,4 +47,4 @@ ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl )
this, SLOT( viewProcess( QListViewItem * ) ) );
-
layout->addWidget( ProcessView );
+ QWhatsThis::add( ProcessView, tr( "This is a list of all the processes on this handheld device.\n\nClick and hold on a process to see additional information about the process, or to send a signal to it." ) );
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index 79e7fea..658f371 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -45,3 +45,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
QVBoxLayout *vb = new QVBoxLayout( this, 4 );
-
+
QString kernelVersionString;
@@ -53,5 +53,8 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
v = v.left( 20 );
- kernelVersionString = tr( "<b>Linux Kernel</b><p>Version: " ) + v + "<p>";
+ kernelVersionString = tr( "<b>Linux Kernel</b><p>Version: " );
+ kernelVersionString.append( v );
+ kernelVersionString.append( "<p>" );
t >> v;
- kernelVersionString += tr( "Compiled by: " ) + v;
+ kernelVersionString.append( tr( "Compiled by: " ) );
+ kernelVersionString.append( v );
file.close();
@@ -59,4 +62,5 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
- QString palmtopVersionString;
- palmtopVersionString = tr( "<b>Opie</b><p>Version: " ) + QPE_VERSION + "<p>";
+ QString palmtopVersionString = tr( "<b>Opie</b><p>Version: " );
+ palmtopVersionString.append( QPE_VERSION );
+ palmtopVersionString.append( "<p>" );
#ifdef QPE_VENDOR
@@ -65,7 +69,10 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
QString builder = "Unknown";
-#endif
- palmtopVersionString += tr( "Compiled by: " ) + builder + "<p>";
- palmtopVersionString += tr( "Built on: " ) + __DATE__;
+#endif
+ palmtopVersionString.append( tr( "Compiled by: " ) );
+ palmtopVersionString.append( builder );
+ palmtopVersionString.append( "<p>" );
+ palmtopVersionString.append( tr( "Built on: " ) );
+ palmtopVersionString.append( __DATE__ );
+
-
QHBoxLayout *hb1 = new QHBoxLayout( vb );
@@ -98,3 +105,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft );
-
+
QLabel *kernelVersion = new QLabel( this );
@@ -116,7 +123,11 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
-// QString systemString = tr( "<b>System</b><p>System: ") + ODevice::inst()->systemString()
- QString systemString = "<b>"+ ODevice::inst()->systemString()+"</b>"
- +tr("<p>Version: " ) + ODevice::inst()->systemVersionString()
- +tr("<p>Model: ") + ODevice::inst()->modelString()
- +tr("<p>Vendor: ") + ODevice::inst()->vendorString();
+ QString systemString = "<b>";
+ systemString.append( ODevice::inst()->systemString() );
+ systemString.append( "</b>" );
+ systemString.append( tr( "<p>Version: " ) );
+ systemString.append( ODevice::inst()->systemVersionString() );
+ systemString.append( tr( "<p>Model: " ) );
+ systemString.append( ODevice::inst()->modelString() );
+ systemString.append( tr( "<p>Vendor: " ) );
+ systemString.append( ODevice::inst()->vendorString() );