Isis Developer Reference
ProjectionConfigDialog.h
Go to the documentation of this file.
1 #ifndef ProjectionConfigDialog_h
2 #define ProjectionConfigDialog_h
3 
4 #include <QDialog>
5 
6 #include <QPointer>
7 
8 class QLabel;
9 class QPushButton;
10 class QTextEdit;
11 
12 namespace Isis {
13  class MosaicSceneWidget;
14  class Projection;
15  class Pvl;
16 
25  Q_OBJECT
26 
27  public:
28  ProjectionConfigDialog(MosaicSceneWidget *scene, QWidget *parent = NULL);
29  virtual ~ProjectionConfigDialog();
30 
31  void setQuickConfig(bool quick);
32 
33  signals:
34  void shown();
35 
36  public slots:
37  void applySettings();
38  void readSettings();
39 
40  protected:
41  void showEvent(QShowEvent *);
42 
43  private:
44  Q_DISABLE_COPY(ProjectionConfigDialog);
45  Pvl addMissingKeywords(Pvl mappingPvl);
46  Projection *createProjection();
47 
48  private slots:
49  void beginQuickLoad();
50  void loadFromFile();
51  void saveToFile();
52  void refreshWidgetStates();
53  void showErrors(int);
54 
55  private:
57  QPointer<QLabel> m_stateLabel;
59  QPointer<QLabel> m_errorsLabel;
61  QPointer<QTextEdit> m_mapFileEdit;
62 
64  QPointer<QPushButton> m_readFromFileButton;
65 
67  QPointer<QPushButton> m_applyButton;
69  QPointer<QPushButton> m_okayButton;
70 
72  QPointer<MosaicSceneWidget> m_scene;
73 
75  bool m_dirty;
76 
78  bool m_quick;
79  };
80 }
81 
82 #endif
Isis::ProjectionConfigDialog::applySettings
void applySettings()
Take the settings that have been configured and apply them to the mosaic scene.
Definition: ProjectionConfigDialog.cpp:172
ProjectionFactory.h
QWidget
Isis::PvlObject::findGroup
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
MosaicSceneWidget.h
Isis::ProjectionConfigDialog::showEvent
void showEvent(QShowEvent *)
Definition: ProjectionConfigDialog.cpp:207
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Isis::PvlContainer::hasKeyword
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
ProjectionConfigDialog.h
Isis::ProjectionConfigDialog::~ProjectionConfigDialog
virtual ~ProjectionConfigDialog()
Definition: ProjectionConfigDialog.cpp:152
Isis::PvlObject::Traverse
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Isis::ProjectionConfigDialog::setQuickConfig
void setQuickConfig(bool quick)
Enable/disable minimal interaction mode.
Definition: ProjectionConfigDialog.cpp:164
Isis::ProjectionConfigDialog::readSettings
void readSettings()
Update the current widgets' states with the current settings in the mosaic scene.
Definition: ProjectionConfigDialog.cpp:189
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::ProjectionFactory::Create
static Isis::Projection * Create(Isis::Pvl &label, bool allowDefaults=false)
This method returns a pointer to a Projection object.
Definition: ProjectionFactory.cpp:51
Isis::ProjectionConfigDialog::shown
void shown()
IException.h
Isis::ProjectionConfigDialog::ProjectionConfigDialog
ProjectionConfigDialog(MosaicSceneWidget *scene, QWidget *parent=NULL)
Create a projection configuration dialog.
Definition: ProjectionConfigDialog.cpp:29
Projection.h
QDialog
Isis::Projection
Base class for Map Projections.
Definition: Projection.h:155
Isis::ProjectionConfigDialog
This is the configuration dialog for the MosaicSceneWidget's projection parameters (map file).
Definition: ProjectionConfigDialog.h:24
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16