Add marked files dialog

This commit is contained in:
2022-04-19 19:57:06 +02:00
parent 92f9920f24
commit e0d473c8c8
5 changed files with 94 additions and 0 deletions
+8
View File
@@ -16,6 +16,7 @@
#include <QCoreApplication>
#include <QThreadPool>
#include "loadrunable.h"
#include "markedfiles.h"
#ifdef __linux__
#include <sys/ioctl.h>
@@ -114,6 +115,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
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);
selectMenu->addAction(tr("Show marked"), this, &MainWindow::showMarkFilesDialog);
menuBar()->addMenu(selectMenu);
QMenu *analyzeMenu = new QMenu(tr("Analyze"), this);
@@ -446,6 +448,12 @@ void MainWindow::starFinder(bool findStars)
m_ringList->setFindStars(findStars);
}
void MainWindow::showMarkFilesDialog()
{
MarkedFiles markedFiles;
markedFiles.exec();
}
void MainWindow::updateWindowTitle()
{
ImagePtr ptr = m_ringList->currentImage();