From bc11672a2bc4140f67476b79fc6b427f4a5cc4ec Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 29 Mar 2016 08:38:12 +0200 Subject: Design slide dialog Does nothing yet, just the dialog... --- shemov.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'shemov.cpp') 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); -- cgit v1.2.3-70-g09d2