summaryrefslogtreecommitdiff
path: root/noncore/apps/dagger/navbar.cpp
authordrw <drw>2005-04-24 19:29:20 (UTC)
committer drw <drw>2005-04-24 19:29:20 (UTC)
commit9f4dd8e0d2cbe83d23c5405394d5e076dd6c2c6b (patch) (unidiff)
treeef243e01fd5347d74d06e7d90e9c3fc19d990534 /noncore/apps/dagger/navbar.cpp
parentd1ca2bbae79743f9f8a2c5ac1d702cc1c789fd27 (diff)
downloadopie-9f4dd8e0d2cbe83d23c5405394d5e076dd6c2c6b.zip
opie-9f4dd8e0d2cbe83d23c5405394d5e076dd6c2c6b.tar.gz
opie-9f4dd8e0d2cbe83d23c5405394d5e076dd6c2c6b.tar.bz2
Resource -> OResource
Diffstat (limited to 'noncore/apps/dagger/navbar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/navbar.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/noncore/apps/dagger/navbar.cpp b/noncore/apps/dagger/navbar.cpp
index 97761f7..ac49613 100644
--- a/noncore/apps/dagger/navbar.cpp
+++ b/noncore/apps/dagger/navbar.cpp
@@ -14,60 +14,64 @@ You should have received a copy of the GNU General Public License along with thi
14file; see the file COPYING. If not, write to the Free Software Foundation, Inc., 14file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
1559 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 1559 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16*/ 16*/
17 17
18#include "navbar.h" 18#include "navbar.h"
19 19
20#include <opie2/oresource.h>
21
20#include <qpe/config.h> 22#include <qpe/config.h>
21#include <qpe/resource.h> 23#include <qpe/resource.h>
22 24
23#include <qaction.h> 25#include <qaction.h>
24#include <qlineedit.h> 26#include <qlineedit.h>
25#include <qwhatsthis.h> 27#include <qwhatsthis.h>
26 28
29using Opie::Core::OResource;
30
27NavBar::NavBar( QMainWindow *parent ) 31NavBar::NavBar( QMainWindow *parent )
28 : QToolBar( QString::null, parent, QMainWindow::Top, true ) 32 : QToolBar( QString::null, parent, QMainWindow::Top, true )
29{ 33{
30 // Initialize UI 34 // Initialize UI
31 m_actionPrevPage = new QAction( tr( "Previous page" ), Resource::loadPixmap( "fastback" ), 35 m_actionPrevPage = new QAction( tr( "Previous page" ), OResource::loadPixmap( "fastback", OResource::SmallIcon ),
32 QString::null, 0, this, 0 ); 36 QString::null, 0, this, 0 );
33 m_actionPrevPage->setWhatsThis( tr( "Tap here to scroll backward one page." ) ); 37 m_actionPrevPage->setWhatsThis( tr( "Tap here to scroll backward one page." ) );
34 m_actionPrevPage->addTo( this ); 38 m_actionPrevPage->addTo( this );
35 connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) ); 39 connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) );
36 40
37 m_actionPrevVerse = new QAction( tr( "Previous verse" ), Resource::loadPixmap( "back" ), 41 m_actionPrevVerse = new QAction( tr( "Previous verse" ), OResource::loadPixmap( "back", OResource::SmallIcon ),
38 QString::null, 0, this, 0 ); 42 QString::null, 0, this, 0 );
39 m_actionPrevVerse->setWhatsThis( tr( "Tap here to scroll backward one verse." ) ); 43 m_actionPrevVerse->setWhatsThis( tr( "Tap here to scroll backward one verse." ) );
40 m_actionPrevVerse->addTo( this ); 44 m_actionPrevVerse->addTo( this );
41 connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) ); 45 connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) );
42 46
43 m_key = new QLineEdit( this ); 47 m_key = new QLineEdit( this );
44 setStretchableWidget( m_key ); 48 setStretchableWidget( m_key );
45 QWhatsThis::add( m_key, tr( "Enter location to display here." ) ); 49 QWhatsThis::add( m_key, tr( "Enter location to display here." ) );
46 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 &)) );
47 51
48 m_actionNextVerse = new QAction( tr( "Next verse" ), Resource::loadPixmap( "forward" ), 52 m_actionNextVerse = new QAction( tr( "Next verse" ), OResource::loadPixmap( "forward", OResource::SmallIcon ),
49 QString::null, 0, this, 0 ); 53 QString::null, 0, this, 0 );
50 m_actionNextVerse->setWhatsThis( tr( "Tap here to scroll forward one verse." ) ); 54 m_actionNextVerse->setWhatsThis( tr( "Tap here to scroll forward one verse." ) );
51 m_actionNextVerse->addTo( this ); 55 m_actionNextVerse->addTo( this );
52 connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) ); 56 connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) );
53 57
54 m_actionNextPage = new QAction( tr( "Next page" ), Resource::loadPixmap( "fastforward" ), 58 m_actionNextPage = new QAction( tr( "Next page" ), OResource::loadPixmap( "fastforward", OResource::SmallIcon ),
55 QString::null, 0, this, 0 ); 59 QString::null, 0, this, 0 );
56 m_actionNextPage->setWhatsThis( tr( "Tap here to scroll forward one page." ) ); 60 m_actionNextPage->setWhatsThis( tr( "Tap here to scroll forward one page." ) );
57 m_actionNextPage->addTo( this ); 61 m_actionNextPage->addTo( this );
58 connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) ); 62 connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) );
59 63
60 addSeparator(); 64 addSeparator();
61 65
62 m_scrollRate = new QSpinBox( 1, 100, 1, this ); 66 m_scrollRate = new QSpinBox( 1, 100, 1, this );
63 m_scrollRate->setMinimumWidth( 35 ); 67 m_scrollRate->setMinimumWidth( 35 );
64 QWhatsThis::add( m_scrollRate, tr( "Adjust auto-scroll rate here. A larger value represents a slower scrolling rate." ) ); 68 QWhatsThis::add( m_scrollRate, tr( "Adjust auto-scroll rate here. A larger value represents a slower scrolling rate." ) );
65 connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) ); 69 connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) );
66 70
67 m_actionScroll = new QAction( tr( "Auto-scroll" ), Resource::loadPixmap( "dagger/autoscroll" ), 71 m_actionScroll = new QAction( tr( "Auto-scroll" ), OResource::loadPixmap( "dagger/autoscroll", OResource::SmallIcon ),
68 QString::null, 0, this, 0 ); 72 QString::null, 0, this, 0 );
69 m_actionScroll->setToggleAction( true ); 73 m_actionScroll->setToggleAction( true );
70 m_actionScroll->setWhatsThis( tr( "Tap here to start or stop auto-scrolling." ) ); 74 m_actionScroll->setWhatsThis( tr( "Tap here to start or stop auto-scrolling." ) );
71 connect( m_actionScroll, SIGNAL(toggled(bool)), this, SIGNAL(autoScroll(bool)) ); 75 connect( m_actionScroll, SIGNAL(toggled(bool)), this, SIGNAL(autoScroll(bool)) );
72 m_actionScroll->addTo( this ); 76 m_actionScroll->addTo( this );
73 77