summaryrefslogtreecommitdiff
authordrw <drw>2005-05-16 18:39:16 (UTC)
committer drw <drw>2005-05-16 18:39:16 (UTC)
commit17b9be61d7de14dea0d662a496e3d08bc9b1662e (patch) (side-by-side diff)
treeb7f5edc5f48ac3f342530a29f91a397f72d6d0e2
parent1a6137e3182a1b6974b64e22017207c32f9d4f7c (diff)
downloadopie-17b9be61d7de14dea0d662a496e3d08bc9b1662e.zip
opie-17b9be61d7de14dea0d662a496e3d08bc9b1662e.tar.gz
opie-17b9be61d7de14dea0d662a496e3d08bc9b1662e.tar.bz2
Resource -> OResource
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/gutenbrowser.cpp27
-rw-r--r--noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp18
2 files changed, 25 insertions, 20 deletions
diff --git a/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp b/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp
index 413ab51..e639d4d 100644
--- a/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp
+++ b/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp
@@ -29,12 +29,13 @@
/* OPIE */
#include <opie2/odebug.h>
+#include <opie2/oresource.h>
+
#include <qpe/qpeapplication.h>
#include <qpe/fontdatabase.h>
#include <qpe/config.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/mimetype.h>
-#include <qpe/resource.h>
#include <qpe/applnk.h>
/* QT */
@@ -287,15 +288,15 @@ void Gutenbrowser::toggleButtonIcons( bool useEm) {
odebug << "Docdir is "+QPEApplication::documentDir() << oendl;
if( useIcons && QDir( pixDir).exists() ) {
- LibraryButton->setPixmap( Resource::loadPixmap("home") ); //in inline
- OpenButton->setPixmap( Resource::loadPixmap("gutenbrowser/openbook"));
- ForwardButton->setPixmap( Resource::loadPixmap("forward"));//in inline
- BackButton->setPixmap( Resource::loadPixmap("back") );//in inline
- SearchButton->setPixmap( Resource::loadPixmap("gutenbrowser/search") );//in inline
- lastBmkButton->setPixmap( Resource::loadPixmap("gutenbrowser/bookmark_folder"));
- setBookmarkButton->setPixmap( Resource::loadPixmap("gutenbrowser/bookmark") );
- dictionaryButton->setPixmap( Resource::loadPixmap("gutenbrowser/spellcheck") );
- InfoBar->setPixmap( Resource::loadPixmap("gutenbrowser/google"));
+ LibraryButton->setPixmap( Opie::Core::OResource::loadPixmap("home", Opie::Core::OResource::SmallIcon ) );
+ OpenButton->setPixmap( Opie::Core::OResource::loadPixmap("gutenbrowser/openbook", Opie::Core::OResource::SmallIcon ));
+ ForwardButton->setPixmap( Opie::Core::OResource::loadPixmap("forward", Opie::Core::OResource::SmallIcon ));
+ BackButton->setPixmap( Opie::Core::OResource::loadPixmap("back", Opie::Core::OResource::SmallIcon ) );
+ SearchButton->setPixmap( Opie::Core::OResource::loadPixmap("gutenbrowser/search", Opie::Core::OResource::SmallIcon ) );
+ lastBmkButton->setPixmap( Opie::Core::OResource::loadPixmap("gutenbrowser/bookmark_folder", Opie::Core::OResource::SmallIcon ));
+ setBookmarkButton->setPixmap( Opie::Core::OResource::loadPixmap("gutenbrowser/bookmark", Opie::Core::OResource::SmallIcon ) );
+ dictionaryButton->setPixmap( Opie::Core::OResource::loadPixmap("gutenbrowser/spellcheck", Opie::Core::OResource::SmallIcon ) );
+ InfoBar->setPixmap( Opie::Core::OResource::loadPixmap("gutenbrowser/google", Opie::Core::OResource::SmallIcon ));
}
}
@@ -1771,7 +1772,8 @@ void Gutenbrowser::fillWithTitles() {
config.setGroup( "Titles" );
temp = config.readEntry(ramble, "");
if( !temp.isEmpty()) {
- mainList->insertItem ( Resource::loadPixmap("gutenbrowser/gutenbrowser_sm"), temp, -1);
+ mainList->insertItem ( Opie::Core::OResource::loadPixmap("gutenbrowser/gutenbrowser_sm",
+ Opie::Core::OResource::SmallIcon ), temp, -1);
}
}
}
@@ -1920,7 +1922,8 @@ void Gutenbrowser::menuEditTitle()
//odebug << titleEdit->newTitle << oendl;
config.writeEntry( s_filename, titleEdit->newTitle);
mainList->removeItem(currentItem);
- mainList->insertItem ( Resource::loadPixmap("gutenbrowser/gutenbrowser_sm"), titleEdit->newTitle, currentItem);
+ mainList->insertItem ( Opie::Core::OResource::loadPixmap("gutenbrowser/gutenbrowser_sm",
+ Opie::Core::OResource::SmallIcon ), titleEdit->newTitle, currentItem);
}
}
}
diff --git a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
index c93dbc5..d384c09 100644
--- a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
+++ b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
@@ -18,6 +18,8 @@
/* OPIE */
#include <opie2/odebug.h>
+#include <opie2/oresource.h>
+
#include <qpe/config.h>
#include <qpe/fontdatabase.h>
#include <qpe/menubutton.h>
@@ -171,33 +173,33 @@ void Gutenbrowser::initMenuBar()
menubar = new QPEMenuBar(this);
fileMenu=new QPopupMenu();
- fileMenu->insertItem(Resource::loadPixmap("gutenbrowser/openbook"),
+ fileMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/openbook", Opie::Core::OResource::SmallIcon ),
"Open Local Library...", this, SLOT( OpenBtn()) );
// fileMenu->insertItem("Download FTPSite", this, SLOT( downloadFtpList()) );
- fileMenu->insertItem( Resource::loadPixmap("home"),
+ fileMenu->insertItem( Opie::Core::OResource::loadPixmap("home", Opie::Core::OResource::SmallIcon ),
"Download Library Index", this, SLOT( downloadLibIndex()) );
- fileMenu->insertItem( Resource::loadPixmap("quit"),
+ fileMenu->insertItem( Opie::Core::OResource::loadPixmap("quit", Opie::Core::OResource::SmallIcon ),
"Quit Gutenbrowser...", this, SLOT( ByeBye()) );
// menuBar entry editMenu
editMenu=new QPopupMenu();
- editMenu->insertItem(Resource::loadPixmap("up"), "Top",
+ editMenu->insertItem( Opie::Core::OResource::loadPixmap("up", Opie::Core::OResource::SmallIcon ), "Top",
this, SLOT(TopBtn()) );
- editMenu->insertItem( Resource::loadPixmap("back"), "Beginning",
+ editMenu->insertItem( Opie::Core::OResource::loadPixmap("back", Opie::Core::OResource::SmallIcon ), "Beginning",
this, SLOT(doBeginBtn()) );
- editMenu->insertItem( Resource::loadPixmap("gutenbrowser/search"), "Search",
+ editMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/search", Opie::Core::OResource::SmallIcon ), "Search",
this, SLOT(SearchBtn()) );
editMenu->insertItem("Clear", this, SLOT(ClearEdit()) );
optionsMenu= new QPopupMenu();
- optionsMenu->insertItem( Resource::loadPixmap("gutenbrowser/configure"),
+ optionsMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/configure", Opie::Core::OResource::SmallIcon ),
"Configure", this, SLOT(doOptions()) );
donateMenu = new QPopupMenu();
// donateMenu->insertItem("Gutenberg", this, SLOT(donateGutenberg()) );
- donateMenu->insertItem( Resource::loadPixmap("gutenbrowser/gutenbrowser_sm"),
+ donateMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/gutenbrowser_sm", Opie::Core::OResource::SmallIcon ),
"Gutenbrowser Developer", this, SLOT(infoGutenbrowser()) );
menubar->insertItem("File", fileMenu);