Isis 3 Programmer Reference
ControlPointEditView.cpp
1
7/* SPDX-License-Identifier: CC0-1.0 */
8
9#include "ControlPointEditView.h"
10
11#include <QAction>
12#include <QList>
13#include <QSize>
14#include <QSizePolicy>
15#include <QToolBar>
16#include <QWidgetAction>
17
18#include "ControlNet.h"
19#include "ControlPoint.h"
20#include "ControlPointEditWidget.h"
21#include "Directory.h"
22#include "ToolPad.h"
23
24
25namespace Isis {
31
32 m_controlPointEditWidget = new ControlPointEditWidget(directory, parent);
33
34 // TODO How are control nets and serial number lists going to be handled? I assume there can
35 // be several active control nets depending on the view, ie. jigsaw might operate on one
36 // net, while the editors might be using a different net. Will Directory keep track?
37 //
38
39 setCentralWidget(m_controlPointEditWidget);
40
41 // Store the buttons (actions) for easy enable/disable.
42 m_buttons = m_controlPointEditWidget->findChildren<QPushButton *>();
43
44 // On default, actions are disabled until the cursor enters the view.
46 }
47
48
53 delete m_controlPointEditWidget;
54 }
55
56
64 return m_controlPointEditWidget;
65 }
66
67
72 foreach (QPushButton *button, m_buttons) {
73 button->setDisabled(true);
74 }
75 }
76
77
82 foreach (QPushButton *button, m_buttons) {
83 button->setEnabled(true);
84 }
85 }
86}
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework.
ControlPointEditView(Directory *directory, QWidget *parent=0)
Constructor.
void enableActions()
Enables buttons/actions.
ControlPointEditWidget * controlPointEditWidget()
Returns the ControlPointEditWidget.
void disableActions()
Disables buttons/actions.
Gui for editing ControlPoints in ipce application.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16