Add mark/unmark and move to next file actions
This commit is contained in:
@@ -37,6 +37,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
|
||||
QMenu *selectMenu = new QMenu(tr("Select"), this);
|
||||
selectMenu->addAction(tr("Mark"), this, SLOT(markImage()), Qt::Key_F5);
|
||||
selectMenu->addAction(tr("Unmark"), this, SLOT(unmarkImage()), Qt::Key_F8);
|
||||
selectMenu->addSeparator();
|
||||
selectMenu->addAction(tr("Mark and next"), this, SLOT(markAndNext()), Qt::Key_M);
|
||||
selectMenu->addAction(tr("Unmark and next"), this, SLOT(unmarkAndNext()), Qt::Key_X);
|
||||
menuBar()->addMenu(selectMenu);
|
||||
|
||||
m_database = new Database(this);
|
||||
@@ -126,6 +129,18 @@ void MainWindow::unmarkImage()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::markAndNext()
|
||||
{
|
||||
markImage();
|
||||
m_ringList->increment();
|
||||
}
|
||||
|
||||
void MainWindow::unmarkAndNext()
|
||||
{
|
||||
unmarkImage();
|
||||
m_ringList->increment();
|
||||
}
|
||||
|
||||
void MainWindow::updateWindowTitle()
|
||||
{
|
||||
ImagePtr ptr = m_ringList->currentImage();
|
||||
|
||||
Reference in New Issue
Block a user