summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index b616f4c..caed7f2 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -562,6 +562,16 @@ void SheMov::createActions(){
connect(mPVSlideA, SIGNAL(toggled(bool)), this, SLOT(setSlide(bool)));
picViewer->addAction(createSeparator());
picViewer->addAction(mPVSlideA);
+ mPVSkipForwardA = new QAction(tr("Skip 25 forward"), this);
+ connect(mPVSkipForwardA, SIGNAL(triggered()), this, SLOT(skipForward()));
+ mPVSkipForwardA->setData(PictureViewer2::SkipForwardAction);
+ mPVSkipBackA = new QAction(tr("Skip 25 back"), this);
+ connect(mPVSkipBackA, SIGNAL(triggered()), this, SLOT(skipBack()));
+ mPVSkipBackA->setData(PictureViewer2::SkipBackwardAction);
+ picViewer->addAction(createSeparator());
+ picViewer->addAction(mPVSkipForwardA);
+ picViewer->addAction(mPVSkipBackA);
+ picViewer->addAction(createSeparator());
// Shuffle
mPVShuffleA = new QAction(QIcon(":/bizarre_amputee.png"), tr("Shuffle"), this);
@@ -1073,3 +1083,13 @@ void SheMov::newPicsDialogWithFiles(){
mNewPicsDialog->addFiles(files);
mNewPicsDialog->exec();
}
+
+void SheMov::skipForward(){
+ PictureViewer2 *picViewer = SmGlobals::instance()->pictureViewer();
+ picViewer->skip(25);
+}
+
+void SheMov::skipBack(){
+ PictureViewer2 *picViewer = SmGlobals::instance()->pictureViewer();
+ picViewer->skip(-25);
+}