summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp85
-rw-r--r--noncore/graphics/drawpad/thumbnailview.cpp22
2 files changed, 77 insertions, 30 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp
index c0f42d9..158a5ed 100644
--- a/noncore/graphics/drawpad/drawpad.cpp
+++ b/noncore/graphics/drawpad/drawpad.cpp
@@ -32,11 +32,11 @@
32 32
33#include <opie2/qcolordialog.h> 33#include <opie2/qcolordialog.h>
34#include <opie2/ocolorpopupmenu.h> 34#include <opie2/ocolorpopupmenu.h>
35#include <opie2/oresource.h>
35 36
36#include <qpe/applnk.h> 37#include <qpe/applnk.h>
37#include <qpe/config.h> 38#include <qpe/config.h>
38#include <qtoolbar.h> 39#include <qtoolbar.h>
39#include <qpe/resource.h>
40#include <qpe/qpeapplication.h> 40#include <qpe/qpeapplication.h>
41 41
42#include <qmenubar.h> 42#include <qmenubar.h>
@@ -107,17 +107,22 @@ DrawPad::DrawPad(QWidget* parent, const char* name, WFlags /*fl*/ )
107 107
108 QToolBar* pageToolBar = new QToolBar(this); 108 QToolBar* pageToolBar = new QToolBar(this);
109 109
110 QAction* newPageAction = new QAction(tr("New Page"), Resource::loadPixmap("new"), QString::null, 0, this); 110 QAction* newPageAction = new QAction(tr("New Page"), Opie::Core::OResource::loadPixmap("new", Opie::Core::OResource::SmallIcon),
111 QString::null, 0, this);
111 connect(newPageAction, SIGNAL(activated()), this, SLOT(newPage())); 112 connect(newPageAction, SIGNAL(activated()), this, SLOT(newPage()));
112 newPageAction->addTo(pageToolBar); 113 newPageAction->addTo(pageToolBar);
113 newPageAction->setWhatsThis( tr( "Click here to add a new sheet." ) ); 114 newPageAction->setWhatsThis( tr( "Click here to add a new sheet." ) );
114 115
115 QAction* clearPageAction = new QAction(tr("Clear Page"), Resource::loadPixmap("drawpad/clear"), QString::null, 0, this); 116 QAction* clearPageAction = new QAction(tr("Clear Page"),
117 Opie::Core::OResource::loadPixmap("drawpad/clear", Opie::Core::OResource::SmallIcon),
118 QString::null, 0, this);
116 connect(clearPageAction, SIGNAL(activated()), this, SLOT(clearPage())); 119 connect(clearPageAction, SIGNAL(activated()), this, SLOT(clearPage()));
117 clearPageAction->addTo(pageToolBar); 120 clearPageAction->addTo(pageToolBar);
118 clearPageAction->setWhatsThis( tr( "Click here to erase the current sheet." ) ); 121 clearPageAction->setWhatsThis( tr( "Click here to erase the current sheet." ) );
119 122
120 QAction* deletePageAction = new QAction(tr("Delete Page"), Resource::loadPixmap("trash"), QString::null, 0, this); 123 QAction* deletePageAction = new QAction(tr("Delete Page"),
124 Opie::Core::OResource::loadPixmap("trash", Opie::Core::OResource::SmallIcon),
125 QString::null, 0, this);
121 connect(deletePageAction, SIGNAL(activated()), this, SLOT(deletePage())); 126 connect(deletePageAction, SIGNAL(activated()), this, SLOT(deletePage()));
122 deletePageAction->addTo(pageToolBar); 127 deletePageAction->addTo(pageToolBar);
123 deletePageAction->setWhatsThis( tr( "Click here to remove the current sheet." ) ); 128 deletePageAction->setWhatsThis( tr( "Click here to remove the current sheet." ) );
@@ -129,32 +134,42 @@ DrawPad::DrawPad(QWidget* parent, const char* name, WFlags /*fl*/ )
129 134
130 QToolBar* navigationToolBar = new QToolBar(this); 135 QToolBar* navigationToolBar = new QToolBar(this);
131 136
132 m_pUndoAction = new QAction(tr("Undo"), Resource::loadIconSet("undo"), QString::null, 0, this); 137 m_pUndoAction = new QAction(tr("Undo"), Opie::Core::OResource::loadPixmap("undo", Opie::Core::OResource::SmallIcon),
138 QString::null, 0, this);
133 connect(m_pUndoAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(undo())); 139 connect(m_pUndoAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(undo()));
134 m_pUndoAction->addTo(navigationToolBar); 140 m_pUndoAction->addTo(navigationToolBar);
135 m_pUndoAction->setWhatsThis( tr( "Click here to undo the last action." ) ); 141 m_pUndoAction->setWhatsThis( tr( "Click here to undo the last action." ) );
136 142
137 m_pRedoAction = new QAction(tr("Redo"), Resource::loadIconSet("redo"), QString::null, 0, this); 143 m_pRedoAction = new QAction(tr("Redo"), Opie::Core::OResource::loadPixmap("redo", Opie::Core::OResource::SmallIcon),
144 QString::null, 0, this);
138 connect(m_pRedoAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(redo())); 145 connect(m_pRedoAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(redo()));
139 m_pRedoAction->addTo(navigationToolBar); 146 m_pRedoAction->addTo(navigationToolBar);
140 m_pRedoAction->setWhatsThis( tr( "Click here to re-perform the last action." ) ); 147 m_pRedoAction->setWhatsThis( tr( "Click here to re-perform the last action." ) );
141 148
142 m_pFirstPageAction = new QAction(tr("First Page"), Resource::loadIconSet("fastback"), QString::null, 0, this); 149 m_pFirstPageAction = new QAction(tr("First Page"),
150 Opie::Core::OResource::loadPixmap("fastback", Opie::Core::OResource::SmallIcon),
151 QString::null, 0, this);
143 connect(m_pFirstPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goFirstPage())); 152 connect(m_pFirstPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goFirstPage()));
144 m_pFirstPageAction->addTo(navigationToolBar); 153 m_pFirstPageAction->addTo(navigationToolBar);
145 m_pFirstPageAction->setWhatsThis( tr( "Click here to view the first page." ) ); 154 m_pFirstPageAction->setWhatsThis( tr( "Click here to view the first page." ) );
146 155
147 m_pPreviousPageAction = new QAction(tr("Previous Page"), Resource::loadIconSet("back"), QString::null, 0, this); 156 m_pPreviousPageAction = new QAction(tr("Previous Page"),
157 Opie::Core::OResource::loadPixmap("back", Opie::Core::OResource::SmallIcon),
158 QString::null, 0, this);
148 connect(m_pPreviousPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goPreviousPage())); 159 connect(m_pPreviousPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goPreviousPage()));
149 m_pPreviousPageAction->addTo(navigationToolBar); 160 m_pPreviousPageAction->addTo(navigationToolBar);
150 m_pPreviousPageAction->setWhatsThis( tr( "Click here to view the previous page." ) ); 161 m_pPreviousPageAction->setWhatsThis( tr( "Click here to view the previous page." ) );
151 162
152 m_pNextPageAction = new QAction(tr("Next Page"), Resource::loadIconSet("forward"), QString::null, 0, this); 163 m_pNextPageAction = new QAction(tr("Next Page"),
164 Opie::Core::OResource::loadPixmap("forward", Opie::Core::OResource::SmallIcon),
165 QString::null, 0, this);
153 connect(m_pNextPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goNextPage())); 166 connect(m_pNextPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goNextPage()));
154 m_pNextPageAction->addTo(navigationToolBar); 167 m_pNextPageAction->addTo(navigationToolBar);
155 m_pNextPageAction->setWhatsThis( tr( "Click here to view the next page." ) ); 168 m_pNextPageAction->setWhatsThis( tr( "Click here to view the next page." ) );
156 169
157 m_pLastPageAction = new QAction(tr("Last Page"), Resource::loadIconSet("fastforward"), QString::null, 0, this); 170 m_pLastPageAction = new QAction(tr("Last Page"),
171 Opie::Core::OResource::loadPixmap("fastforward", Opie::Core::OResource::SmallIcon),
172 QString::null, 0, this);
158 connect(m_pLastPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goLastPage())); 173 connect(m_pLastPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goLastPage()));
159 m_pLastPageAction->addTo(navigationToolBar); 174 m_pLastPageAction->addTo(navigationToolBar);
160 m_pLastPageAction->setWhatsThis( tr( "Click here to view the last page." ) ); 175 m_pLastPageAction->setWhatsThis( tr( "Click here to view the last page." ) );
@@ -170,11 +185,15 @@ DrawPad::DrawPad(QWidget* parent, const char* name, WFlags /*fl*/ )
170 185
171 QPopupMenu* linePopupMenu = new QPopupMenu(m_pLineToolButton); 186 QPopupMenu* linePopupMenu = new QPopupMenu(m_pLineToolButton);
172 187
173 m_pPointToolAction = new QAction(tr("Draw Point"), Resource::loadPixmap("drawpad/point"), "", 0, this); 188 m_pPointToolAction = new QAction(tr("Draw Point"),
189 Opie::Core::OResource::loadPixmap("drawpad/point", Opie::Core::OResource::SmallIcon),
190 "", 0, this);
174 connect(m_pPointToolAction, SIGNAL(activated()), this, SLOT(setPointTool())); 191 connect(m_pPointToolAction, SIGNAL(activated()), this, SLOT(setPointTool()));
175 m_pPointToolAction->addTo(linePopupMenu); 192 m_pPointToolAction->addTo(linePopupMenu);
176 193
177 m_pLineToolAction = new QAction(tr("Draw Line"), Resource::loadPixmap("drawpad/line"), "", 0, this); 194 m_pLineToolAction = new QAction(tr("Draw Line"),
195 Opie::Core::OResource::loadPixmap("drawpad/line", Opie::Core::OResource::SmallIcon),
196 "", 0, this);
178 connect(m_pLineToolAction, SIGNAL(activated()), this, SLOT(setLineTool())); 197 connect(m_pLineToolAction, SIGNAL(activated()), this, SLOT(setLineTool()));
179 m_pLineToolAction->addTo(linePopupMenu); 198 m_pLineToolAction->addTo(linePopupMenu);
180 199
@@ -187,11 +206,15 @@ DrawPad::DrawPad(QWidget* parent, const char* name, WFlags /*fl*/ )
187 206
188 QPopupMenu* rectanglePopupMenu = new QPopupMenu(m_pRectangleToolButton); 207 QPopupMenu* rectanglePopupMenu = new QPopupMenu(m_pRectangleToolButton);
189 208
190 m_pRectangleToolAction = new QAction(tr("Draw Rectangle"), Resource::loadPixmap("drawpad/rectangle"), "", 0, this); 209 m_pRectangleToolAction = new QAction(tr("Draw Rectangle"),
210 Opie::Core::OResource::loadPixmap("drawpad/rectangle", Opie::Core::OResource::SmallIcon),
211 "", 0, this);
191 connect(m_pRectangleToolAction, SIGNAL(activated()), this, SLOT(setRectangleTool())); 212 connect(m_pRectangleToolAction, SIGNAL(activated()), this, SLOT(setRectangleTool()));
192 m_pRectangleToolAction->addTo(rectanglePopupMenu); 213 m_pRectangleToolAction->addTo(rectanglePopupMenu);
193 214
194 m_pFilledRectangleToolAction = new QAction(tr("Draw Filled Rectangle"), Resource::loadPixmap("drawpad/filledrectangle"), "", 0, this); 215 m_pFilledRectangleToolAction = new QAction(tr("Draw Filled Rectangle"),
216 Opie::Core::OResource::loadPixmap("drawpad/filledrectangle",
217 Opie::Core::OResource::SmallIcon), "", 0, this);
195 connect(m_pFilledRectangleToolAction, SIGNAL(activated()), this, SLOT(setFilledRectangleTool())); 218 connect(m_pFilledRectangleToolAction, SIGNAL(activated()), this, SLOT(setFilledRectangleTool()));
196 m_pFilledRectangleToolAction->addTo(rectanglePopupMenu); 219 m_pFilledRectangleToolAction->addTo(rectanglePopupMenu);
197 220
@@ -204,30 +227,40 @@ DrawPad::DrawPad(QWidget* parent, const char* name, WFlags /*fl*/ )
204 227
205 QPopupMenu* ellipsePopupMenu = new QPopupMenu(m_pEllipseToolButton); 228 QPopupMenu* ellipsePopupMenu = new QPopupMenu(m_pEllipseToolButton);
206 229
207 m_pEllipseToolAction = new QAction(tr("Draw Ellipse"), Resource::loadPixmap("drawpad/ellipse"), "", 0, this); 230 m_pEllipseToolAction = new QAction(tr("Draw Ellipse"),
231 Opie::Core::OResource::loadPixmap("drawpad/ellipse", Opie::Core::OResource::SmallIcon),
232 "", 0, this);
208 connect(m_pEllipseToolAction, SIGNAL(activated()), this, SLOT(setEllipseTool())); 233 connect(m_pEllipseToolAction, SIGNAL(activated()), this, SLOT(setEllipseTool()));
209 m_pEllipseToolAction->addTo(ellipsePopupMenu); 234 m_pEllipseToolAction->addTo(ellipsePopupMenu);
210 235
211 m_pFilledEllipseToolAction = new QAction(tr("Draw Filled Ellipse"), Resource::loadPixmap("drawpad/filledellipse"), "", 0, this); 236 m_pFilledEllipseToolAction = new QAction(tr("Draw Filled Ellipse"),
237 Opie::Core::OResource::loadPixmap("drawpad/filledellipse",
238 Opie::Core::OResource::SmallIcon), "", 0, this);
212 connect(m_pFilledEllipseToolAction, SIGNAL(activated()), this, SLOT(setFilledEllipseTool())); 239 connect(m_pFilledEllipseToolAction, SIGNAL(activated()), this, SLOT(setFilledEllipseTool()));
213 m_pFilledEllipseToolAction->addTo(ellipsePopupMenu); 240 m_pFilledEllipseToolAction->addTo(ellipsePopupMenu);
214 241
215 m_pEllipseToolButton->setPopup(ellipsePopupMenu); 242 m_pEllipseToolButton->setPopup(ellipsePopupMenu);
216 m_pEllipseToolButton->setPopupDelay(0); 243 m_pEllipseToolButton->setPopupDelay(0);
217 244
218 m_pTextToolAction = new QAction(tr("Insert Text"), Resource::loadPixmap("drawpad/text"), QString::null, 0, this); 245 m_pTextToolAction = new QAction(tr("Insert Text"),
246 Opie::Core::OResource::loadPixmap("drawpad/text", Opie::Core::OResource::SmallIcon),
247 QString::null, 0, this);
219 m_pTextToolAction->setToggleAction(true); 248 m_pTextToolAction->setToggleAction(true);
220 connect(m_pTextToolAction, SIGNAL(activated()), this, SLOT(setTextTool())); 249 connect(m_pTextToolAction, SIGNAL(activated()), this, SLOT(setTextTool()));
221 m_pTextToolAction->addTo(drawModeToolBar); 250 m_pTextToolAction->addTo(drawModeToolBar);
222 m_pTextToolAction->setWhatsThis( tr( "Click here to select the text drawing tool." ) ); 251 m_pTextToolAction->setWhatsThis( tr( "Click here to select the text drawing tool." ) );
223 252
224 m_pFillToolAction = new QAction(tr("Fill Region"), Resource::loadPixmap("drawpad/fill"), QString::null, 0, this); 253 m_pFillToolAction = new QAction(tr("Fill Region"),
254 Opie::Core::OResource::loadPixmap("drawpad/fill", Opie::Core::OResource::SmallIcon),
255 QString::null, 0, this);
225 m_pFillToolAction->setToggleAction(true); 256 m_pFillToolAction->setToggleAction(true);
226 connect(m_pFillToolAction, SIGNAL(activated()), this, SLOT(setFillTool())); 257 connect(m_pFillToolAction, SIGNAL(activated()), this, SLOT(setFillTool()));
227 m_pFillToolAction->addTo(drawModeToolBar); 258 m_pFillToolAction->addTo(drawModeToolBar);
228 m_pFillToolAction->setWhatsThis( tr( "Click here to select the fill tool." ) ); 259 m_pFillToolAction->setWhatsThis( tr( "Click here to select the fill tool." ) );
229 260
230 m_pEraseToolAction = new QAction(tr("Erase Point"), Resource::loadPixmap("drawpad/erase"), QString::null, 0, this); 261 m_pEraseToolAction = new QAction(tr("Erase Point"),
262 Opie::Core::OResource::loadPixmap("drawpad/erase", Opie::Core::OResource::SmallIcon),
263 QString::null, 0, this);
231 m_pEraseToolAction->setToggleAction(true); 264 m_pEraseToolAction->setToggleAction(true);
232 connect(m_pEraseToolAction, SIGNAL(activated()), this, SLOT(setEraseTool())); 265 connect(m_pEraseToolAction, SIGNAL(activated()), this, SLOT(setEraseTool()));
233 m_pEraseToolAction->addTo(drawModeToolBar); 266 m_pEraseToolAction->addTo(drawModeToolBar);
@@ -254,8 +287,11 @@ DrawPad::DrawPad(QWidget* parent, const char* name, WFlags /*fl*/ )
254 m_pPenWidthSpinBox->setFocusPolicy(QWidget::NoFocus); 287 m_pPenWidthSpinBox->setFocusPolicy(QWidget::NoFocus);
255 QWhatsThis::add( m_pPenWidthSpinBox, tr( "Click here to select the width of the drawing pen." ) ); 288 QWhatsThis::add( m_pPenWidthSpinBox, tr( "Click here to select the width of the drawing pen." ) );
256 289
290 bool useBigIcon = qApp->desktop()->size().width() > 330;
291
257 m_pPenColorToolButton = new QToolButton(drawParametersToolBar); 292 m_pPenColorToolButton = new QToolButton(drawParametersToolBar);
258 m_pPenColorToolButton->setPixmap(Resource::loadPixmap("drawpad/pencolor")); 293 m_pPenColorToolButton->setUsesBigPixmap( useBigIcon );
294 m_pPenColorToolButton->setPixmap(Opie::Core::OResource::loadPixmap("drawpad/pencolor", Opie::Core::OResource::SmallIcon));
259 QWhatsThis::add( m_pPenColorToolButton, tr( "Click here to select the color used when drawing." ) ); 295 QWhatsThis::add( m_pPenColorToolButton, tr( "Click here to select the color used when drawing." ) );
260 296
261 Opie::OColorPopupMenu* penColorPopupMenu = new Opie::OColorPopupMenu(Qt::black, m_pPenColorToolButton); 297 Opie::OColorPopupMenu* penColorPopupMenu = new Opie::OColorPopupMenu(Qt::black, m_pPenColorToolButton);
@@ -268,7 +304,8 @@ DrawPad::DrawPad(QWidget* parent, const char* name, WFlags /*fl*/ )
268 changePenColor(Qt::black); 304 changePenColor(Qt::black);
269 305
270 m_pBrushColorToolButton = new QToolButton(drawParametersToolBar); 306 m_pBrushColorToolButton = new QToolButton(drawParametersToolBar);
271 m_pBrushColorToolButton->setPixmap(Resource::loadPixmap("drawpad/brushcolor")); 307 m_pBrushColorToolButton->setUsesBigPixmap( useBigIcon );
308 m_pBrushColorToolButton->setPixmap(Opie::Core::OResource::loadPixmap("drawpad/brushcolor", Opie::Core::OResource::SmallIcon));
272 QWhatsThis::add( m_pBrushColorToolButton, tr( "Click here to select the color used when filling in areas." ) ); 309 QWhatsThis::add( m_pBrushColorToolButton, tr( "Click here to select the color used when filling in areas." ) );
273 310
274 Opie::OColorPopupMenu* brushColorPopupMenu = new Opie::OColorPopupMenu(Qt::white, m_pBrushColorToolButton); 311 Opie::OColorPopupMenu* brushColorPopupMenu = new Opie::OColorPopupMenu(Qt::white, m_pBrushColorToolButton);
@@ -554,7 +591,8 @@ void DrawPad::changePenColor(const QColor& color)
554 591
555 QPainter painter; 592 QPainter painter;
556 painter.begin(m_pPenColorToolButton->pixmap()); 593 painter.begin(m_pPenColorToolButton->pixmap());
557 painter.fillRect(QRect(0, 12, 14, 2), m_pen.color()); 594 int size = AppLnk::smallIconSize();
595 painter.fillRect(QRect(0, 6*size/7+1, size, size/7), m_pen.color());
558 painter.end(); 596 painter.end();
559 597
560 m_pPenColorToolButton->popup()->hide(); 598 m_pPenColorToolButton->popup()->hide();
@@ -566,7 +604,8 @@ void DrawPad::changeBrushColor(const QColor& color)
566 604
567 QPainter painter; 605 QPainter painter;
568 painter.begin(m_pBrushColorToolButton->pixmap()); 606 painter.begin(m_pBrushColorToolButton->pixmap());
569 painter.fillRect(QRect(0, 12, 14, 2), m_brush.color()); 607 int size = AppLnk::smallIconSize();
608 painter.fillRect(QRect(0, 6*size/7+1, size, size/7), m_brush.color());
570 painter.end(); 609 painter.end();
571 610
572 m_pBrushColorToolButton->popup()->hide(); 611 m_pBrushColorToolButton->popup()->hide();
diff --git a/noncore/graphics/drawpad/thumbnailview.cpp b/noncore/graphics/drawpad/thumbnailview.cpp
index 1ccf484..d190ffe 100644
--- a/noncore/graphics/drawpad/thumbnailview.cpp
+++ b/noncore/graphics/drawpad/thumbnailview.cpp
@@ -18,8 +18,9 @@
18#include "newpagedialog.h" 18#include "newpagedialog.h"
19#include "page.h" 19#include "page.h"
20 20
21#include <opie2/oresource.h>
22
21#include <qpe/config.h> 23#include <qpe/config.h>
22#include <qpe/resource.h>
23#include <qpe/timestring.h> 24#include <qpe/timestring.h>
24 25
25#include <qapplication.h> 26#include <qapplication.h>
@@ -239,32 +240,39 @@ ThumbnailView::ThumbnailView(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas, QWi
239 240
240 setCaption(tr("DrawPad - Thumbnail View")); 241 setCaption(tr("DrawPad - Thumbnail View"));
241 242
243 bool useBigIcon = qApp->desktop()->size().width() > 330;
244
242 QToolButton* newPageButton = new QToolButton(this); 245 QToolButton* newPageButton = new QToolButton(this);
243 newPageButton->setIconSet(Resource::loadIconSet("new")); 246 newPageButton->setUsesBigPixmap( useBigIcon );
247 newPageButton->setPixmap(Opie::Core::OResource::loadPixmap("new", Opie::Core::OResource::SmallIcon));
244 newPageButton->setAutoRaise(true); 248 newPageButton->setAutoRaise(true);
245 connect(newPageButton, SIGNAL(clicked()), this, SLOT(newPage())); 249 connect(newPageButton, SIGNAL(clicked()), this, SLOT(newPage()));
246 QWhatsThis::add( newPageButton, tr( "Click here to add a new sheet." ) ); 250 QWhatsThis::add( newPageButton, tr( "Click here to add a new sheet." ) );
247 251
248 QToolButton* clearPageButton = new QToolButton(this); 252 QToolButton* clearPageButton = new QToolButton(this);
249 clearPageButton->setIconSet(Resource::loadIconSet("drawpad/clear")); 253 clearPageButton->setUsesBigPixmap( useBigIcon );
254 clearPageButton->setPixmap(Opie::Core::OResource::loadPixmap("drawpad/clear", Opie::Core::OResource::SmallIcon));
250 clearPageButton->setAutoRaise(true); 255 clearPageButton->setAutoRaise(true);
251 connect(clearPageButton, SIGNAL(clicked()), this, SLOT(clearPage())); 256 connect(clearPageButton, SIGNAL(clicked()), this, SLOT(clearPage()));
252 QWhatsThis::add( clearPageButton, tr( "Click here to erase the current sheet." ) ); 257 QWhatsThis::add( clearPageButton, tr( "Click here to erase the current sheet." ) );
253 258
254 QToolButton* deletePageButton = new QToolButton(this); 259 QToolButton* deletePageButton = new QToolButton(this);
255 deletePageButton->setIconSet(Resource::loadIconSet("trash")); 260 deletePageButton->setUsesBigPixmap( useBigIcon );
261 deletePageButton->setPixmap(Opie::Core::OResource::loadPixmap("trash", Opie::Core::OResource::SmallIcon));
256 deletePageButton->setAutoRaise(true); 262 deletePageButton->setAutoRaise(true);
257 connect(deletePageButton, SIGNAL(clicked()), this, SLOT(deletePage())); 263 connect(deletePageButton, SIGNAL(clicked()), this, SLOT(deletePage()));
258 QWhatsThis::add( deletePageButton, tr( "Click here to remove the current sheet." ) ); 264 QWhatsThis::add( deletePageButton, tr( "Click here to remove the current sheet." ) );
259 265
260 m_pMovePageUpButton = new QToolButton(this); 266 m_pMovePageUpButton = new QToolButton(this);
261 m_pMovePageUpButton->setIconSet(Resource::loadIconSet("up")); 267 m_pMovePageUpButton->setUsesBigPixmap( useBigIcon );
268 m_pMovePageUpButton->setPixmap(Opie::Core::OResource::loadPixmap("up", Opie::Core::OResource::SmallIcon));
262 m_pMovePageUpButton->setAutoRaise(true); 269 m_pMovePageUpButton->setAutoRaise(true);
263 connect(m_pMovePageUpButton, SIGNAL(clicked()), this, SLOT(movePageUp())); 270 connect(m_pMovePageUpButton, SIGNAL(clicked()), this, SLOT(movePageUp()));
264 QWhatsThis::add( m_pMovePageUpButton, tr( "Click here to move the current sheet up one position in the list." ) ); 271 QWhatsThis::add( m_pMovePageUpButton, tr( "Click here to move the current sheet up one position in the list." ) );
265 272
266 m_pMovePageDownButton = new QToolButton(this); 273 m_pMovePageDownButton = new QToolButton(this);
267 m_pMovePageDownButton->setIconSet(Resource::loadIconSet("down")); 274 m_pMovePageDownButton->setUsesBigPixmap( useBigIcon );
275 m_pMovePageDownButton->setPixmap(Opie::Core::OResource::loadPixmap("down", Opie::Core::OResource::SmallIcon));
268 m_pMovePageDownButton->setAutoRaise(true); 276 m_pMovePageDownButton->setAutoRaise(true);
269 connect(m_pMovePageDownButton, SIGNAL(clicked()), this, SLOT(movePageDown())); 277 connect(m_pMovePageDownButton, SIGNAL(clicked()), this, SLOT(movePageDown()));
270 QWhatsThis::add( m_pMovePageDownButton, tr( "Click here to move the current sheet down one position in the list." ) ); 278 QWhatsThis::add( m_pMovePageDownButton, tr( "Click here to move the current sheet down one position in the list." ) );