author | drw <drw> | 2005-06-15 22:56:39 (UTC) |
---|---|---|
committer | drw <drw> | 2005-06-15 22:56:39 (UTC) |
commit | f461773acd6e6d6c58d9ac0acea7600c1e341faf (patch) (unidiff) | |
tree | 7c3f157a94c620df3ba8bfc6e7f6089c8a93cdf6 | |
parent | 7ff2e7bd4620a574f3ff22a951a5904310cfd920 (diff) | |
download | opie-f461773acd6e6d6c58d9ac0acea7600c1e341faf.zip opie-f461773acd6e6d6c58d9ac0acea7600c1e341faf.tar.gz opie-f461773acd6e6d6c58d9ac0acea7600c1e341faf.tar.bz2 |
Forgot to remove include
-rw-r--r-- | noncore/apps/dagger/navbar.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/dagger/navbar.cpp b/noncore/apps/dagger/navbar.cpp index b28c677..62a8a95 100644 --- a/noncore/apps/dagger/navbar.cpp +++ b/noncore/apps/dagger/navbar.cpp | |||
@@ -1,71 +1,70 @@ | |||
1 | /* | 1 | /* |
2 | Dagger - A Bible study program utilizing the Sword library. | 2 | Dagger - A Bible study program utilizing the Sword library. |
3 | Copyright (c) 2004 Dan Williams <drw@handhelds.org> | 3 | Copyright (c) 2004 Dan Williams <drw@handhelds.org> |
4 | 4 | ||
5 | This file is free software; you can redistribute it and/or modify it under | 5 | This file is free software; you can redistribute it and/or modify it under |
6 | the terms of the GNU General Public License as published by the Free Software | 6 | the terms of the GNU General Public License as published by the Free Software |
7 | Foundation; either version 2 of the License, or (at your option) any later version. | 7 | Foundation; either version 2 of the License, or (at your option) any later version. |
8 | 8 | ||
9 | This file is distributed in the hope that it will be useful, but WITHOUT ANY | 9 | This file is distributed in the hope that it will be useful, but WITHOUT ANY |
10 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 10 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 | PARTICULAR PURPOSE. See the GNU General Public License for more details. | 11 | PARTICULAR PURPOSE. See the GNU General Public License for more details. |
12 | 12 | ||
13 | You should have received a copy of the GNU General Public License along with this | 13 | You should have received a copy of the GNU General Public License along with this |
14 | file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | 14 | file; see the file COPYING. If not, write to the Free Software Foundation, Inc., |
15 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 15 | 59 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> | 20 | #include <opie2/oresource.h> |
21 | 21 | ||
22 | #include <qpe/config.h> | 22 | #include <qpe/config.h> |
23 | #include <qpe/resource.h> | ||
24 | 23 | ||
25 | #include <qaction.h> | 24 | #include <qaction.h> |
26 | #include <qlineedit.h> | 25 | #include <qlineedit.h> |
27 | #include <qwhatsthis.h> | 26 | #include <qwhatsthis.h> |
28 | 27 | ||
29 | NavBar::NavBar( QMainWindow *parent ) | 28 | NavBar::NavBar( QMainWindow *parent ) |
30 | : QToolBar( QString::null, parent, QMainWindow::Top, true ) | 29 | : QToolBar( QString::null, parent, QMainWindow::Top, true ) |
31 | { | 30 | { |
32 | // Initialize UI | 31 | // Initialize UI |
33 | m_actionPrevPage = new QAction( tr( "Previous page" ), | 32 | m_actionPrevPage = new QAction( tr( "Previous page" ), |
34 | Opie::Core::OResource::loadPixmap( "fastback", Opie::Core::OResource::SmallIcon ), | 33 | Opie::Core::OResource::loadPixmap( "fastback", Opie::Core::OResource::SmallIcon ), |
35 | QString::null, 0, this, 0 ); | 34 | QString::null, 0, this, 0 ); |
36 | m_actionPrevPage->setWhatsThis( tr( "Tap here to scroll backward one page." ) ); | 35 | m_actionPrevPage->setWhatsThis( tr( "Tap here to scroll backward one page." ) ); |
37 | m_actionPrevPage->addTo( this ); | 36 | m_actionPrevPage->addTo( this ); |
38 | connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) ); | 37 | connect( m_actionPrevPage, SIGNAL(activated()), this, SIGNAL(prevPage()) ); |
39 | 38 | ||
40 | m_actionPrevVerse = new QAction( tr( "Previous verse" ), | 39 | m_actionPrevVerse = new QAction( tr( "Previous verse" ), |
41 | Opie::Core::OResource::loadPixmap( "back", Opie::Core::OResource::SmallIcon ), | 40 | Opie::Core::OResource::loadPixmap( "back", Opie::Core::OResource::SmallIcon ), |
42 | QString::null, 0, this, 0 ); | 41 | QString::null, 0, this, 0 ); |
43 | m_actionPrevVerse->setWhatsThis( tr( "Tap here to scroll backward one verse." ) ); | 42 | m_actionPrevVerse->setWhatsThis( tr( "Tap here to scroll backward one verse." ) ); |
44 | m_actionPrevVerse->addTo( this ); | 43 | m_actionPrevVerse->addTo( this ); |
45 | connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) ); | 44 | connect( m_actionPrevVerse, SIGNAL(activated()), this, SIGNAL(prevVerse()) ); |
46 | 45 | ||
47 | m_key = new QLineEdit( this ); | 46 | m_key = new QLineEdit( this ); |
48 | setStretchableWidget( m_key ); | 47 | setStretchableWidget( m_key ); |
49 | QWhatsThis::add( m_key, tr( "Enter location to display here." ) ); | 48 | QWhatsThis::add( m_key, tr( "Enter location to display here." ) ); |
50 | connect(m_key, SIGNAL(textChanged(const QString &)), this, SIGNAL(keyChanged(const QString &)) ); | 49 | connect(m_key, SIGNAL(textChanged(const QString &)), this, SIGNAL(keyChanged(const QString &)) ); |
51 | 50 | ||
52 | m_actionNextVerse = new QAction( tr( "Next verse" ), | 51 | m_actionNextVerse = new QAction( tr( "Next verse" ), |
53 | Opie::Core::OResource::loadPixmap( "forward", Opie::Core::OResource::SmallIcon ), | 52 | Opie::Core::OResource::loadPixmap( "forward", Opie::Core::OResource::SmallIcon ), |
54 | QString::null, 0, this, 0 ); | 53 | QString::null, 0, this, 0 ); |
55 | m_actionNextVerse->setWhatsThis( tr( "Tap here to scroll forward one verse." ) ); | 54 | m_actionNextVerse->setWhatsThis( tr( "Tap here to scroll forward one verse." ) ); |
56 | m_actionNextVerse->addTo( this ); | 55 | m_actionNextVerse->addTo( this ); |
57 | connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) ); | 56 | connect( m_actionNextVerse, SIGNAL(activated()), this, SIGNAL(nextVerse()) ); |
58 | 57 | ||
59 | m_actionNextPage = new QAction( tr( "Next page" ), | 58 | m_actionNextPage = new QAction( tr( "Next page" ), |
60 | Opie::Core::OResource::loadPixmap( "fastforward", Opie::Core::OResource::SmallIcon ), | 59 | Opie::Core::OResource::loadPixmap( "fastforward", Opie::Core::OResource::SmallIcon ), |
61 | QString::null, 0, this, 0 ); | 60 | QString::null, 0, this, 0 ); |
62 | m_actionNextPage->setWhatsThis( tr( "Tap here to scroll forward one page." ) ); | 61 | m_actionNextPage->setWhatsThis( tr( "Tap here to scroll forward one page." ) ); |
63 | m_actionNextPage->addTo( this ); | 62 | m_actionNextPage->addTo( this ); |
64 | connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) ); | 63 | connect( m_actionNextPage, SIGNAL(activated()), this, SIGNAL(nextPage()) ); |
65 | 64 | ||
66 | addSeparator(); | 65 | addSeparator(); |
67 | 66 | ||
68 | m_scrollRate = new QSpinBox( 1, 100, 1, this ); | 67 | m_scrollRate = new QSpinBox( 1, 100, 1, this ); |
69 | m_scrollRate->setMinimumWidth( 35 ); | 68 | m_scrollRate->setMinimumWidth( 35 ); |
70 | QWhatsThis::add( m_scrollRate, tr( "Adjust auto-scroll rate here. A larger value represents a slower scrolling rate." ) ); | 69 | QWhatsThis::add( m_scrollRate, tr( "Adjust auto-scroll rate here. A larger value represents a slower scrolling rate." ) ); |
71 | connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) ); | 70 | connect( m_scrollRate, SIGNAL(valueChanged(int)), this, SIGNAL(scrollRateChanged(int)) ); |