From 08c7cc837379ae4f085a6cc0d44a8b58bdb5a030 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 10 Mar 2012 07:29:20 +0100 Subject: Slide show Implement slide show in Pictureviewer2. Slide over all available files and wrap around when reaching the end of the list. Also added some more artwork. --- shemov.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index fb8f75f..9f261c2 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -620,6 +620,7 @@ void SheMov::createActions(){ connect(mPVToggleA, SIGNAL(toggled(bool)), mPicWidget, SLOT(showPicViewer(bool))); mPVToggleA->setChecked(false); mPicWidget->picView()->addAction(mPVToggleA); + mPicWidget->picView()->PV()->addAction(mPVToggleA); QSignalMapper *PVAddMapper = new QSignalMapper(this); mPVAddA = new QAction(QIcon(":/used_tampon.png"), tr("Add selected"), this); connect(mPVAddA, SIGNAL(triggered()), PVAddMapper, SLOT(map())); @@ -630,9 +631,23 @@ void SheMov::createActions(){ PVAddMapper->setMapping(mPVReplaceA, true); mPicWidget->picView()->addAction(mPVReplaceA); connect(PVAddMapper, SIGNAL(mapped(int)), mPicWidget->picView(), SLOT(setPVData(int))); + mPVSelectAllA = new QAction(QIcon(":/blue_syringe.png"), tr("Select all pics"), this); + connect(mPVSelectAllA, SIGNAL(triggered()), mPicWidget->picView(), SLOT(setPVAll())); + mPicWidget->picView()->addAction(mPVSelectAllA); + connect(mPVSelectAllA, SIGNAL(triggered()), mPicWidget->picView(), SLOT(setPVAll())); + mPicWidget->picView()->addAction(mPVSelectAllA); + mPicWidget->picView()->PV()->addAction(mPVSelectAllA); QAction *pvSep2 = new QAction(this); pvSep2->setSeparator(true); mPicWidget->picView()->addAction(pvSep2); + mPVSlideA = new QAction(QIcon(":/chastity_belt_with_cuffs.png"), tr("Slide"), this); + mPVSlideA->setCheckable(true); + connect(mPVSlideA, SIGNAL(triggered()), mPicWidget->picView()->PV(), SLOT(slide())); + mPicWidget->picView()->addAction(mPVSlideA); + mPicWidget->picView()->PV()->addAction(mPVSlideA); + QAction *pvSep3 = new QAction(this); + pvSep3->setSeparator(true); + mPicWidget->picView()->addAction(pvSep3); // refresh mPWRefreshA = new QAction(QIcon(":/huge_bra.png"), tr("Refresh"), this); -- cgit v1.2.3-70-g09d2