summaryrefslogtreecommitdiff
authordrw <drw>2002-12-22 17:03:27 (UTC)
committer drw <drw>2002-12-22 17:03:27 (UTC)
commitc8a5bdd7d4b7de88708e88df797bd494eb6f7e71 (patch) (side-by-side diff)
tree7e3468f1dd9afab3a1ccad2978c628b2d737fc1d
parent5377a2c897ae67ec2cd0cf8e57da9037366efe67 (diff)
downloadopie-c8a5bdd7d4b7de88708e88df797bd494eb6f7e71.zip
opie-c8a5bdd7d4b7de88708e88df797bd494eb6f7e71.tar.gz
opie-c8a5bdd7d4b7de88708e88df797bd494eb6f7e71.tar.bz2
QWhatsThis for main task view and toolbars.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp16
-rw-r--r--core/pim/todo/quickeditimpl.cpp8
-rw-r--r--core/pim/todo/tableview.cpp21
3 files changed, 26 insertions, 19 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 0ccf73e..d16d1ac 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -29,3 +29,2 @@
#include <unistd.h>
-#include <stdio.h>
@@ -40,2 +39,3 @@
#include <qlineedit.h>
+#include <qwhatsthis.h>
@@ -65,5 +65,4 @@ MainWindow::MainWindow( QWidget* parent,
const char* name )
- : OPimMainWindow("Todolist", parent, name)
+ : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp )
{
-
m_syncing = false;
@@ -98,2 +97,3 @@ void MainWindow::initActions() {
this, SLOT( slotNew() ) );
+ a->setWhatsThis( tr( "Click here to create a new task." ) );
a->addTo(m_tool );
@@ -105,2 +105,3 @@ void MainWindow::initActions() {
this, SLOT( slotEdit() ) );
+ a->setWhatsThis( tr( "Click here to modify the current task." ) );
a->addTo( m_tool );
@@ -120,2 +121,3 @@ void MainWindow::initActions() {
this, SLOT(slotDelete() ) );
+ a->setWhatsThis( tr( "Click here to remove the current task." ) );
a->addTo( m_tool );
@@ -149,6 +151,5 @@ void MainWindow::initActions() {
if ( Ir::supported() ) {
- a = new QAction( tr( "Beam" ), Resource::loadPixmap( "beam" ),
- QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ),
- this, SLOT( slotBeam() ) );
+ a = new QAction( tr( "Beam" ), Resource::loadPixmap( "beam" ), QString::null, 0, this, 0 );
+ connect( a, SIGNAL( activated() ), this, SLOT( slotBeam() ) );
+ a->setWhatsThis( tr( "Click here to send the current task to another device." ) );
a->addTo( m_edit );
@@ -238,2 +239,3 @@ void MainWindow::initViews() {
TableView* tableView = new TableView( this, m_stack );
+ QWhatsThis::add( tableView, tr( "This is a listing of all current tasks.\n\nThe list displays the following information:\n1. Completed - A green checkmark indicates task is completed. Click here to complete a task.\n2. Priority - a graphical representation of task priority. Double-click here to modify.\n3. Description - description of task. Click here to select the task.\n4. Deadline - shows when task is due. This column can be shown or hidden by selecting Options->'Show task deadlines' from the menu above." ) );
m_stack->addWidget( tableView, m_counter++ );
diff --git a/core/pim/todo/quickeditimpl.cpp b/core/pim/todo/quickeditimpl.cpp
index cadec03..7664ee4 100644
--- a/core/pim/todo/quickeditimpl.cpp
+++ b/core/pim/todo/quickeditimpl.cpp
@@ -2,2 +2,3 @@
#include <qlineedit.h>
+#include <qwhatsthis.h>
@@ -21,4 +22,2 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
-
- // TODO - come up with icons and replace text priority values
m_lbl = new OClickableLabel( this );
@@ -27,2 +26,3 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
connect(m_lbl, SIGNAL(clicked() ), this, SLOT(slotPrio()) );
+ QWhatsThis::add( m_lbl, tr( "Click here to set the priority of new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) );
@@ -30,2 +30,3 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
setStretchableWidget( m_edit );
+ QWhatsThis::add( m_edit, tr( "Enter description of new task here.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) );
@@ -34,2 +35,3 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
a->addTo( this );
+ a->setWhatsThis( tr( "Click here to enter additional information for new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) );
@@ -38,2 +40,3 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
a->addTo( this );
+ a->setWhatsThis( tr( "Click here to add new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) );
@@ -42,2 +45,3 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
a->addTo( this );
+ a->setWhatsThis( tr( "Click here to reset new task information.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) );
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index d229f52..cd6740a 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -61,2 +61,13 @@ TableView::TableView( MainWindow* window, QWidget* wid )
: QTable( wid ), TodoView( window ) {
+
+ // Load icons
+ // TODO - probably should be done globally somewhere else, see also quickeditimpl.cpp/h
+ m_pic_completed = Resource::loadPixmap( "todo/completed" );
+ QString namestr;
+ for ( unsigned int i = 1; i < 6; i++ ) {
+ namestr = "todo/priority";
+ namestr.append( QString::number( i ) );
+ m_pic_priority[ i - 1 ] = Resource::loadPixmap( namestr );
+ }
+
setUpdatesEnabled( false );
@@ -101,12 +112,2 @@ TableView::TableView( MainWindow* window, QWidget* wid )
- // Load icons
- // TODO - probably should be done globally somewhere else, see also quickeditimpl.cpp/h
- m_pic_completed = Resource::loadPixmap( "todo/completed" );
- QString namestr;
- for ( unsigned int i = 1; i < 6; i++ ) {
- namestr = "todo/priority";
- namestr.append( QString::number( i ) );
- m_pic_priority[ i - 1 ] = Resource::loadPixmap( namestr );
- }
-
/* now let's init the config */