Turn on calculating of image statistics
This commit is contained in:
@@ -62,6 +62,13 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
|
||||
selectMenu->addAction(tr("Unmark and next"), this, SLOT(unmarkAndNext()), Qt::Key_X);
|
||||
menuBar()->addMenu(selectMenu);
|
||||
|
||||
QMenu *statsMenu = new QMenu(tr("Statistic"), this);
|
||||
QAction *statsAction = new QAction(tr("Image statistics"), this);
|
||||
statsAction->setCheckable(true);
|
||||
connect(statsAction, SIGNAL(toggled(bool)), this, SLOT(imageStats(bool)));
|
||||
statsMenu->addAction(statsAction);
|
||||
menuBar()->addMenu(statsMenu);
|
||||
|
||||
m_database = new Database(this);
|
||||
if(!m_database->init())
|
||||
QMessageBox::critical(this, tr("Can't open DB"), tr("Can't open SQLITE database"));
|
||||
@@ -240,6 +247,11 @@ void MainWindow::liveMode(bool active)
|
||||
m_ringList->setLiveMode(active);
|
||||
}
|
||||
|
||||
void MainWindow::imageStats(bool imageStats)
|
||||
{
|
||||
m_ringList->setCalculateStats(imageStats);
|
||||
}
|
||||
|
||||
void MainWindow::updateWindowTitle()
|
||||
{
|
||||
ImagePtr ptr = m_ringList->currentImage();
|
||||
|
||||
Reference in New Issue
Block a user