1 #include "ProfileDialog.h"
7 #include <QStackedWidget>
14 m_startCreated =
false;
17 connect(createStartButton, SIGNAL(clicked()),
18 this, SLOT(createStartSelected()));
19 connect(createEndButton, SIGNAL(clicked()),
20 this, SLOT(createEndSelected()));
21 connect(helpButton, SIGNAL(clicked()),
this, SLOT(help()));
27 void ProfileDialog::createStartSelected() {
28 createStartButton->setEnabled(
false);
29 m_startCreated =
true;
30 if (m_startCreated && m_endCreated) {
31 profileButton->setEnabled(
true);
39 void ProfileDialog::createEndSelected() {
40 createEndButton->setEnabled(
false);
42 if (m_startCreated && m_endCreated) {
43 profileButton->setEnabled(
true);
51 void ProfileDialog::help() {
52 QString message =
"You must create and refine the end points of the profile "
53 "line before the elevation profile can be calculated.\n\n A line is "
54 "computed between the end points on both the left and right cubes, then "
55 "sub-pixel registration is computed along these two lines to find the "
56 "same pixel on both cubes. The instument pointing at these pixels is then "
57 "used to compute the elevation.";
58 QMessageBox::information(
this,
"Elevation Profile", message);