Isis 3 Programmer Reference
NewGroundSourceLocationDialog.cpp
1 #include "NewGroundSourceLocationDialog.h"
2 
3 #include <iostream>
4 
5 #include <QButtonGroup>
6 #include <QLayout>
7 #include <QPushButton>
8 
9 using namespace std;
10 
11 namespace Isis {
12 
21  NewGroundSourceLocationDialog::NewGroundSourceLocationDialog(QString title, QString &directory,
22  QWidget *parent) :
23  QFileDialog(parent, title, directory) {
24 
25  setFileMode(QFileDialog::Directory);
26 // setOptions(QFileDialog::ShowDirsOnly);
27 // // This returns a list of all the buttons in QFileDialog
28 // QList<QPushButton *> allButtons = this->findChildren<QPushButton *>();
29 // // Edit the first (Open) button title.
30 // allButtons[0]->setText("&Save");
31 //
32 // /// Edit the second (Cancel) button title.
33 // allButtons[1]->setText("Cancel");
34 
35  QVBoxLayout *vertBoxLayout = new QVBoxLayout;
36 // hBoxLayout->setAlignment(Qt::AlignLeft);
37 // hBoxLayout->setSpacing(25);
38 // hBoxLayout->setContentsMargins (25, 11, 25, 11 );
39 
40  // Button Group
41 // QButtonGroup *optionsButtonGroup = new QButtonGroup();
42 
43  m_changeAllGround = new QCheckBox("Change location of all subsequent ground points loaded",
44  this);
45 // m_changeAllGround->setWhatsThis("Save the Image As Viewed with Full Resoultion");
46 
47  m_changeControlNet = new QCheckBox("Change location of ground source in control net."
48  " Note: If above box is checked, all locations will"
49  " be changed.", this);
50 
51 // optionsButtonGroup->addButton(m_changeAllGround);
52 // optionsButtonGroup->addButton(m_changeControlNet);
53 
54  vertBoxLayout->addWidget(m_changeAllGround);
55  vertBoxLayout->addWidget(m_changeControlNet);
56 
57  // Get parent's layout (FileDialog), then add new buttons
58  QLayout *dialogLayout = layout();
59  dialogLayout->addItem(vertBoxLayout);
60 // setLayout(dialogLayout);
61  }
62 
63 
69 
70  return m_changeAllGround->isChecked();
71  }
72 
73 
79 
80  return m_changeControlNet->isChecked();
81  }
82 }
83 
bool changeAllGroundSourceLocation()
Indicates whether all subsequent ground source files should be found in new source directory...
Namespace for the standard library.
QPointer< QCheckBox > m_changeAllGround
Change location of all subsequent ground control points.
bool changeControlNet()
Indicates whether the control network should be changed to reflect new ground source location...
QPointer< QCheckBox > m_changeControlNet
Change location of ground source in the control network.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31