summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/drawpad.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad/drawpad.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp
index 74787e5..b325323 100644
--- a/noncore/graphics/drawpad/drawpad.cpp
+++ b/noncore/graphics/drawpad/drawpad.cpp
@@ -22,12 +22,13 @@
22#include "filltool.h" 22#include "filltool.h"
23#include "importdialog.h" 23#include "importdialog.h"
24#include "linetool.h" 24#include "linetool.h"
25#include "pointtool.h" 25#include "pointtool.h"
26#include "rectangletool.h" 26#include "rectangletool.h"
27#include "texttool.h" 27#include "texttool.h"
28#include "thumbnailview.h"
28 29
29#include <opie/colordialog.h> 30#include <opie/colordialog.h>
30#include <opie/colorpopupmenu.h> 31#include <opie/colorpopupmenu.h>
31 32
32#include <qpe/applnk.h> 33#include <qpe/applnk.h>
33#include <qpe/global.h> 34#include <qpe/global.h>
@@ -75,12 +76,18 @@ DrawPad::DrawPad(QWidget* parent, const char* name)
75 importPageAction->addTo(toolsPopupMenu); 76 importPageAction->addTo(toolsPopupMenu);
76 77
77 QAction* exportPageAction = new QAction(tr("Export"), tr("Export..."), 0, this); 78 QAction* exportPageAction = new QAction(tr("Export"), tr("Export..."), 0, this);
78 connect(exportPageAction, SIGNAL(activated()), this, SLOT(exportPage())); 79 connect(exportPageAction, SIGNAL(activated()), this, SLOT(exportPage()));
79 exportPageAction->addTo(toolsPopupMenu); 80 exportPageAction->addTo(toolsPopupMenu);
80 81
82 toolsPopupMenu->insertSeparator();
83
84 QAction* thumbnailViewAction = new QAction(tr("Thumbnail View"), tr("Thumbnail View..."), 0, this);
85 connect(thumbnailViewAction, SIGNAL(activated()), this, SLOT(thumbnailView()));
86 thumbnailViewAction->addTo(toolsPopupMenu);
87
81 menuBar->insertItem(tr("Tools"), toolsPopupMenu); 88 menuBar->insertItem(tr("Tools"), toolsPopupMenu);
82 89
83 // init page toolbar 90 // init page toolbar
84 91
85 QPEToolBar* pageToolBar = new QPEToolBar(this); 92 QPEToolBar* pageToolBar = new QPEToolBar(this);
86 93
@@ -516,6 +523,14 @@ void DrawPad::exportPage()
516 523
517 if (exportDialog.exec() == QDialog::Accepted) { 524 if (exportDialog.exec() == QDialog::Accepted) {
518 m_pDrawPadCanvas->exportPage(exportDialog.selectedFromPage(), exportDialog.selectedToPage(), 525 m_pDrawPadCanvas->exportPage(exportDialog.selectedFromPage(), exportDialog.selectedToPage(),
519 exportDialog.selectedName(), exportDialog.selectedFormat()); 526 exportDialog.selectedName(), exportDialog.selectedFormat());
520 } 527 }
521} 528}
529
530void DrawPad::thumbnailView()
531{
532 ThumbnailView thumbnailView(m_pDrawPadCanvas->pages(), this);
533
534 thumbnailView.showMaximized();
535 thumbnailView.exec();
536}