-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathautoinvertdlg.cpp
More file actions
61 lines (48 loc) · 1.23 KB
/
autoinvertdlg.cpp
File metadata and controls
61 lines (48 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "autoinvertdlg.h"
#include "ui_autoinvertdlg.h"
#include "surfacemanager.h"
autoInvertDlg::autoInvertDlg(QWidget *parent) :
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint),
ui(new Ui::autoInvertDlg)
{
ui->setupUi(this);
setSizeGripEnabled(true);
}
autoInvertDlg::~autoInvertDlg()
{
delete ui;
}
void autoInvertDlg::on_btnUseConic_clicked()
{
SurfaceManager *sm = SurfaceManager::get_instance();
sm->m_inverseMode = invCONIC;
accept();
}
void autoInvertDlg::on_btnManual_clicked()
{
SurfaceManager *sm = SurfaceManager::get_instance();
sm->m_inverseMode = invMANUAL;
accept();
}
void autoInvertDlg::on_btnInside_clicked()
{
SurfaceManager *sm = SurfaceManager::get_instance();
sm->m_inverseMode = invINSIDE;
accept();
}
void autoInvertDlg::on_btnOutside_clicked()
{
SurfaceManager *sm = SurfaceManager::get_instance();
sm->m_inverseMode = invOUTSIDE;
accept();
}
void autoInvertDlg::setMainLabel(const QString & str) {
ui->lblMain->setText(str);
}
void autoInvertDlg::enableConic(bool b) {
ui->btnUseConic->setEnabled(b);
}
void autoInvertDlg::on_InvertWithoutAskingRb_clicked(bool checked)
{
Q_UNUSED(checked);
}