Diffstat (limited to 'noncore/apps/dagger/navbar.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/dagger/navbar.cpp | 17 |
1 files changed, 10 insertions, 7 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 | |||
@@ -23,55 +23,58 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | |||
23 | #include <qpe/resource.h> | 23 | #include <qpe/resource.h> |
24 | 24 | ||
25 | #include <qaction.h> | 25 | #include <qaction.h> |
26 | #include <qlineedit.h> | 26 | #include <qlineedit.h> |
27 | #include <qwhatsthis.h> | 27 | #include <qwhatsthis.h> |
28 | 28 | ||
29 | using Opie::Core::OResource; | ||
30 | |||
31 | NavBar::NavBar( QMainWindow *parent ) | 29 | NavBar::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 ); |
45 | connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) ); | 45 | connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) ); |
46 | 46 | ||
47 | m_key = new QLineEdit( this ); | 47 | m_key = new QLineEdit( this ); |
48 | setStretchableWidget( m_key ); | 48 | setStretchableWidget( m_key ); |
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" ), |
60 | Opie::Core::OResource::loadPixmap( "fastforward", Opie::Core::OResource::SmallIcon ), | ||
59 | QString::null, 0, this, 0 ); | 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()) ); |
63 | 65 | ||
64 | addSeparator(); | 66 | addSeparator(); |
65 | 67 | ||
66 | m_scrollRate = new QSpinBox( 1, 100, 1, this ); | 68 | m_scrollRate = new QSpinBox( 1, 100, 1, this ); |
67 | m_scrollRate->setMinimumWidth( 35 ); | 69 | m_scrollRate->setMinimumWidth( 35 ); |
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." ) ); |
75 | connect( m_actionScroll, SIGNAL(toggled(bool)), this, SIGNAL(autoScroll(bool)) ); | 78 | connect( m_actionScroll, SIGNAL(toggled(bool)), this, SIGNAL(autoScroll(bool)) ); |
76 | m_actionScroll->addTo( this ); | 79 | m_actionScroll->addTo( this ); |
77 | 80 | ||