summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.cpp
authordrw <drw>2002-10-26 18:23:34 (UTC)
committer drw <drw>2002-10-26 18:23:34 (UTC)
commit3dc25703dbf961f86bc25378113ffafb18ee192e (patch) (side-by-side diff)
tree75436ace2b4c524ea29de5cbd8ac6cbbbcf7ec4e /noncore/apps/checkbook/checkbook.cpp
parentec58c37763a97306543a3f18052d37291b1cdf83 (diff)
downloadopie-3dc25703dbf961f86bc25378113ffafb18ee192e.zip
opie-3dc25703dbf961f86bc25378113ffafb18ee192e.tar.gz
opie-3dc25703dbf961f86bc25378113ffafb18ee192e.tar.bz2
Whats This and a couple fixes
Diffstat (limited to 'noncore/apps/checkbook/checkbook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp
index 2919927..ee65784 100644
--- a/noncore/apps/checkbook/checkbook.cpp
+++ b/noncore/apps/checkbook/checkbook.cpp
@@ -45,2 +45,3 @@
#include <qpushbutton.h>
+#include <qwhatsthis.h>
#include <qwidget.h>
@@ -48,3 +49,3 @@
Checkbook::Checkbook( QWidget *parent, const QString &n, const QString &fd, char symbol )
- : QDialog( parent, 0, TRUE, 0 )
+ : QDialog( parent, 0, TRUE, WStyle_ContextHelp )
{
@@ -112,4 +113,6 @@ QWidget *Checkbook::initInfo()
QLabel *label = new QLabel( tr( "Name:" ), container );
+ QWhatsThis::add( label, tr( "Enter name of checkbook here." ) );
layout->addWidget( label, 0, 0 );
nameEdit = new QLineEdit( container );
+ QWhatsThis::add( nameEdit, tr( "Enter name of checkbook here." ) );
connect( nameEdit, SIGNAL( textChanged( const QString & ) ),
@@ -120,4 +123,6 @@ QWidget *Checkbook::initInfo()
label = new QLabel( tr( "Type:" ), container );
+ QWhatsThis::add( label, tr( "Select type of checkbook here." ) );
layout->addWidget( label, 1, 0 );
typeList = new QComboBox( container );
+ QWhatsThis::add( typeList, tr( "Select type of checkbook here." ) );
typeList->insertItem( tr( "Savings" ) ); // 0
@@ -132,4 +137,6 @@ QWidget *Checkbook::initInfo()
label = new QLabel( tr( "Bank:" ), container );
+ QWhatsThis::add( label, tr( "Enter name of the bank for this checkbook here." ) );
layout->addWidget( label, 2, 0 );
bankEdit = new QLineEdit( container );
+ QWhatsThis::add( bankEdit, tr( "Enter name of the bank for this checkbook here." ) );
layout->addWidget( bankEdit, 2, 1 );
@@ -138,4 +145,6 @@ QWidget *Checkbook::initInfo()
label = new QLabel( tr( "Account number:" ), container );
+ QWhatsThis::add( label, tr( "Enter account number for this checkbook here." ) );
layout->addWidget( label, 3, 0 );
acctNumEdit = new QLineEdit( container );
+ QWhatsThis::add( acctNumEdit, tr( "Enter account number for this checkbook here." ) );
layout->addWidget( acctNumEdit, 3, 1 );
@@ -144,4 +153,6 @@ QWidget *Checkbook::initInfo()
label = new QLabel( tr( "PIN number:" ), container );
+ QWhatsThis::add( label, tr( "Enter PIN number for this checkbook here." ) );
layout->addWidget( label, 4, 0 );
pinNumEdit = new QLineEdit( container );
+ QWhatsThis::add( pinNumEdit, tr( "Enter PIN number for this checkbook here." ) );
layout->addWidget( pinNumEdit, 4, 1 );
@@ -150,4 +161,6 @@ QWidget *Checkbook::initInfo()
label = new QLabel( tr( "Starting balance:" ), container );
+ QWhatsThis::add( label, tr( "Enter the initial balance for this checkbook here." ) );
layout->addWidget( label, 5, 0 );
balanceEdit = new QLineEdit( container );
+ QWhatsThis::add( balanceEdit, tr( "Enter the initial balance for this checkbook here." ) );
connect( balanceEdit, SIGNAL( textChanged( const QString & ) ),
@@ -158,4 +171,6 @@ QWidget *Checkbook::initInfo()
label = new QLabel( tr( "Notes:" ), container );
+ QWhatsThis::add( label, tr( "Enter any additional information for this checkbook here." ) );
layout->addWidget( label, 6, 0 );
notesEdit = new QMultiLineEdit( container );
+ QWhatsThis::add( notesEdit, tr( "Enter any additional information for this checkbook here." ) );
notesEdit->setMaximumHeight( 85 );
@@ -176,2 +191,3 @@ QWidget *Checkbook::initTransactions()
control );
+ QWhatsThis::add( balanceLabel, tr( "This area shows the current balance in this checkbook." ) );
layout->addMultiCellWidget( balanceLabel, 0, 0, 0, 2 );
@@ -179,2 +195,3 @@ QWidget *Checkbook::initTransactions()
tranTable = new QListView( control );
+ QWhatsThis::add( tranTable, tr( "This is a listing of all transactions entered for this checkbook.\n\nTo sort entries by a specific field, click on the column name." ) );
tranTable->addColumn( tr( "ID" ) );
@@ -191,2 +208,3 @@ QWidget *Checkbook::initTransactions()
QPushButton *btn = new QPushButton( Resource::loadPixmap( "new" ), tr( "New" ), control );
+ QWhatsThis::add( btn, tr( "Click here to add a new transaction." ) );
connect( btn, SIGNAL( clicked() ), this, SLOT( slotNewTran() ) );
@@ -195,2 +213,3 @@ QWidget *Checkbook::initTransactions()
btn = new QPushButton( Resource::loadPixmap( "edit" ), tr( "Edit" ), control );
+ QWhatsThis::add( btn, tr( "Select a transaction and then click here to edit it." ) );
connect( btn, SIGNAL( clicked() ), this, SLOT( slotEditTran() ) );
@@ -198,3 +217,4 @@ QWidget *Checkbook::initTransactions()
- btn = new QPushButton( Resource::loadPixmap( "editdelete" ), tr( "Delete" ), control );
+ btn = new QPushButton( Resource::loadPixmap( "trash" ), tr( "Delete" ), control );
+ QWhatsThis::add( btn, tr( "Select a checkbook and then click here to delete it." ) );
connect( btn, SIGNAL( clicked() ), this, SLOT( slotDeleteTran() ) );
@@ -225,2 +245,3 @@ QWidget *Checkbook::initCharts()
QWidget *graphWidget = new QWidget( control );
+ QWhatsThis::add( graphWidget, tr( "Graph not implemented yet." ) );
layout->addMultiCellWidget( graphWidget, 0, 0, 0, 1 );
@@ -229,2 +250,3 @@ QWidget *Checkbook::initCharts()
QPushButton *btn = new QPushButton( Resource::loadPixmap( "edit" ), tr( "Draw" ), control );
+ QWhatsThis::add( btn, tr( "Click here to draw the graph." ) );
connect( btn, SIGNAL( clicked() ), this, SLOT( slotDrawGraph() ) );