summaryrefslogtreecommitdiff
authordrw <drw>2005-05-17 22:39:37 (UTC)
committer drw <drw>2005-05-17 22:39:37 (UTC)
commit58c3aa9b498e43665511fbe8f32995e0a4cb29d6 (patch) (side-by-side diff)
treebeec24ee8f666f310366052460f5781f0657fab0
parentd2ae68c413873e234b34f733818427902e738948 (diff)
downloadopie-58c3aa9b498e43665511fbe8f32995e0a4cb29d6.zip
opie-58c3aa9b498e43665511fbe8f32995e0a4cb29d6.tar.gz
opie-58c3aa9b498e43665511fbe8f32995e0a4cb29d6.tar.bz2
Resource -> OResource
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/libkate/microkde/kiconloader.cpp12
-rw-r--r--noncore/apps/tinykate/mainwindow/tinykate.cpp40
2 files changed, 33 insertions, 19 deletions
diff --git a/noncore/apps/tinykate/libkate/microkde/kiconloader.cpp b/noncore/apps/tinykate/libkate/microkde/kiconloader.cpp
index 83a2cad..c5fe5df 100644
--- a/noncore/apps/tinykate/libkate/microkde/kiconloader.cpp
+++ b/noncore/apps/tinykate/libkate/microkde/kiconloader.cpp
@@ -1,2 +1,2 @@
-#include <qpe/resource.h>
+#include <opie2/oresource.h>
@@ -6,3 +6,3 @@ QPixmap KIconLoader::loadIcon( const QString &name, int )
{
- return Resource::loadPixmap( "kate/" + name );
+ return Opie::Core::OResource::loadPixmap( "kate/" + name, Opie::Core::OResource::SmallIcon );
}
@@ -16,3 +16,3 @@ QPixmap BarIcon( const QString &name )
{
- return Resource::loadPixmap( "kate/" + name );
+ return Opie::Core::OResource::loadPixmap( "kate/" + name, Opie::Core::OResource::SmallIcon );
}
@@ -21,3 +21,3 @@ QPixmap DesktopIcon( const QString &name, int )
{
- return Resource::loadPixmap( "kate/" + name );
+ return Opie::Core::OResource::loadPixmap( "kate/" + name, Opie::Core::OResource::SmallIcon );
}
@@ -26,3 +26,3 @@ QPixmap SmallIcon( const QString &name )
{
- return Resource::loadPixmap( "kate/" + name );
+ return Opie::Core::OResource::loadPixmap( "kate/" + name, Opie::Core::OResource::SmallIcon );
}
@@ -31,3 +31,3 @@ QPixmap SmallIconSet( const QString &name )
{
- return Resource::loadPixmap( "kate/" + name );
+ return Opie::Core::OResource::loadPixmap( "kate/" + name, Opie::Core::OResource::SmallIcon );
}
diff --git a/noncore/apps/tinykate/mainwindow/tinykate.cpp b/noncore/apps/tinykate/mainwindow/tinykate.cpp
index 8d19c71..bbb0be7e 100644
--- a/noncore/apps/tinykate/mainwindow/tinykate.cpp
+++ b/noncore/apps/tinykate/mainwindow/tinykate.cpp
@@ -25,3 +25,3 @@
#include <opie2/ofiledialog.h>
-#include <qpe/resource.h>
+#include <opie2/oresource.h>
#include <qpe/qpeapplication.h>
@@ -57,3 +57,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
// Action for creating a new document
- QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, 0, this, 0 );
+ QAction *a = new QAction( tr( "New" ), Opie::Core::OResource::loadPixmap( "new", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
a->addTo( popup );
@@ -62,3 +63,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
// Action for opening an exisiting document
- a = new QAction( tr( "Open" ),Resource::loadPixmap( "fileopen" ) , QString::null, 0, this, 0 );
+ a = new QAction( tr( "Open" ), Opie::Core::OResource::loadPixmap( "fileopen", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
a->addTo(popup);
@@ -68,3 +70,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
// Action for saving document
- a = new QAction( tr( "Save" ), Resource::loadPixmap( "save" ) , QString::null, 0, this, 0 );
+ a = new QAction( tr( "Save" ), Opie::Core::OResource::loadPixmap( "save", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
a->addTo(popup);
@@ -73,3 +76,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
// Action for saving document to a new name
- a = new QAction( tr( "Save As" ),Resource::loadPixmap( "save" ) , QString::null, 0, this, 0 );
+ a = new QAction( tr( "Save As" ), Opie::Core::OResource::loadPixmap( "save", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
a->addTo(popup);
@@ -78,3 +82,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
// Action for closing the currently active document
- a = new QAction( tr( "Close" ), Resource::loadPixmap( "quit_icon" ) , QString::null, 0, this, 0 );
+ a = new QAction( tr( "Close" ), Opie::Core::OResource::loadPixmap( "quit_icon", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
a->addTo(popup);
@@ -86,2 +91,3 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
//EDIT ACTIONS
+ bool useBigIcon = qApp->desktop()->size().width() > 330;
@@ -89,4 +95,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
editCut = new QToolButton( 0 );
+ editCut->setUsesBigPixmap( useBigIcon );
editCut->setAutoRaise( true );
- editCut->setIconSet( Resource::loadPixmap( "cut" ) );
+ editCut->setIconSet( Opie::Core::OResource::loadPixmap( "cut", Opie::Core::OResource::SmallIcon ) );
@@ -94,4 +101,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
editCopy = new QToolButton( 0 );
+ editCopy->setUsesBigPixmap( useBigIcon );
editCopy->setAutoRaise( true );
- editCopy->setIconSet( Resource::loadPixmap( "copy" ) );
+ editCopy->setIconSet( Opie::Core::OResource::loadPixmap( "copy", Opie::Core::OResource::SmallIcon ) );
@@ -99,4 +107,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
editPaste = new QToolButton( 0 );
+ editPaste->setUsesBigPixmap( useBigIcon );
editPaste->setAutoRaise( true );
- editPaste->setIconSet( Resource::loadPixmap( "paste" ) );
+ editPaste->setIconSet( Opie::Core::OResource::loadPixmap( "paste", Opie::Core::OResource::SmallIcon ) );
@@ -104,4 +113,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
editFindReplace = new QToolButton( 0 );
+ editFindReplace->setUsesBigPixmap( useBigIcon );
editFindReplace->setAutoRaise( true );
- editFindReplace->setIconSet( Resource::loadPixmap("find") );
+ editFindReplace->setIconSet( Opie::Core::OResource::loadPixmap( "find", Opie::Core::OResource::SmallIcon ) );
@@ -109,4 +119,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
editUndo = new QToolButton( 0 );
+ editUndo->setUsesBigPixmap( useBigIcon );
editUndo->setAutoRaise( true );
- editUndo->setIconSet( Resource::loadPixmap( "undo" ) );
+ editUndo->setIconSet( Opie::Core::OResource::loadPixmap( "undo", Opie::Core::OResource::SmallIcon ) );
@@ -114,4 +125,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
editRedo = new QToolButton( 0 );
+ editRedo->setUsesBigPixmap( useBigIcon );
editRedo->setAutoRaise( true );
- editRedo->setIconSet( Resource::loadPixmap( "redo" ) );
+ editRedo->setIconSet( Opie::Core::OResource::loadPixmap( "redo", Opie::Core::OResource::SmallIcon ) );
@@ -150,3 +162,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) :
- utilSettings = new QAction( tr( "Settings" ), QString::null, 0, this, 0 );
+ utilSettings = new QAction( tr( "Settings" ),
+ Opie::Core::OResource::loadPixmap( "SettingsIcon", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
utilSettings->addTo( popup);