Isis 3 Programmer Reference
CnetEditorView.h
1#ifndef CnetEditorView_h
2#define CnetEditorView_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QList>
13#include <QMap>
14#include <QPointer>
15#include <QSize>
16
17#include "AbstractProjectItemView.h"
18#include "FileName.h"
19
20class QAction;
21class QToolBar;
22class QWidgetAction;
23class QXmlStreamWriter;
24
25namespace Isis {
26 class Control;
27 class CnetEditorWidget;
28 class Directory;
29 class FileName;
30 class Project;
31 class ToolPad;
32 class ProjectItemViewMenu;
33
64
65 Q_OBJECT
66
67 public:
68 CnetEditorView(Directory *directory, Control *control, FileName configFile,
69 QWidget *parent = 0);
71
74
75 void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const;
76
77 private:
78 void createToolBars();
79 void createMenus();
80 void leaveEvent(QEvent *event);
81
82 private:
83 QPointer<CnetEditorWidget> m_cnetEditorWidget;
84 QPointer<Control> m_control;
85
88
89 };
90}
91
92#endif // CNETEDITORVIEW_H
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework.
Ipce view containing the CnetEditorWidget.
CnetEditorWidget * cnetEditorWidget()
Returns the cnetEditorWidget.
ProjectItemViewMenu * m_tablesMenu
View menu for storing actions.
CnetEditorView(Directory *directory, Control *control, FileName configFile, QWidget *parent=0)
Constructor.
QToolBar * m_permToolBar
The permanent tool bar.
~CnetEditorView()
Destructor.
void createMenus()
Uses the actions created by CnetEditorWidget, creates the tables menu, and puts the actions into the ...
void createToolBars()
Uses and adds the actions created by CnetEditorWidget to the view's toolbars Right now,...
void leaveEvent(QEvent *event)
Disables actions when cursor leaves the view.
void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const
This method saves the Controls object ids to the stream.
Control * control()
@description Returns the Control displayed in the CnetEditorWidget
This widget provides full editing, filtering and viewing capabilities for the raw data in a control n...
This represents an ISIS control net in a project-based GUI interface.
Definition Control.h:65
File name manipulation and expansion.
Definition FileName.h:100
The main project for ipce.
Definition Project.h:287
QMenu subclass that overrides the closeEvent.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16