nuclear@36: #include nuclear@36: #include "mainwin.h" nuclear@36: #include "ui_mainwin.h" nuclear@36: #include "view3d.h" nuclear@36: nuclear@36: View3D view3d; nuclear@36: nuclear@36: MainWin::MainWin(QWidget *parent) : nuclear@36: QMainWindow(parent), nuclear@36: ui(new Ui::MainWin) nuclear@36: { nuclear@36: ui->setupUi(this); nuclear@36: } nuclear@36: nuclear@36: MainWin::~MainWin() nuclear@36: { nuclear@36: delete ui; nuclear@36: } nuclear@36: nuclear@36: void MainWin::on_action_quit_triggered() nuclear@36: { nuclear@36: close(); nuclear@36: } nuclear@36: nuclear@36: void MainWin::on_action_about_triggered() nuclear@36: { nuclear@36: static const char *text = nuclear@36: "Volmetrics version whatever\n" nuclear@36: "Copyright (C) 2015 Eleni-Maria Stea, Stathis Kamperis\n" nuclear@36: "web page, emails, support, blah blah ... whatever."; nuclear@36: QMessageBox::about(this, "About", text); nuclear@36: } nuclear@36: nuclear@36: void MainWin::on_spin_win_low_valueChanged(double arg1) nuclear@36: { nuclear@36: view3d.set_thresholds(arg1, ui->spin_win_high->value()); nuclear@36: } nuclear@36: nuclear@36: void MainWin::on_spin_win_high_valueChanged(double arg1) nuclear@36: { nuclear@36: view3d.set_thresholds(ui->spin_win_low->value(), arg1); nuclear@36: }