author | drw <drw> | 2005-05-16 17:49:55 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-16 17:49:55 (UTC) |
commit | d54ee25eca9a9e8d38e342828aa21589dc523ce3 (patch) (unidiff) | |
tree | 89bc093b7696bd42b0e7fa3b88bca1890f002bcf | |
parent | d2426de3452342ab4af8e95214b9ff408f30744e (diff) | |
download | opie-d54ee25eca9a9e8d38e342828aa21589dc523ce3.zip opie-d54ee25eca9a9e8d38e342828aa21589dc523ce3.tar.gz opie-d54ee25eca9a9e8d38e342828aa21589dc523ce3.tar.bz2 |
Resource -> OResource
-rw-r--r-- | noncore/apps/dagger/configuredlg.cpp | 8 | ||||
-rw-r--r-- | noncore/apps/dagger/navbar.cpp | 19 | ||||
-rw-r--r-- | noncore/apps/dagger/opentextdlg.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/dagger/searchbar.cpp | 18 |
4 files changed, 25 insertions, 24 deletions
diff --git a/noncore/apps/dagger/configuredlg.cpp b/noncore/apps/dagger/configuredlg.cpp index 42bc6da..791eeb1 100644 --- a/noncore/apps/dagger/configuredlg.cpp +++ b/noncore/apps/dagger/configuredlg.cpp | |||
@@ -19,6 +19,5 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | |||
19 | 19 | ||
20 | #include <opie2/ofiledialog.h> | 20 | #include <opie2/ofiledialog.h> |
21 | 21 | #include <opie2/oresource.h> | |
22 | #include <qpe/resource.h> | ||
23 | 22 | ||
24 | #include <qlabel.h> | 23 | #include <qlabel.h> |
@@ -52,7 +51,6 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa | |||
52 | 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." ) ); | 51 | 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." ) ); |
53 | grid->addWidget( m_swordPath, 1, 0 ); | 52 | grid->addWidget( m_swordPath, 1, 0 ); |
54 | QPixmap pic; | 53 | QPushButton *btn = new QPushButton( Opie::Core::OResource::loadPixmap( "folder", Opie::Core::OResource::SmallIcon ), |
55 | pic.convertFromImage( Resource::loadImage( "folder" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 54 | QString::null, widget ); |
56 | QPushButton *btn = new QPushButton( pic, QString::null, widget ); | ||
57 | btn->setMaximumWidth( btn->height() ); | 55 | btn->setMaximumWidth( btn->height() ); |
58 | QWhatsThis::add( btn, tr( "Tap here to select 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." ) ); | 56 | QWhatsThis::add( btn, tr( "Tap here to select 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." ) ); |
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 | |||
@@ -27,11 +27,10 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | |||
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." ) ); |
@@ -39,5 +38,6 @@ NavBar::NavBar( QMainWindow *parent ) | |||
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." ) ); |
@@ -50,5 +50,6 @@ NavBar::NavBar( QMainWindow *parent ) | |||
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." ) ); |
@@ -56,6 +57,7 @@ NavBar::NavBar( QMainWindow *parent ) | |||
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 ); |
@@ -69,5 +71,6 @@ NavBar::NavBar( QMainWindow *parent ) | |||
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 ); |
diff --git a/noncore/apps/dagger/opentextdlg.cpp b/noncore/apps/dagger/opentextdlg.cpp index 8c94a4b..7fd5cde 100644 --- a/noncore/apps/dagger/opentextdlg.cpp +++ b/noncore/apps/dagger/opentextdlg.cpp | |||
@@ -18,5 +18,5 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | |||
18 | #include "opentextdlg.h" | 18 | #include "opentextdlg.h" |
19 | 19 | ||
20 | #include <qpe/resource.h> | 20 | #include <qpe/applnk.h> |
21 | 21 | ||
22 | #include <qheader.h> | 22 | #include <qheader.h> |
@@ -36,5 +36,5 @@ OpenTextDlg::OpenTextDlg( QWidget *parent, sword::SWMgr *swordMgr, QPixmap *bibl | |||
36 | 36 | ||
37 | m_textList.setRootIsDecorated( true ); | 37 | m_textList.setRootIsDecorated( true ); |
38 | m_textList.addColumn( tr( "Icon" ),35 ); | 38 | m_textList.addColumn( tr( "Icon" ) ); |
39 | m_textList.addColumn( tr( "Text" ) ); | 39 | m_textList.addColumn( tr( "Text" ) ); |
40 | m_textList.header()->hide(); | 40 | m_textList.header()->hide(); |
diff --git a/noncore/apps/dagger/searchbar.cpp b/noncore/apps/dagger/searchbar.cpp index b794bfd..b195f67 100644 --- a/noncore/apps/dagger/searchbar.cpp +++ b/noncore/apps/dagger/searchbar.cpp | |||
@@ -23,5 +23,4 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | |||
23 | 23 | ||
24 | #include <qpe/qpeapplication.h> | 24 | #include <qpe/qpeapplication.h> |
25 | #include <qpe/resource.h> | ||
26 | 25 | ||
27 | #include <qaction.h> | 26 | #include <qaction.h> |
@@ -34,6 +33,4 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | |||
34 | #include <versekey.h> | 33 | #include <versekey.h> |
35 | 34 | ||
36 | using Opie::Core::OResource; | ||
37 | |||
38 | void searchCallback( char /*percent*/, void */*userData*/ ) | 35 | void searchCallback( char /*percent*/, void */*userData*/ ) |
39 | { | 36 | { |
@@ -52,6 +49,7 @@ SearchBar::SearchBar( QMainWindow *parent ) | |||
52 | this, SLOT(slotTextChanged(const QString &)) ); | 49 | this, SLOT(slotTextChanged(const QString &)) ); |
53 | 50 | ||
54 | m_actionFind = new QAction( tr( "Find" ), OResource::loadPixmap( "find", OResource::SmallIcon ), QString::null, | 51 | m_actionFind = new QAction( tr( "Find" ), |
55 | 0, this, 0 ); | 52 | Opie::Core::OResource::loadPixmap( "find", Opie::Core::OResource::SmallIcon ), |
53 | QString::null, 0, this, 0 ); | ||
56 | m_actionFind->setEnabled( false ); | 54 | m_actionFind->setEnabled( false ); |
57 | m_actionFind->addTo( this ); | 55 | m_actionFind->addTo( this ); |
@@ -61,6 +59,7 @@ SearchBar::SearchBar( QMainWindow *parent ) | |||
61 | addSeparator(); | 59 | addSeparator(); |
62 | 60 | ||
63 | m_actionPrev = new QAction( tr( "Previous result" ), OResource::loadPixmap( "back", OResource::SmallIcon ), | 61 | m_actionPrev = new QAction( tr( "Previous result" ), |
64 | QString::null, 0, this, 0 ); | 62 | Opie::Core::OResource::loadPixmap( "back", Opie::Core::OResource::SmallIcon ), |
63 | QString::null, 0, this, 0 ); | ||
65 | m_actionPrev->setEnabled( false ); | 64 | m_actionPrev->setEnabled( false ); |
66 | m_actionPrev->addTo( this ); | 65 | m_actionPrev->addTo( this ); |
@@ -73,6 +72,7 @@ SearchBar::SearchBar( QMainWindow *parent ) | |||
73 | connect( m_resultList, SIGNAL(activated(const QString &)), this, SIGNAL(sigResultClicked(const QString &)) ); | 72 | connect( m_resultList, SIGNAL(activated(const QString &)), this, SIGNAL(sigResultClicked(const QString &)) ); |
74 | 73 | ||
75 | m_actionNext = new QAction( tr( "Next result" ), OResource::loadPixmap( "forward", OResource::SmallIcon ), | 74 | m_actionNext = new QAction( tr( "Next result" ), |
76 | QString::null, 0, this, 0 ); | 75 | Opie::Core::OResource::loadPixmap( "forward", Opie::Core::OResource::SmallIcon ), |
76 | QString::null, 0, this, 0 ); | ||
77 | m_actionNext->setEnabled( false ); | 77 | m_actionNext->setEnabled( false ); |
78 | m_actionNext->addTo( this ); | 78 | m_actionNext->addTo( this ); |