summaryrefslogtreecommitdiff
path: root/noncore/apps/dagger/navbar.cpp
Unidiff
Diffstat (limited to 'noncore/apps/dagger/navbar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/navbar.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/noncore/apps/dagger/navbar.cpp b/noncore/apps/dagger/navbar.cpp
index ac49613..b28c677 100644
--- a/noncore/apps/dagger/navbar.cpp
+++ b/noncore/apps/dagger/navbar.cpp
@@ -26,19 +26,19 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
26#include <qlineedit.h> 26#include <qlineedit.h>
27#include <qwhatsthis.h> 27#include <qwhatsthis.h>
28 28
29using Opie::Core::OResource;
30
31NavBar::NavBar( QMainWindow *parent ) 29NavBar::NavBar( QMainWindow *parent )
32 : QToolBar( QString::null, parent, QMainWindow::Top, true ) 30 : QToolBar( QString::null, parent, QMainWindow::Top, true )
33{ 31{
34 // Initialize UI 32 // Initialize UI
35 m_actionPrevPage = new QAction( tr( "Previous page" ), OResource::loadPixmap( "fastback", OResource::SmallIcon ), 33 m_actionPrevPage = new QAction( tr( "Previous page" ),
34 Opie::Core::OResource::loadPixmap( "fastback", Opie::Core::OResource::SmallIcon ),
36 QString::null, 0, this, 0 ); 35 QString::null, 0, this, 0 );
37 m_actionPrevPage->setWhatsThis( tr( "Tap here to scroll backward one page." ) ); 36 m_actionPrevPage->setWhatsThis( tr( "Tap here to scroll backward one page." ) );
38 m_actionPrevPage->addTo( this ); 37 m_actionPrevPage->addTo( this );
39 connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) ); 38 connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) );
40 39
41 m_actionPrevVerse = new QAction( tr( "Previous verse" ), OResource::loadPixmap( "back", OResource::SmallIcon ), 40 m_actionPrevVerse = new QAction( tr( "Previous verse" ),
41 Opie::Core::OResource::loadPixmap( "back", Opie::Core::OResource::SmallIcon ),
42 QString::null, 0, this, 0 ); 42 QString::null, 0, this, 0 );
43 m_actionPrevVerse->setWhatsThis( tr( "Tap here to scroll backward one verse." ) ); 43 m_actionPrevVerse->setWhatsThis( tr( "Tap here to scroll backward one verse." ) );
44 m_actionPrevVerse->addTo( this ); 44 m_actionPrevVerse->addTo( this );
@@ -49,14 +49,16 @@ NavBar::NavBar( QMainWindow *parent )
49 QWhatsThis::add( m_key, tr( "Enter location to display here." ) ); 49 QWhatsThis::add( m_key, tr( "Enter location to display here." ) );
50 connect(m_key, SIGNAL(textChanged(const QString &)), this, SIGNAL(keyChanged(const QString &)) ); 50 connect(m_key, SIGNAL(textChanged(const QString &)), this, SIGNAL(keyChanged(const QString &)) );
51 51
52 m_actionNextVerse = new QAction( tr( "Next verse" ), OResource::loadPixmap( "forward", OResource::SmallIcon ), 52 m_actionNextVerse = new QAction( tr( "Next verse" ),
53 Opie::Core::OResource::loadPixmap( "forward", Opie::Core::OResource::SmallIcon ),
53 QString::null, 0, this, 0 ); 54 QString::null, 0, this, 0 );
54 m_actionNextVerse->setWhatsThis( tr( "Tap here to scroll forward one verse." ) ); 55 m_actionNextVerse->setWhatsThis( tr( "Tap here to scroll forward one verse." ) );
55 m_actionNextVerse->addTo( this ); 56 m_actionNextVerse->addTo( this );
56 connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) ); 57 connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) );
57 58
58 m_actionNextPage = new QAction( tr( "Next page" ), OResource::loadPixmap( "fastforward", OResource::SmallIcon ), 59 m_actionNextPage = new QAction( tr( "Next page" ),
59 QString::null, 0, this, 0 ); 60 Opie::Core::OResource::loadPixmap( "fastforward", Opie::Core::OResource::SmallIcon ),
61 QString::null, 0, this, 0 );
60 m_actionNextPage->setWhatsThis( tr( "Tap here to scroll forward one page." ) ); 62 m_actionNextPage->setWhatsThis( tr( "Tap here to scroll forward one page." ) );
61 m_actionNextPage->addTo( this ); 63 m_actionNextPage->addTo( this );
62 connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) ); 64 connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) );
@@ -68,7 +70,8 @@ NavBar::NavBar( QMainWindow *parent )
68 QWhatsThis::add( m_scrollRate, tr( "Adjust auto-scroll rate here. A larger value represents a slower scrolling rate." ) ); 70 QWhatsThis::add( m_scrollRate, tr( "Adjust auto-scroll rate here. A larger value represents a slower scrolling rate." ) );
69 connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) ); 71 connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) );
70 72
71 m_actionScroll = new QAction( tr( "Auto-scroll" ), OResource::loadPixmap( "dagger/autoscroll", OResource::SmallIcon ), 73 m_actionScroll = new QAction( tr( "Auto-scroll" ),
74 Opie::Core::OResource::loadPixmap( "dagger/autoscroll", Opie::Core::OResource::SmallIcon ),
72 QString::null, 0, this, 0 ); 75 QString::null, 0, this, 0 );
73 m_actionScroll->setToggleAction( true ); 76 m_actionScroll->setToggleAction( true );
74 m_actionScroll->setWhatsThis( tr( "Tap here to start or stop auto-scrolling." ) ); 77 m_actionScroll->setWhatsThis( tr( "Tap here to start or stop auto-scrolling." ) );