volmetrics

view src/mainwin.cc @ 37:1d935677d3ab

Created new branch non-qt-version
author Eleni Maria Stea <elene.mst@gmail.com>
date Mon, 17 Apr 2017 13:26:24 +0000
parents
children
line source
1 #include <QMessageBox>
2 #include "mainwin.h"
3 #include "ui_mainwin.h"
4 #include "view3d.h"
6 View3D view3d;
8 MainWin::MainWin(QWidget *parent) :
9 QMainWindow(parent),
10 ui(new Ui::MainWin)
11 {
12 ui->setupUi(this);
13 }
15 MainWin::~MainWin()
16 {
17 delete ui;
18 }
20 void MainWin::on_action_quit_triggered()
21 {
22 close();
23 }
25 void MainWin::on_action_about_triggered()
26 {
27 static const char *text =
28 "Volmetrics version whatever\n"
29 "Copyright (C) 2015 Eleni-Maria Stea, Stathis Kamperis\n"
30 "web page, emails, support, blah blah ... whatever.";
31 QMessageBox::about(this, "About", text);
32 }
34 void MainWin::on_spin_win_low_valueChanged(double arg1)
35 {
36 view3d.set_thresholds(arg1, ui->spin_win_high->value());
37 }
39 void MainWin::on_spin_win_high_valueChanged(double arg1)
40 {
41 view3d.set_thresholds(ui->spin_win_low->value(), arg1);
42 }