summaryrefslogtreecommitdiff
authordrw <drw>2005-04-15 17:51:00 (UTC)
committer drw <drw>2005-04-15 17:51:00 (UTC)
commitba9d5ecee89aadb135a03c173878e315de784be3 (patch) (side-by-side diff)
tree176d774bebfaa1d016a56fa8c00be79a2ea19fa5
parent86b1feed1ab2e47a082d974e1fcc513c59a74469 (diff)
downloadopie-ba9d5ecee89aadb135a03c173878e315de784be3.zip
opie-ba9d5ecee89aadb135a03c173878e315de784be3.tar.gz
opie-ba9d5ecee89aadb135a03c173878e315de784be3.tar.bz2
Resource -> OResource
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/commandeditdialog.cpp23
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp37
2 files changed, 39 insertions, 21 deletions
diff --git a/core/apps/embeddedkonsole/commandeditdialog.cpp b/core/apps/embeddedkonsole/commandeditdialog.cpp
index 697bf72..1e08767 100644
--- a/core/apps/embeddedkonsole/commandeditdialog.cpp
+++ b/core/apps/embeddedkonsole/commandeditdialog.cpp
@@ -4,4 +4,8 @@
#include "playlistselection.h"
+
+#include <opie2/oresource.h>
+
#include <qpe/config.h>
-#include <qpe/resource.h>
+
+#include <qapplication.h>
#include <qtoolbutton.h>
@@ -55,6 +59,7 @@ CommandEditDialog::CommandEditDialog(QWidget *parent, const char* name, WFlags f
-
+ bool bigPixmaps = qApp->desktop()->size().width()>330;
ToolButton1->setTextLabel("new");
- ToolButton1->setPixmap(Resource::loadPixmap("new"));
+ ToolButton1->setUsesBigPixmap( bigPixmaps );
+ ToolButton1->setPixmap( Opie::Core::OResource::loadPixmap( "new", Opie::Core::OResource::SmallIcon ) );
ToolButton1->setAutoRaise(TRUE);
@@ -64,3 +69,4 @@ CommandEditDialog::CommandEditDialog(QWidget *parent, const char* name, WFlags f
ToolButton2->setTextLabel("edit");
- ToolButton2->setPixmap(Resource::loadPixmap("edit"));
+ ToolButton2->setUsesBigPixmap( bigPixmaps );
+ ToolButton2->setPixmap( Opie::Core::OResource::loadPixmap( "edit", Opie::Core::OResource::SmallIcon ) );
ToolButton2->setAutoRaise(TRUE);
@@ -70,3 +76,4 @@ CommandEditDialog::CommandEditDialog(QWidget *parent, const char* name, WFlags f
ToolButton3->setTextLabel("delete");
- ToolButton3->setPixmap(Resource::loadPixmap("editdelete"));
+ ToolButton3->setUsesBigPixmap( bigPixmaps );
+ ToolButton3->setPixmap( Opie::Core::OResource::loadPixmap( "editdelete", Opie::Core::OResource::SmallIcon ) );
ToolButton3->setAutoRaise(TRUE);
@@ -76,3 +83,4 @@ CommandEditDialog::CommandEditDialog(QWidget *parent, const char* name, WFlags f
ToolButton4->setTextLabel("up");
- ToolButton4->setPixmap(Resource::loadPixmap("up"));
+ ToolButton4->setUsesBigPixmap( bigPixmaps );
+ ToolButton4->setPixmap( Opie::Core::OResource::loadPixmap( "up", Opie::Core::OResource::SmallIcon ) );
ToolButton4->setAutoRaise(TRUE);
@@ -82,3 +90,4 @@ CommandEditDialog::CommandEditDialog(QWidget *parent, const char* name, WFlags f
ToolButton5->setTextLabel("down");
- ToolButton5->setPixmap(Resource::loadPixmap("down"));
+ ToolButton5->setUsesBigPixmap( bigPixmaps );
+ ToolButton5->setPixmap( Opie::Core::OResource::loadPixmap( "down", Opie::Core::OResource::SmallIcon ) );
ToolButton5->setAutoRaise(TRUE);
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index de00494..7f3ea65 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -32,2 +32,4 @@
#include <opie2/odebug.h>
+#include <opie2/oresource.h>
+
using namespace Opie;
@@ -35,4 +37,2 @@ using namespace Opie;
-#include <qpe/resource.h>
-
#include <qmenubar.h>
@@ -378,3 +378,3 @@ void Konsole::init(const char* _pgm, QStrList & _args)
setCaption( tr( "Konsole" ) );
- setIcon( Resource::loadPixmap( "konsole/Terminal" ) );
+ setIcon( Opie::Core::OResource::loadPixmap( "konsole/Terminal", Opie::Core::OResource::SmallIcon ) );
@@ -572,4 +572,4 @@ void Konsole::init(const char* _pgm, QStrList & _args)
sessionList = new QPopupMenu(this);
- sessionList-> insertItem ( Resource::loadPixmap ( "konsole/Terminal" ), tr( "new session" ), this,
- SLOT(newSession()) );
+ sessionList-> insertItem ( Opie::Core::OResource::loadPixmap( "konsole/Terminal", Opie::Core::OResource::SmallIcon ),
+ tr( "new session" ), this, SLOT(newSession()) );
@@ -592,3 +592,4 @@ void Konsole::init(const char* _pgm, QStrList & _args)
// Button Commands
- a = new QAction( tr("New"), Resource::loadPixmap( "konsole/konsole" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("New"), Opie::Core::OResource::loadPixmap( "konsole/konsole", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( newSession() ) );
@@ -596,3 +597,4 @@ void Konsole::init(const char* _pgm, QStrList & _args)
- a = new QAction( tr("Full Screen"), Resource::loadPixmap( "fullscreen" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Full Screen"), Opie::Core::OResource::loadPixmap( "fullscreen", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( toggleFullScreen() ) );
@@ -600,3 +602,4 @@ void Konsole::init(const char* _pgm, QStrList & _args)
- a = new QAction( tr("Zoom"), Resource::loadPixmap( "zoom" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Zoom"), Opie::Core::OResource::loadPixmap( "zoom", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( cycleZoom() ) );
@@ -605,14 +608,20 @@ void Konsole::init(const char* _pgm, QStrList & _args)
- a = new QAction( tr("Enter"), Resource::loadPixmap( "konsole/enter" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Enter"), Opie::Core::OResource::loadPixmap( "konsole/enter", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( hitEnter() ) ); a->addTo( toolBar );
- a = new QAction( tr("Space"), Resource::loadPixmap( "konsole/space" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Space"), Opie::Core::OResource::loadPixmap( "konsole/space", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( hitSpace() ) ); a->addTo( toolBar );
- a = new QAction( tr("Tab"), Resource::loadPixmap( "konsole/tab" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Tab"), Opie::Core::OResource::loadPixmap( "konsole/tab", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( hitTab() ) ); a->addTo( toolBar );
- a = new QAction( tr("Up"), Resource::loadPixmap( "konsole/up" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Up"), Opie::Core::OResource::loadPixmap( "konsole/up", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( hitUp() ) ); a->addTo( toolBar );
- a = new QAction( tr("Down"), Resource::loadPixmap( "konsole/down" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Down"), Opie::Core::OResource::loadPixmap( "konsole/down", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( hitDown() ) ); a->addTo( toolBar );
- a = new QAction( tr("Paste"), Resource::loadPixmap( "paste" ), QString::null, 0, this, 0 );
+ a = new QAction( tr("Paste"), Opie::Core::OResource::loadPixmap( "paste", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( hitPaste() ) );