From 89662ce745c1eee152e7bc2200be5f08caee78a8 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 12 Oct 2013 15:35:24 +0200 Subject: Improve PictureViewer2 * implement Mark Files * always show all pictures from context * change navigation: N -> next P -> previous M -> mark/unmark file --- shemov.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 5289291..ac32419 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -518,6 +518,18 @@ void SheMov::createActions(){ mPVSelectAllA = new QAction(QIcon(":/blue_syringe.png"), tr("Select all pics"), this); picViewer->addAction(mPVSelectAllA); + // PictureViewer mark Action + picViewer->addAction(createSeparator()); + mPVMarkA = new QAction(QIcon(":/higheels.png"), tr("(Un-)Mark"), this); + mPVMarkA->setCheckable(true); + mPVMarkA->setData(PictureViewer2::MarkAction); + connect(mPVMarkA, SIGNAL(triggered()), picViewer, SLOT(markCurrent())); + picViewer->addAction(mPVMarkA); + mPVClearMarksA = new QAction(tr("Clear marks"), this); + connect(mPVClearMarksA, SIGNAL(triggered()), picViewer, SLOT(clearMarks())); + picViewer->addAction(mPVClearMarksA); + picViewer->addAction(createSeparator()); + // Slide mPVSlideA = new QAction(QIcon(":/chastity_belt_with_cuffs.png"), tr("Slide"), this); mPVSlideA->setCheckable(true); -- cgit v1.2.3-70-g09d2