Isis 3 Programmer Reference
ControlPointEditView.cpp
Go to the documentation of this file.
1 
23 #include "IsisDebug.h"
24 
25 #include "ControlPointEditView.h"
26 
27 #include <QAction>
28 #include <QList>
29 #include <QSize>
30 #include <QSizePolicy>
31 #include <QToolBar>
32 #include <QWidgetAction>
33 
34 #include "ControlNet.h"
35 #include "ControlPoint.h"
36 #include "ControlPointEditWidget.h"
37 #include "Directory.h"
38 #include "ToolPad.h"
39 
40 
41 namespace Isis {
46  AbstractProjectItemView(parent) {
47 
48  m_controlPointEditWidget = new ControlPointEditWidget(directory, parent);
49 
50  // TODO How are control nets and serial number lists going to be handled? I assume there can
51  // be several active control nets depending on the view, ie. jigsaw might operate on one
52  // net, while the editors might be using a different net. Will Directory keep track?
53  //
54 
55  setCentralWidget(m_controlPointEditWidget);
56 
57  // Store the buttons (actions) for easy enable/disable.
58  m_buttons = m_controlPointEditWidget->findChildren<QPushButton *>();
59 
60  // On default, actions are disabled until the cursor enters the view.
62  }
63 
64 
69  delete m_controlPointEditWidget;
70  }
71 
72 
80  return m_controlPointEditWidget;
81  }
82 
83 
88  foreach (QPushButton *button, m_buttons) {
89  button->setDisabled(true);
90  }
91  }
92 
93 
98  foreach (QPushButton *button, m_buttons) {
99  button->setEnabled(true);
100  }
101  }
102 }
void disableActions()
Disables buttons/actions.
ControlPointEditWidget * controlPointEditWidget()
Returns the ControlPointEditWidget.
ControlPointEditView(Directory *directory, QWidget *parent=0)
Constructor.
Gui for editing ControlPoints in ipce application.
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt&#39;s model-view framework...
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void enableActions()
Enables buttons/actions.
$Date$ $Revision$