9#include "CnetEditorView.h"
15#include <QMapIterator>
26#include "ControlNet.h"
27#include "CnetEditorWidget.h"
31#include "ProjectItemViewMenu.h"
45 setCentralWidget(centralWidget);
46 QGridLayout *resultLayout =
new QGridLayout;
47 centralWidget->setLayout(resultLayout);
52 resultLayout->addWidget(m_cnetEditorWidget, 0, 0, 1, 2);
54 QTabWidget *treeViews =
new QTabWidget;
55 treeViews->addTab( m_cnetEditorWidget->pointTreeView(), tr(
"Point View") );
56 treeViews->addTab( m_cnetEditorWidget->serialTreeView(), tr(
"Serial View") );
57 treeViews->addTab( m_cnetEditorWidget->connectionTreeView(), tr(
"Connection View") );
58 resultLayout->addWidget(treeViews, 1, 0, 1, 1);
60 QTabWidget *filterViews =
new QTabWidget;
61 filterViews->addTab( m_cnetEditorWidget->pointFilterWidget(), tr(
"Filter Points and Measures") );
62 filterViews->addTab( m_cnetEditorWidget->serialFilterWidget(), tr(
"Filter Images and Points") );
63 filterViews->addTab( m_cnetEditorWidget->connectionFilterWidget(), tr(
"Filter Connections") );
64 resultLayout->addWidget(filterViews, 1, 1, 1, 1);
82 delete m_cnetEditorWidget;
96 QMapIterator< QAction *, QList< QString > > actionMapIter(actionMap);
102 while ( actionMapIter.hasNext() ) {
103 actionMapIter.next();
104 QAction *actionToAdd = actionMapIter.key();
107 if (actionToAdd->text() ==
"What's This?") {
126 actionMap = m_cnetEditorWidget->toolBarActions();
127 QMapIterator< QString, QList< QAction * > > actionIter(actionMap);
129 while (actionIter.hasNext()) {
131 QString objName = actionIter.key();
133 foreach (
QAction *action, actionList) {
161 return m_cnetEditorWidget;
184 stream.writeStartElement(
"cnetEditorView");
185 stream.writeAttribute(
"objectName", objectName());
186 stream.writeAttribute(
"id", m_control->id());
187 stream.writeEndElement();
virtual void disableActions()
Disables toolbars and toolpad actions.
AbstractProjectItemView(QWidget *parent=0)
Constructs the AbstractProjectItemView.
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 represents an ISIS control net in a project-based GUI interface.
File name manipulation and expansion.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
The main project for ipce.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.