summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/configuredlg.cpp17
-rw-r--r--noncore/apps/dagger/navbar.cpp8
-rw-r--r--noncore/apps/dagger/searchbar.cpp6
3 files changed, 28 insertions, 3 deletions
diff --git a/noncore/apps/dagger/configuredlg.cpp b/noncore/apps/dagger/configuredlg.cpp
index e4dd60f..0a9317c 100644
--- a/noncore/apps/dagger/configuredlg.cpp
+++ b/noncore/apps/dagger/configuredlg.cpp
@@ -18,11 +18,12 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
18#include "configuredlg.h" 18#include "configuredlg.h"
19 19
20#include <qvbuttongroup.h>
21#include <qlabel.h> 20#include <qlabel.h>
22#include <qlayout.h> 21#include <qlayout.h>
22#include <qvbuttongroup.h>
23#include <qwhatsthis.h>
23 24
24ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwaysOpenNew, int numVerses, 25ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwaysOpenNew, int numVerses,
25 bool disableBlanking, int copyFormat, const QFont *font ) 26 bool disableBlanking, int copyFormat, const QFont *font )
26 : QDialog( parent, QString::null, true ) 27 : QDialog( parent, QString::null, true, WStyle_ContextHelp )
27 , m_tabs( this ) 28 , m_tabs( this )
28{ 29{
@@ -39,11 +40,14 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa
39 grid->setColStretch( 0, 2 ); 40 grid->setColStretch( 0, 2 );
40 41
41 QLabel *label = new QLabel( tr( "Path where Sword modules are located:" ), widget ); 42 QLabel *label = new QLabel( tr( "Path where Sword texts are located:" ), widget );
42 label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); 43 label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak );
44 QWhatsThis::add( label, tr( "Enter the path where the Sword modules (Bible texts, commentaries, etc.) can be found. This path should contain either the 'mods.conf' file or 'mods.d' sub-directory." ) );
43 grid->addMultiCellWidget( label, 0, 0, 0, 1 ); 45 grid->addMultiCellWidget( label, 0, 0, 0, 1 );
44 m_swordPath = new QLineEdit( swordPath, widget ); 46 m_swordPath = new QLineEdit( swordPath, widget );
47 QWhatsThis::add( m_swordPath, tr( "Enter the path where the Sword texts (Bibles, commentaries, etc.) can be found. This path should contain either the 'mods.conf' file or 'mods.d' sub-directory." ) );
45 grid->addMultiCellWidget( m_swordPath, 1, 1, 0, 1 ); 48 grid->addMultiCellWidget( m_swordPath, 1, 1, 0, 1 );
46 label = new QLabel( tr( "(Note: Dagger must be restarted for this option to take affect.)" ), widget ); 49 label = new QLabel( tr( "(Note: Dagger must be restarted for this option to take affect.)" ), widget );
47 label->setAlignment( Qt::AlignHCenter | Qt::AlignTop | Qt::WordBreak ); 50 label->setAlignment( Qt::AlignHCenter | Qt::AlignTop | Qt::WordBreak );
51 QWhatsThis::add( label, tr( "Enter the path where the Sword modules (Bible texts, commentaries, etc.) can be found. This path should contain either the 'mods.conf' file or 'mods.d' sub-directory." ) );
48 grid->addMultiCellWidget( label, 2, 2, 0, 1 ); 52 grid->addMultiCellWidget( label, 2, 2, 0, 1 );
49 53
@@ -52,4 +56,5 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa
52 m_alwaysOpenNew = new QCheckBox( tr( "Always open texts in new window?" ), widget ); 56 m_alwaysOpenNew = new QCheckBox( tr( "Always open texts in new window?" ), widget );
53 m_alwaysOpenNew->setChecked( alwaysOpenNew ); 57 m_alwaysOpenNew->setChecked( alwaysOpenNew );
58 QWhatsThis::add( m_alwaysOpenNew, tr( "Tap here to always open texts in a new window. If this option is not selected, only one copy of a Sword text will be opened." ) );
54 grid->addMultiCellWidget( m_alwaysOpenNew, 4, 4, 0, 1 ); 59 grid->addMultiCellWidget( m_alwaysOpenNew, 4, 4, 0, 1 );
55 60
@@ -58,7 +63,9 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa
58 label = new QLabel( tr( "Number of verses to display at a time:" ), widget ); 63 label = new QLabel( tr( "Number of verses to display at a time:" ), widget );
59 label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); 64 label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak );
65 QWhatsThis::add( label, tr( "Enter the number of verses to display at a time. This also affects how far the scroll to previous/next page buttons on the Navigation bar scroll." ) );
60 grid->addWidget( label, 6, 0 ); 66 grid->addWidget( label, 6, 0 );
61 m_numVerses = new QSpinBox( 1, 20, 1, widget ); 67 m_numVerses = new QSpinBox( 1, 20, 1, widget );
62 m_numVerses->setValue( numVerses ); 68 m_numVerses->setValue( numVerses );
69 QWhatsThis::add( m_numVerses, tr( "Enter the number of verses to display at a time. This also affects how far the scroll to previous/next page buttons on the Navigation bar scroll." ) );
63 grid->addWidget( m_numVerses, 6, 1 ); 70 grid->addWidget( m_numVerses, 6, 1 );
64 71
@@ -67,4 +74,5 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa
67 m_disableScreenBlank = new QCheckBox( tr( "Disable automatic screen power-down?" ), widget ); 74 m_disableScreenBlank = new QCheckBox( tr( "Disable automatic screen power-down?" ), widget );
68 m_disableScreenBlank->setChecked( disableBlanking ); 75 m_disableScreenBlank->setChecked( disableBlanking );
76 QWhatsThis::add( m_disableScreenBlank, tr( "Tap here to disable Opie's automatic power management feature which will dim and turn off the screen after a specified time. This will only be effective while Dagger is running." ) );
69 grid->addMultiCellWidget( m_disableScreenBlank, 8, 8, 0, 1 ); 77 grid->addMultiCellWidget( m_disableScreenBlank, 8, 8, 0, 1 );
70 78
@@ -73,4 +81,5 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa
73 // Copy tab 81 // Copy tab
74 widget = new QWidget( this ); 82 widget = new QWidget( this );
83 QWhatsThis::add( widget, tr( "Select the format used when copying the current verse to the clipboard." ) );
75 layout = new QVBoxLayout( widget ); 84 layout = new QVBoxLayout( widget );
76 layout->setMargin( 4 ); 85 layout->setMargin( 4 );
@@ -116,4 +125,6 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa
116 if ( font ) 125 if ( font )
117 m_font->setSelectedFont( *font ); 126 m_font->setSelectedFont( *font );
127 QWhatsThis::add( m_font, tr( "Select the font, style and size used for displaying texts." ) );
128
118 m_tabs.addTab( m_font, "font", tr( "Font" ) ); 129 m_tabs.addTab( m_font, "font", tr( "Font" ) );
119 130
diff --git a/noncore/apps/dagger/navbar.cpp b/noncore/apps/dagger/navbar.cpp
index 212dc36..97761f7 100644
--- a/noncore/apps/dagger/navbar.cpp
+++ b/noncore/apps/dagger/navbar.cpp
@@ -23,4 +23,5 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
23#include <qaction.h> 23#include <qaction.h>
24#include <qlineedit.h> 24#include <qlineedit.h>
25#include <qwhatsthis.h>
25 26
26NavBar::NavBar( QMainWindow *parent ) 27NavBar::NavBar( QMainWindow *parent )
@@ -30,4 +31,5 @@ NavBar::NavBar( QMainWindow *parent )
30 m_actionPrevPage = new QAction( tr( "Previous page" ), Resource::loadPixmap( "fastback" ), 31 m_actionPrevPage = new QAction( tr( "Previous page" ), Resource::loadPixmap( "fastback" ),
31 QString::null, 0, this, 0 ); 32 QString::null, 0, this, 0 );
33 m_actionPrevPage->setWhatsThis( tr( "Tap here to scroll backward one page." ) );
32 m_actionPrevPage->addTo( this ); 34 m_actionPrevPage->addTo( this );
33 connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) ); 35 connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) );
@@ -35,4 +37,5 @@ NavBar::NavBar( QMainWindow *parent )
35 m_actionPrevVerse = new QAction( tr( "Previous verse" ), Resource::loadPixmap( "back" ), 37 m_actionPrevVerse = new QAction( tr( "Previous verse" ), Resource::loadPixmap( "back" ),
36 QString::null, 0, this, 0 ); 38 QString::null, 0, this, 0 );
39 m_actionPrevVerse->setWhatsThis( tr( "Tap here to scroll backward one verse." ) );
37 m_actionPrevVerse->addTo( this ); 40 m_actionPrevVerse->addTo( this );
38 connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) ); 41 connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) );
@@ -40,8 +43,10 @@ NavBar::NavBar( QMainWindow *parent )
40 m_key = new QLineEdit( this ); 43 m_key = new QLineEdit( this );
41 setStretchableWidget( m_key ); 44 setStretchableWidget( m_key );
45 QWhatsThis::add( m_key, tr( "Enter location to display here." ) );
42 connect(m_key, SIGNAL(textChanged(const QString &)), this, SIGNAL(keyChanged(const QString &)) ); 46 connect(m_key, SIGNAL(textChanged(const QString &)), this, SIGNAL(keyChanged(const QString &)) );
43 47
44 m_actionNextVerse = new QAction( tr( "Next verse" ), Resource::loadPixmap( "forward" ), 48 m_actionNextVerse = new QAction( tr( "Next verse" ), Resource::loadPixmap( "forward" ),
45 QString::null, 0, this, 0 ); 49 QString::null, 0, this, 0 );
50 m_actionNextVerse->setWhatsThis( tr( "Tap here to scroll forward one verse." ) );
46 m_actionNextVerse->addTo( this ); 51 m_actionNextVerse->addTo( this );
47 connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) ); 52 connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) );
@@ -49,4 +54,5 @@ NavBar::NavBar( QMainWindow *parent )
49 m_actionNextPage = new QAction( tr( "Next page" ), Resource::loadPixmap( "fastforward" ), 54 m_actionNextPage = new QAction( tr( "Next page" ), Resource::loadPixmap( "fastforward" ),
50 QString::null, 0, this, 0 ); 55 QString::null, 0, this, 0 );
56 m_actionNextPage->setWhatsThis( tr( "Tap here to scroll forward one page." ) );
51 m_actionNextPage->addTo( this ); 57 m_actionNextPage->addTo( this );
52 connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) ); 58 connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) );
@@ -56,4 +62,5 @@ NavBar::NavBar( QMainWindow *parent )
56 m_scrollRate = new QSpinBox( 1, 100, 1, this ); 62 m_scrollRate = new QSpinBox( 1, 100, 1, this );
57 m_scrollRate->setMinimumWidth( 35 ); 63 m_scrollRate->setMinimumWidth( 35 );
64 QWhatsThis::add( m_scrollRate, tr( "Adjust auto-scroll rate here. A larger value represents a slower scrolling rate." ) );
58 connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) ); 65 connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) );
59 66
@@ -61,4 +68,5 @@ NavBar::NavBar( QMainWindow *parent )
61 QString::null, 0, this, 0 ); 68 QString::null, 0, this, 0 );
62 m_actionScroll->setToggleAction( true ); 69 m_actionScroll->setToggleAction( true );
70 m_actionScroll->setWhatsThis( tr( "Tap here to start or stop auto-scrolling." ) );
63 connect( m_actionScroll, SIGNAL(toggled(bool)), this, SIGNAL(autoScroll(bool)) ); 71 connect( m_actionScroll, SIGNAL(toggled(bool)), this, SIGNAL(autoScroll(bool)) );
64 m_actionScroll->addTo( this ); 72 m_actionScroll->addTo( this );
diff --git a/noncore/apps/dagger/searchbar.cpp b/noncore/apps/dagger/searchbar.cpp
index ff434dd..9953e8f 100644
--- a/noncore/apps/dagger/searchbar.cpp
+++ b/noncore/apps/dagger/searchbar.cpp
@@ -27,4 +27,5 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
27#include <qcombobox.h> 27#include <qcombobox.h>
28#include <qlineedit.h> 28#include <qlineedit.h>
29#include <qwhatsthis.h>
29 30
30#include <listkey.h> 31#include <listkey.h>
@@ -44,4 +45,5 @@ SearchBar::SearchBar( QMainWindow *parent )
44 m_searchText = new QLineEdit( this ); 45 m_searchText = new QLineEdit( this );
45 setStretchableWidget( m_searchText ); 46 setStretchableWidget( m_searchText );
47 QWhatsThis::add( m_searchText, tr( "Enter text to search for here." ) );
46 connect(m_searchText, SIGNAL(textChanged(const QString &)), 48 connect(m_searchText, SIGNAL(textChanged(const QString &)),
47 this, SLOT(slotTextChanged(const QString &)) ); 49 this, SLOT(slotTextChanged(const QString &)) );
@@ -51,4 +53,5 @@ SearchBar::SearchBar( QMainWindow *parent )
51 m_actionFind->setEnabled( false ); 53 m_actionFind->setEnabled( false );
52 m_actionFind->addTo( this ); 54 m_actionFind->addTo( this );
55 m_actionFind->setWhatsThis( tr( "Tap here search the current module for the text entered to the left." ) );
53 connect( m_actionFind, SIGNAL(activated()), this, SLOT(slotFind()) ); 56 connect( m_actionFind, SIGNAL(activated()), this, SLOT(slotFind()) );
54 57
@@ -59,8 +62,10 @@ SearchBar::SearchBar( QMainWindow *parent )
59 m_actionPrev->setEnabled( false ); 62 m_actionPrev->setEnabled( false );
60 m_actionPrev->addTo( this ); 63 m_actionPrev->addTo( this );
64 m_actionPrev->setWhatsThis( tr( "Tap here to view the previous search result." ) );
61 connect( m_actionPrev, SIGNAL(activated()), this, SLOT(slotPrev()) ); 65 connect( m_actionPrev, SIGNAL(activated()), this, SLOT(slotPrev()) );
62 66
63 m_resultList = new QComboBox( this ); 67 m_resultList = new QComboBox( this );
64 m_resultList->setEnabled( false ); 68 m_resultList->setEnabled( false );
69 QWhatsThis::add( m_resultList, tr( "Select the desired search result here." ) );
65 connect( m_resultList, SIGNAL(activated(const QString &)), this, SIGNAL(sigResultClicked(const QString &)) ); 70 connect( m_resultList, SIGNAL(activated(const QString &)), this, SIGNAL(sigResultClicked(const QString &)) );
66 71
@@ -69,4 +74,5 @@ SearchBar::SearchBar( QMainWindow *parent )
69 m_actionNext->setEnabled( false ); 74 m_actionNext->setEnabled( false );
70 m_actionNext->addTo( this ); 75 m_actionNext->addTo( this );
76 m_actionNext->setWhatsThis( tr( "Tap here to view the next search result." ) );
71 connect( m_actionNext, SIGNAL(activated()), this, SLOT(slotNext()) ); 77 connect( m_actionNext, SIGNAL(activated()), this, SLOT(slotNext()) );
72 78