summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 673690a..eaa85c7 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -511,8 +511,15 @@ void SheMov::createActions(){
connect(mPWEditPicMappingsA, SIGNAL(triggered()), mPicWidget->picView(), SIGNAL(editPicsMappings()));
mPicWidget->picView()->addAction(createSeparator());
- // Show/Hide Picture Viewer
+ // Show slide dialog
PictureViewer2 *picViewer = SmGlobals::instance()->pictureViewer();
+ mPVSlideDlgA = new QAction(QIcon(":/hourglass_figure.png"), tr("Show slide dialog..."), this);
+ mPVSlideDlgA->setData(PictureViewer2::SlideAction);
+ mPicWidget->picView()->addAction(mPVSlideDlgA);
+ connect(mPVSlideDlgA, SIGNAL(triggered()), picViewer, SLOT(doSlide()));
+ mPicWidget->picView()->addAction(createSeparator());
+
+ // Show/Hide Picture Viewer
mPVToggleA = new QAction(QIcon(":/dick_in_cage.png"), tr("Show/Hide Picture Viewer"), this);
mPVToggleA->setCheckable(true);
mPVToggleA->setData(PictureViewer2::HideAction);
@@ -542,6 +549,10 @@ void SheMov::createActions(){
/* Now the context menu for the actual Viewer
* picViewer -> PictureViewer2 */
+ // Slide Dialog
+ picViewer->addAction(mPVSlideDlgA);
+ picViewer->addAction(createSeparator());
+
// Show/Hide Picture Viewer
picViewer->addAction(mPVToggleA);