forked from githubdoe/DFTFringe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cameracalibwizard.cpp
54 lines (44 loc) · 1.66 KB
/
cameracalibwizard.cpp
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
#include "cameracalibwizard.h"
#include "ui_cameracalibwizard.h"
#include <QLabel>
#include <QLayout>
#include "camwizardpage1.h"
cameraCalibWizard::cameraCalibWizard(QWidget *parent) :
QWizard(parent),
ui(new Ui::cameraCalibWizard)
{
ui->setupUi(this);
setPage(Page_Intro, new camWizIntro(parent));
setPage(Page_1, new CamWizardPage1(parent));
setStartId(cameraCalibWizard::Page_Intro);
//resize( QSize(600, 489).expandedTo(minimumSizeHint()) );
//setPixmap(QWizard::LogoPixmap, QPixmap(":/icons/camera-icon-60.png").scaled(120, 120, Qt::IgnoreAspectRatio, Qt::FastTransformation));
}
cameraCalibWizard::~cameraCalibWizard()
{
delete ui;
}
void cameraCalibWizard::on_cameraCalibWizard_accepted()
{
}
camWizIntro::camWizIntro(QWidget *p):
QWizardPage(p){
setTitle(tr("Experimental"));
//setSubTitle(tr(""));
//setPixmap(QWizard::WatermarkPixmap, QPixmap(":/res/wats2.png"));
QLabel *lb = new QLabel(
"<html><head/><body><p><img src='camera-icon-60.png' align = 'right' /></p><p>You can use this to determine if your camera and lens combination has"
" signifcant distortion.</p><p>If so it can also be used to remove that distortion from the interferogram."
"</p><p>You will need to take several picures of a special target.</p></body></html>"
);
QVBoxLayout *layout = new QVBoxLayout();
layout->addWidget(lb);
setLayout(layout);
}
#include <QDesktopServices>
#include <QUrl>
void cameraCalibWizard::on_cameraCalibWizard_helpRequested()
{
QString link = qApp->applicationDirPath() + "/res/Help/lensDistort.html";
QDesktopServices::openUrl(QUrl(link));
}