26 #include <QMainWindow> 50 class AbstractProjectItemView;
51 class BundleObservation;
52 class BundleObservationView;
53 class ChipViewportsWidget;
55 class CnetEditorWidget;
58 class ControlPointEditView;
59 class ControlHealthMonitorView;
62 class Footprint2DView;
63 class HistoryTreeWidget;
64 class ImageFileListWidget;
65 class JigsawRunWidget;
66 class MatrixSceneWidget;
67 class MosaicSceneWidget;
70 class ProjectItemModel;
71 class ProjectItemTreeView;
72 class SensorInfoWidget;
74 class TargetInfoWidget;
75 class TemplateEditorWidget;
76 class WarningTreeWidget;
358 template <
typename DataType>
375 foreach (
WorkOrder *workOrder, m_workOrders) {
379 results.append(clone);
394 template <
typename Data>
405 void save(QXmlStreamWriter &stream,
FileName newProjectRoot)
const;
442 bool isGroundSource =
false);
449 void initiateRenameProjectWorkOrder(QString projectName);
450 void newActiveControl(
bool newControl);
451 void reloadActiveControlInCnetEditorView();
464 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
465 const QString &qName,
const QXmlAttributes &atts);
468 Q_DISABLE_COPY(XmlHandler);
485 template <
typename WorkOrderType>
486 WorkOrderType *createWorkOrder() {
487 WorkOrderType *newWorkOrder =
new WorkOrderType(m_project);
488 m_workOrders.append(newWorkOrder);
496 void initializeActions();
498 QPointer<ProjectItemModel> m_projectItemModel;
501 QPointer<HistoryTreeWidget> m_historyTreeWidget;
502 QPointer<Project> m_project;
503 QPointer<WarningTreeWidget> m_warningTreeWidget;
504 QPointer<JigsawRunWidget> m_jigsawRunWidget;
514 QPointer<ControlHealthMonitorView> m_controlHealthMonitorView;
515 QPointer <ControlPointEditView> m_controlPointEditViewWidget;
528 QPointer<WorkOrder> m_exportControlNetWorkOrder;
529 QPointer<WorkOrder> m_exportImagesWorkOrder;
530 QPointer<WorkOrder> m_importControlNetWorkOrder;
531 QPointer<WorkOrder> m_importImagesWorkOrder;
532 QPointer<WorkOrder> m_importShapesWorkOrder;
533 QPointer<WorkOrder> m_openProjectWorkOrder;
534 QPointer<WorkOrder> m_saveProjectWorkOrder;
535 QPointer<WorkOrder> m_saveProjectAsWorkOrder;
536 QPointer<WorkOrder> m_openRecentProjectWorkOrder;
537 QPointer<WorkOrder> m_closeProjectWorkOrder;
538 QPointer<WorkOrder> m_importMapTemplateWorkOrder;
539 QPointer<WorkOrder> m_importRegistrationTemplateWorkOrder;
541 QPointer<WorkOrder> m_runJigsawWorkOrder;
542 QPointer<WorkOrder> m_renameProjectWorkOrder;
555 QMultiMap<Control*, CnetEditorView *> m_controlMap;
557 QString m_editPointId;
559 bool m_recentProjectsLoaded;
563 #endif // Directory_H This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:79
QList< QAction * > editMenuActions()
Get the list of actions that the Directory can provide for the edit menu.
Definition: Directory.cpp:238
QList< CnetEditorView * > cnetEditorViews()
Returns a list of all the control network views for this directory.
Definition: Directory.cpp:1334
QList< MatrixSceneWidget * > matrixViews()
Accessor for the list of MatrixSceneWidgets currently available.
Definition: Directory.cpp:1364
QList< QAction * > projectMenuActions()
Get the list of actions that the Directory can provide for the project menu.
Definition: Directory.cpp:229
QList< QAction * > toolPadActions()
Get the list of actions that the Directory can provide for the Tool Pad.
Definition: Directory.cpp:292
void cleanupMatrixViewWidgets(QObject *)
Removes pointers to deleted MatrixSceneWidget objects.
Definition: Directory.cpp:1248
Ipce view containing the CnetEditorWidget.
Definition: CnetEditorView.h:78
void modifyControlPoint(ControlPoint *controlPoint, QString serialNumber="")
Slot that is connected from a left mouse button operation on views.
Definition: Directory.cpp:1850
QList< QAction * > activeToolBarActions()
Get the list of actions that the Directory can provide for the active Tool Bar.
Definition: Directory.cpp:283
The main project for ipce.
Definition: Project.h:289
QList< QAction * > supportedActions(DataType data)
Returns a list of supported actions for a WorkOrder.
Definition: Directory.h:359
ImageFileListWidget * addImageFileListView(QString objectName="")
Add an imageFileList widget to the window.
Definition: Directory.cpp:1040
File name manipulation and expansion.
Definition: FileName.h:116
void save(QXmlStreamWriter &stream, FileName newProjectRoot) const
Save the directory to an XML file.
Definition: Directory.cpp:1537
QList< ImageFileListWidget * > imageFileListViews()
Accessor for the list of ImageFileListWidgets currently available.
Definition: Directory.cpp:1439
QList< TemplateEditorWidget * > templateEditorViews()
Accessor for the list of TemplateEditorWidgets currently available.
Definition: Directory.cpp:1409
QStringList recentProjectsList()
Public accessor for the list of recent projects.
Definition: Directory.cpp:607
void createControlPoint(double latitude, double longitude, Cube *cube=0, bool isGroundSource=false)
Slot that is connected from a right mouse button operation on views.
Definition: Directory.cpp:1903
~Directory()
The Destructor.
Definition: Directory.cpp:205
void cleanupTemplateEditorWidgets(QObject *)
Removes pointers to deleted TemplateEditorWidget objects.
Definition: Directory.cpp:1290
void cleanupTargetInfoWidgets(QObject *)
Removes pointers to deleted TargetInfoWidget objects.
Definition: Directory.cpp:1276
void cleanupFootprint2DViewWidgets(QObject *)
Removes pointers to deleted Footprint2DView objects.
Definition: Directory.cpp:1219
void cleanupFileListWidgets(QObject *)
Removes pointers to deleted ImageFileListWidget objects.
Definition: Directory.cpp:1205
TargetInfoWidget * addTargetInfoView(TargetBodyQsp target)
Add target body data view widget to the window.
Definition: Directory.cpp:959
void cleanupSensorInfoWidgets(QObject *)
Removes pointers to deleted SensorInfoWidget objects.
Definition: Directory.cpp:1262
void cleanupJigsawRunWidget(QObject *)
Definition: Directory.cpp:1302
MatrixSceneWidget * addMatrixView()
Add the matrix view widget to the window.
Definition: Directory.cpp:938
void showWarning(QString text)
Displays a Warning.
Definition: Directory.cpp:1495
void cleanupCubeDnViewWidgets(QObject *)
Removes pointers to deleted CubeDnView objects.
Definition: Directory.cpp:1191
JigsawRunWidget * addJigsawRunWidget()
Definition: Directory.cpp:996
void closeView(QWidget *widget)
bool controlUsedInCnetEditorWidget(Control *control)
Return true if control is not currently being viewed in a CnetEditorWidget
Definition: Directory.cpp:1175
Definition: Template.h:44
QList< QAction * > viewMenuActions()
Get the list of actions that the Directory can provide for the view menu.
Definition: Directory.cpp:247
void clean()
Cleans directory of everything to do with the current project.
Definition: Directory.cpp:303
void cleanupControlPointEditViewWidget(QObject *)
Delete the ControlPointEditWidget and set it's pointer to NULL.
Definition: Directory.cpp:1233
void newDockAvailable(QMainWindow *newWidget)
ControlPointEditView * controlPointEditView()
Gets the ControlPointEditWidget associated with the Directory.
Definition: Directory.cpp:1453
void setRecentProjectsList(QStringList recentProjects)
Add recent projects to the recent projects list.
Definition: Directory.cpp:549
QList< TargetInfoWidget * > targetInfoViews()
Accessor for the list of TargetInfoWidgets currently available.
Definition: Directory.cpp:1394
QString editPointId()
Return the current control point id loaded in the ControlPointEditWidget.
Definition: Directory.cpp:1923
ControlHealthMonitorView * addControlHealthMonitorView()
Definition: Directory.cpp:828
ControlPointEditView * addControlPointEditView()
Definition: Directory.cpp:851
View for displaying BundleObservation CSV files.
Definition: BundleObservationView.h:55
View for editing a single ControlPoint.
Definition: ControlPointEditView.h:66
QList< QAction * > permToolBarActions()
Get the list of actions that the Directory can provide for the permanent Tool Bar.
Definition: Directory.cpp:274
Provides access to data stored in a Project through Qt's model-view framework.
Definition: ProjectItemModel.h:146
QAction * undoAction()
Creates an Action to undo the last action.
Definition: Directory.cpp:1514
void load(XmlStackedHandlerReader *xmlReader)
Loads the Directory from an XML file.
Definition: Directory.cpp:1523
QList< Footprint2DView * > footprint2DViews()
Accessor for the list of Footprint2DViews currently available.
Definition: Directory.cpp:1424
virtual bool isExecutable(Context)
Re-implement this method if your work order utilizes controls for data in order to operate...
Definition: WorkOrder.cpp:196
QList< QAction * > settingsMenuActions()
Get the list of actions that the Directory can provide for the settings menu.
Definition: Directory.cpp:256
void updateRecentProjects()
Loads and displays a list of recently opened projects in the file menu.
Definition: Directory.cpp:332
QList< QAction * > fileMenuActions()
Get the list of actions that the Directory can provide for the file menu.
Definition: Directory.cpp:220
Directory(QObject *parent=0)
The Constructor.
Definition: Directory.cpp:119
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
Definition: Directory.cpp:1105
ControlHealthMonitorView * controlHealthMonitorView()
Definition: Directory.cpp:823
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
ProjectItemTreeView * addProjectItemTreeView()
Adds a ProjectItemTreeView to the window.
Definition: Directory.cpp:1067
QList< SensorInfoWidget * > sensorInfoViews()
Accessor for the list of SensorInfoWidgets currently available.
Definition: Directory.cpp:1379
QAction * redoAction()
Creates an Action to redo the last action.
Definition: Directory.cpp:1505
void cleanupBundleObservationViews(QObject *)
Removes pointers to deleted BundleObservationView objects.
Definition: Directory.cpp:1122
Footprint2DView * addFootprint2DView(QString objectName="")
Add the qmos view widget to the window.
Definition: Directory.cpp:771
void activeControlModified()
QList< QProgressBar * > progressBars()
Gets the ControlNetEditor associated with this the Directory.
Definition: Directory.cpp:1485
BundleObservationView * addBundleObservationView(FileItemQsp fileItem)
Add the BundleObservationView to the window.
Definition: Directory.cpp:616
QList< BundleObservationView * > bundleObservationViews()
A ProjectItemTreeView displays items from a ProjectItemProxyModel in a tree structure.
Definition: ProjectItemTreeView.h:70
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:112
void setWarningContainer(QDockWidget *warningContainer)
Set up the warning info in the warning dockable widget.
Definition: Directory.cpp:537
QList< CubeDnView * > cubeDnViews()
Accessor for the list of CubeDnViews currently available.
Definition: Directory.cpp:1349
A single control point.
Definition: ControlPoint.h:369
void setHistoryContainer(QDockWidget *historyContainer)
Set up the history info in the history dockable widget.
Definition: Directory.cpp:525
virtual void setData(Context)
Sets the context data for this WorkOrder.
Definition: WorkOrder.cpp:262
void cleanupCnetEditorViewWidgets(QObject *)
Removes pointers to deleted Control Health Monitor objects.
Definition: Directory.cpp:1149
QWidget * warningWidget()
Returns a pointer to the warning widget.
Definition: Directory.cpp:1114
virtual WorkOrder * clone() const =0
View that displays cubes in a QView-like way.
Definition: CubeDnView.h:111
void updateControlNetEditConnections()
Updates the SIGNAL/SLOT connections for the cotrol net editor.
Definition: Directory.cpp:1816
SensorInfoWidget * addSensorInfoView(GuiCameraQsp camera)
Add sensor data view widget to the window.
Definition: Directory.cpp:1018
QList< QAction * > helpMenuActions()
Get the list of actions that the Directory can provide for the help menu.
Definition: Directory.cpp:265
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Project * project() const
Gets the Project for this directory.
Definition: Directory.cpp:1325
JigsawRunWidget * jigsawRunWidget()
Definition: Directory.cpp:1459
void showWarning(QString text, Data data)
Shows warning text for a Widget.
Definition: Directory.h:395
View for the Control Net Health Monitor.
Definition: ControlHealthMonitorView.h:56
CnetEditorView * addCnetEditorView(Control *control, QString objectName="")
Add the widget for the cnet editor view to the window.
Definition: Directory.cpp:670
Definition: CubeIoHandler.h:39
Definition: Directory.h:285
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:25
TemplateEditorWidget * addTemplateEditorView(Template *currentTemplate)
Add template editor view widget to the window.
Definition: Directory.cpp:980
void newWidgetAvailable(QWidget *newWidget)
IO Handler for Isis Cubes.
Definition: Cube.h:170
CubeDnView * addCubeDnView(QString objectName="")
Add the qview workspace to the window.
Definition: Directory.cpp:720
void deleteControlPoint(ControlPoint *controlPoint)
Slot that is connected from a middle mouse button operation on views.
Definition: Directory.cpp:1872