Isis Developer Reference
CnetEditorView.h
Go to the documentation of this file.
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 
18 #include "FileName.h"
19 #include "XmlStackedHandler.h"
20 
21 class QAction;
22 class QToolBar;
23 class QWidgetAction;
24 class QXmlStreamWriter;
25 
26 namespace Isis {
27  class Control;
28  class CnetEditorWidget;
29  class Directory;
30  class FileName;
31  class Project;
32  class ToolPad;
33  class XmlStackedHandlerReader;
34  class ProjectItemViewMenu;
35 
66 
67  Q_OBJECT
68 
69  public:
70  CnetEditorView(Directory *directory, Control *control, FileName configFile,
71  QWidget *parent = 0);
73 
75  Control *control();
76 
77  void load(XmlStackedHandlerReader *xmlReader);
78  void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const;
79 
80  private:
81  void createToolBars();
82  void createMenus();
83  void leaveEvent(QEvent *event);
84 
85 
92  class XmlHandler : public XmlStackedHandler {
93  public:
94  XmlHandler(CnetEditorView *cnetEditorView);
95  ~XmlHandler();
96 
97  virtual bool startElement(const QString &namespaceURI, const QString &localName,
98  const QString &qName, const QXmlAttributes &atts);
99  virtual bool endElement(const QString &namespaceURI, const QString &localName,
100  const QString &qName);
101 
102  private:
103  Q_DISABLE_COPY(XmlHandler);
104 
105  CnetEditorView *m_cnetEditorView;
106  };
107 
108  private:
109  QPointer<CnetEditorWidget> m_cnetEditorWidget;
110  QPointer<Control> m_control;
111 
112  QToolBar *m_permToolBar;
113  ProjectItemViewMenu *m_tablesMenu;
114 
115  };
116 }
117 
118 #endif // CNETEDITORVIEW_H
AbstractProjectItemView.h
FileName.h
QWidget
Isis::Directory
Definition: Directory.h:271
Isis::AbstractProjectItemView
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework.
Definition: AbstractProjectItemView.h:79
QList< QAction * >
Project.h
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::XmlStackedHandlerReader::pushContentHandler
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
Directory.h
CnetEditorWidget.h
Isis::XmlStackedHandler::startElement
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
Isis::CnetEditorView::cnetEditorWidget
CnetEditorWidget * cnetEditorWidget()
Returns the cnetEditorWidget.
Definition: CnetEditorView.cpp:163
CnetEditorView.h
Isis::Control
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:66
QToolBar
Isis::CnetEditorWidget
This widget provides full editing, filtering and viewing capabilities for the raw data in a control n...
Definition: CnetEditorWidget.h:96
Isis::XmlStackedHandlerReader
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
Isis::Project
The main project for ipce.
Definition: Project.h:289
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
ControlNet.h
Isis::CnetEditorView::load
void load(XmlStackedHandlerReader *xmlReader)
This method pushes a new XmlHandler into the parser stack.
Definition: CnetEditorView.cpp:183
Isis::CnetEditorView::~CnetEditorView
~CnetEditorView()
Destructor.
Definition: CnetEditorView.cpp:83
Isis::XmlStackedHandler::endElement
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Definition: XmlStackedHandler.cpp:55
Isis::CnetEditorView::control
Control * control()
@description Returns the Control displayed in the CnetEditorWidget
Definition: CnetEditorView.cpp:173
Isis::CnetEditorView
Ipce view containing the CnetEditorWidget.
Definition: CnetEditorView.h:65
Isis::CnetEditorView::save
void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const
This method saves the Controls object ids to the stream.
Definition: CnetEditorView.cpp:195
Isis::ProjectItemViewMenu
QMenu subclass that overrides the closeEvent.
Definition: ProjectItemViewMenu.h:26
Isis::XmlStackedHandler
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
Isis::AbstractProjectItemView::disableActions
virtual void disableActions()
Disables toolbars and toolpad actions.
Definition: AbstractProjectItemView.cpp:196
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Control.h
IsisDebug.h
QAction
XmlStackedHandlerReader.h
XmlStackedHandler.h
Isis::CnetEditorView::CnetEditorView
CnetEditorView(Directory *directory, Control *control, FileName configFile, QWidget *parent=0)
Constructor.
Definition: CnetEditorView.cpp:40
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
ProjectItemViewMenu.h