Diffstat (limited to 'noncore/apps/tinykate/mainwindow') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/mainwindow/tinykate.cpp | 40 |
1 files changed, 27 insertions, 13 deletions
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 @@ | |||
25 | #include <opie2/ofiledialog.h> | 25 | #include <opie2/ofiledialog.h> |
26 | #include <qpe/resource.h> | 26 | #include <opie2/oresource.h> |
27 | #include <qpe/qpeapplication.h> | 27 | #include <qpe/qpeapplication.h> |
@@ -57,3 +57,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
57 | // Action for creating a new document | 57 | // Action for creating a new document |
58 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, 0, this, 0 ); | 58 | QAction *a = new QAction( tr( "New" ), Opie::Core::OResource::loadPixmap( "new", Opie::Core::OResource::SmallIcon ), |
59 | QString::null, 0, this, 0 ); | ||
59 | a->addTo( popup ); | 60 | a->addTo( popup ); |
@@ -62,3 +63,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
62 | // Action for opening an exisiting document | 63 | // Action for opening an exisiting document |
63 | a = new QAction( tr( "Open" ),Resource::loadPixmap( "fileopen" ) , QString::null, 0, this, 0 ); | 64 | a = new QAction( tr( "Open" ), Opie::Core::OResource::loadPixmap( "fileopen", Opie::Core::OResource::SmallIcon ), |
65 | QString::null, 0, this, 0 ); | ||
64 | a->addTo(popup); | 66 | a->addTo(popup); |
@@ -68,3 +70,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
68 | // Action for saving document | 70 | // Action for saving document |
69 | a = new QAction( tr( "Save" ), Resource::loadPixmap( "save" ) , QString::null, 0, this, 0 ); | 71 | a = new QAction( tr( "Save" ), Opie::Core::OResource::loadPixmap( "save", Opie::Core::OResource::SmallIcon ), |
72 | QString::null, 0, this, 0 ); | ||
70 | a->addTo(popup); | 73 | a->addTo(popup); |
@@ -73,3 +76,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
73 | // Action for saving document to a new name | 76 | // Action for saving document to a new name |
74 | a = new QAction( tr( "Save As" ),Resource::loadPixmap( "save" ) , QString::null, 0, this, 0 ); | 77 | a = new QAction( tr( "Save As" ), Opie::Core::OResource::loadPixmap( "save", Opie::Core::OResource::SmallIcon ), |
78 | QString::null, 0, this, 0 ); | ||
75 | a->addTo(popup); | 79 | a->addTo(popup); |
@@ -78,3 +82,4 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
78 | // Action for closing the currently active document | 82 | // Action for closing the currently active document |
79 | a = new QAction( tr( "Close" ), Resource::loadPixmap( "quit_icon" ) , QString::null, 0, this, 0 ); | 83 | a = new QAction( tr( "Close" ), Opie::Core::OResource::loadPixmap( "quit_icon", Opie::Core::OResource::SmallIcon ), |
84 | QString::null, 0, this, 0 ); | ||
80 | a->addTo(popup); | 85 | a->addTo(popup); |
@@ -86,2 +91,3 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
86 | //EDIT ACTIONS | 91 | //EDIT ACTIONS |
92 | bool useBigIcon = qApp->desktop()->size().width() > 330; | ||
87 | 93 | ||
@@ -89,4 +95,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
89 | editCut = new QToolButton( 0 ); | 95 | editCut = new QToolButton( 0 ); |
96 | editCut->setUsesBigPixmap( useBigIcon ); | ||
90 | editCut->setAutoRaise( true ); | 97 | editCut->setAutoRaise( true ); |
91 | editCut->setIconSet( Resource::loadPixmap( "cut" ) ); | 98 | editCut->setIconSet( Opie::Core::OResource::loadPixmap( "cut", Opie::Core::OResource::SmallIcon ) ); |
92 | 99 | ||
@@ -94,4 +101,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
94 | editCopy = new QToolButton( 0 ); | 101 | editCopy = new QToolButton( 0 ); |
102 | editCopy->setUsesBigPixmap( useBigIcon ); | ||
95 | editCopy->setAutoRaise( true ); | 103 | editCopy->setAutoRaise( true ); |
96 | editCopy->setIconSet( Resource::loadPixmap( "copy" ) ); | 104 | editCopy->setIconSet( Opie::Core::OResource::loadPixmap( "copy", Opie::Core::OResource::SmallIcon ) ); |
97 | 105 | ||
@@ -99,4 +107,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
99 | editPaste = new QToolButton( 0 ); | 107 | editPaste = new QToolButton( 0 ); |
108 | editPaste->setUsesBigPixmap( useBigIcon ); | ||
100 | editPaste->setAutoRaise( true ); | 109 | editPaste->setAutoRaise( true ); |
101 | editPaste->setIconSet( Resource::loadPixmap( "paste" ) ); | 110 | editPaste->setIconSet( Opie::Core::OResource::loadPixmap( "paste", Opie::Core::OResource::SmallIcon ) ); |
102 | 111 | ||
@@ -104,4 +113,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
104 | editFindReplace = new QToolButton( 0 ); | 113 | editFindReplace = new QToolButton( 0 ); |
114 | editFindReplace->setUsesBigPixmap( useBigIcon ); | ||
105 | editFindReplace->setAutoRaise( true ); | 115 | editFindReplace->setAutoRaise( true ); |
106 | editFindReplace->setIconSet( Resource::loadPixmap("find") ); | 116 | editFindReplace->setIconSet( Opie::Core::OResource::loadPixmap( "find", Opie::Core::OResource::SmallIcon ) ); |
107 | 117 | ||
@@ -109,4 +119,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
109 | editUndo = new QToolButton( 0 ); | 119 | editUndo = new QToolButton( 0 ); |
120 | editUndo->setUsesBigPixmap( useBigIcon ); | ||
110 | editUndo->setAutoRaise( true ); | 121 | editUndo->setAutoRaise( true ); |
111 | editUndo->setIconSet( Resource::loadPixmap( "undo" ) ); | 122 | editUndo->setIconSet( Opie::Core::OResource::loadPixmap( "undo", Opie::Core::OResource::SmallIcon ) ); |
112 | 123 | ||
@@ -114,4 +125,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
114 | editRedo = new QToolButton( 0 ); | 125 | editRedo = new QToolButton( 0 ); |
126 | editRedo->setUsesBigPixmap( useBigIcon ); | ||
115 | editRedo->setAutoRaise( true ); | 127 | editRedo->setAutoRaise( true ); |
116 | editRedo->setIconSet( Resource::loadPixmap( "redo" ) ); | 128 | editRedo->setIconSet( Opie::Core::OResource::loadPixmap( "redo", Opie::Core::OResource::SmallIcon ) ); |
117 | 129 | ||
@@ -150,3 +162,5 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
150 | 162 | ||
151 | utilSettings = new QAction( tr( "Settings" ), QString::null, 0, this, 0 ); | 163 | utilSettings = new QAction( tr( "Settings" ), |
164 | Opie::Core::OResource::loadPixmap( "SettingsIcon", Opie::Core::OResource::SmallIcon ), | ||
165 | QString::null, 0, this, 0 ); | ||
152 | utilSettings->addTo( popup); | 166 | utilSettings->addTo( popup); |