Isis 3.0
| Home |
#include <Directory.h>
Inherits QObject.
Public Slots | |
void | cleanupCnetEditorViewWidgets () |
Removes pointers to deleted CnetEditorWidget objects. More... | |
void | cleanupCubeDnViewWidgets () |
Removes pointers to deleted CubeDnView objects. More... | |
void | cleanupFileListWidgets () |
Reomoves pointers to deleted ImageFileListWidget objects. More... | |
void | cleanupFootprint2DViewWidgets () |
Removes pointers to deleted Footprint2DView objects. More... | |
void | cleanupControlPointEditViewWidget () |
Delete the ControlPointEditWidget and set it's pointer to NULL. More... | |
void | cleanupMatrixViewWidgets () |
Removes pointers to deleted MatrixSceneWidget objects. More... | |
void | cleanupSensorInfoWidgets () |
Removes pointers to deleted SensorInfoWidget objects. More... | |
void | cleanupTargetInfoWidgets () |
Removes pointers to deleted TargetInfoWidget objects. More... | |
void | updateControlNetEditConnections () |
Updates the SIGNAL/SLOT connections for the cotrol net editor. More... | |
void | modifyControlPoint (ControlPoint *controlPoint) |
void | deleteControlPoint (ControlPoint *controlPoint) |
void | createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false) |
void | updateRecentProjects (Project *project) |
Adds a new Project object to the list of recent projects if it has not already been added. More... | |
Signals | |
void | newWidgetAvailable (QWidget *newWidget) |
void | controlPointAdded (QString newPointId) |
Public Member Functions | |
Directory (QObject *parent=0) | |
The Constructor. More... | |
~Directory () | |
The Destructor. More... | |
void | populateMainMenu (QMenuBar *) |
This method sets up the main menu at the top of the window (File, Settings, ...) More... | |
void | setHistoryContainer (QDockWidget *historyContainer) |
Set up the history info in the history dockable widget. More... | |
void | setWarningContainer (QDockWidget *warningContainer) |
Set up the warning info in the warning dockable widget. More... | |
void | setRecentProjectsList (QStringList recentProjects) |
Add recent projects to the recent projects list. More... | |
QStringList | recentProjectsList () |
Public accessor for the list of recent projects. More... | |
CnetEditorWidget * | addCnetEditorView (Control *network) |
Add the widget for the cnet editor view to the window. More... | |
CubeDnView * | addCubeDnView () |
Add the qview workspace to the window. More... | |
Footprint2DView * | addFootprint2DView () |
Add the qmos view widget to the window. More... | |
MatrixSceneWidget * | addMatrixView () |
Add the matrix view widget to the window. More... | |
TargetInfoWidget * | addTargetInfoView (TargetBodyQsp target) |
Add target body data view widget to the window. More... | |
SensorInfoWidget * | addSensorInfoView (GuiCameraQsp camera) |
Add sensor data view widget to the window. More... | |
ImageFileListWidget * | addImageFileListView () |
Add an imageFileList widget to the window. More... | |
ControlPointEditView * | addControlPointEditView () |
ProjectItemTreeView * | addProjectItemTreeView () |
Adds a ProjectItemTreeView to the window. More... | |
ProjectItemModel * | model () |
Gets the ProjectItemModel for this directory. More... | |
Project * | project () const |
Gets the Project for this directory. More... | |
QList< QAction * > | fileMenuActions () |
Get the list of actions that the Directory can provide for the file menu. More... | |
QList< QAction * > | projectMenuActions () |
Get the list of actions that the Directory can provide for the project menu. More... | |
QList< QAction * > | editMenuActions () |
Get the list of actions that the Directory can provide for the edit menu. More... | |
QList< QAction * > | viewMenuActions () |
Get the list of actions that the Directory can provide for the view menu. More... | |
QList< QAction * > | settingsMenuActions () |
Get the list of actions that the Directory can provide for the settings menu. More... | |
QList< QAction * > | helpMenuActions () |
Get the list of actions that the Directory can provide for the help menu. More... | |
QList< QAction * > | permToolBarActions () |
Get the list of actions that the Directory can provide for the permanent Tool Bar. More... | |
QList< QAction * > | activeToolBarActions () |
Get the list of actions that the Directory can provide for the active Tool Bar. More... | |
QList< QAction * > | toolPadActions () |
Get the list of actions that the Directory can provide for the Tool Pad. More... | |
QList< CnetEditorWidget * > | cnetEditorViews () |
Returns a list of all the control network views for this directory. More... | |
QList< CubeDnView * > | cubeDnViews () |
Accessor for the list of CubeDnViews currently available. More... | |
QList< Footprint2DView * > | footprint2DViews () |
Accessor for the list of Footprint2DViews currently available. More... | |
QList< MatrixSceneWidget * > | matrixViews () |
Accessor for the list of MatrixSceneWidgets currently available. More... | |
QList< SensorInfoWidget * > | sensorInfoViews () |
Accessor for the list of SensorInfoWidgets currently available. More... | |
QList< TargetInfoWidget * > | targetInfoViews () |
Accessor for the list of TargetInfoWidgets currently available. More... | |
QList< ImageFileListWidget * > | imageFileListViews () |
Accessor for the list of ImageFileListWidgets currently available. More... | |
QList< QProgressBar * > | progressBars () |
Gets the ControlNetEditor associated with this the Directory. More... | |
ControlPointEditView * | controlPointEditView () |
Gets the ControlPointEditWidget associated with the Directory. More... | |
ChipViewportsWidget * | controlPointChipViewports () |
template<typename DataType > | |
QList< QAction * > | supportedActions (DataType data) |
Returns a list of supported actions for a WorkOrder. More... | |
void | showWarning (QString text) |
Displays a Warning. More... | |
template<typename Data > | |
void | showWarning (QString text, Data data) |
Shows warning text for a Widget. More... | |
QWidget * | warningWidget () |
Returns a pointer to the warning widget. More... | |
QAction * | redoAction () |
Creates an Action to redo the last action. More... | |
QAction * | undoAction () |
Creates an Action to undo the last action. More... | |
void | load (XmlStackedHandlerReader *xmlReader) |
Loads the Directory from an XML file. More... | |
void | save (QXmlStreamWriter &stream, FileName newProjectRoot) const |
Save the directory to an XML file. More... | |
|
explicit |
The Constructor.
IException::Programmer | To handle the event that a Project cannot be created. |
IException::Programmer | To handle the event that a Directory cannot be created because the WorkOrders we are attempting to add to the Directory are corrupt. |
References _FILEINFO_, and Isis::IException::Programmer.
Isis::Directory::~Directory | ( | ) |
The Destructor.
Get the list of actions that the Directory can provide for the active Tool Bar.
CnetEditorWidget * Isis::Directory::addCnetEditorView | ( | Control * | network | ) |
Add the widget for the cnet editor view to the window.
network | Control net to edit. |
References cleanupCnetEditorViewWidgets(), Isis::CnetEditorWidget::connectionFilterWidget(), Isis::CnetEditorWidget::connectionTreeView(), Isis::Control::controlNet(), Isis::DisplayProperties::displayName(), Isis::Control::displayProperties(), Isis::FileName::expanded(), Isis::CnetEditorWidget::menuActions(), newWidgetAvailable(), Isis::CnetEditorWidget::pointFilterWidget(), Isis::CnetEditorWidget::pointTreeView(), Isis::CnetEditorWidget::serialFilterWidget(), and Isis::CnetEditorWidget::serialTreeView().
Referenced by Isis::CnetEditorViewWorkOrder::syncRedo().
ControlPointEditView * Isis::Directory::addControlPointEditView | ( | ) |
References Isis::Project::activeControl(), cleanupControlPointEditViewWidget(), Isis::Control::controlNet(), controlPointAdded(), controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), Isis::Control::fileName(), newWidgetAvailable(), project(), Isis::ControlPointEditWidget::setControl(), and Isis::ControlPointEditWidget::setSerialNumberList().
Referenced by createControlPoint(), deleteControlPoint(), and modifyControlPoint().
CubeDnView * Isis::Directory::addCubeDnView | ( | ) |
Add the qview workspace to the window.
References cleanupCubeDnViewWidgets(), controlPointAdded(), createControlPoint(), deleteControlPoint(), modifyControlPoint(), newWidgetAvailable(), and Isis::AbstractProjectItemView::setModel().
Referenced by Isis::CubeDnViewWorkOrder::syncRedo().
Footprint2DView * Isis::Directory::addFootprint2DView | ( | ) |
Add the qmos view widget to the window.
References cleanupFootprint2DViewWidgets(), controlPointAdded(), createControlPoint(), deleteControlPoint(), modifyControlPoint(), newWidgetAvailable(), and Isis::AbstractProjectItemView::setModel().
Referenced by Isis::Footprint2DViewWorkOrder::syncRedo().
ImageFileListWidget * Isis::Directory::addImageFileListView | ( | ) |
Add an imageFileList widget to the window.
References cleanupFileListWidgets(), and newWidgetAvailable().
Referenced by Isis::ImageFileListViewWorkOrder::syncRedo().
MatrixSceneWidget * Isis::Directory::addMatrixView | ( | ) |
Add the matrix view widget to the window.
References cleanupMatrixViewWidgets(), and newWidgetAvailable().
Referenced by Isis::MatrixViewWorkOrder::syncRedo().
ProjectItemTreeView * Isis::Directory::addProjectItemTreeView | ( | ) |
Adds a ProjectItemTreeView to the window.
References Isis::AbstractProjectItemView::setModel().
SensorInfoWidget * Isis::Directory::addSensorInfoView | ( | GuiCameraQsp | camera | ) |
Add sensor data view widget to the window.
References cleanupSensorInfoWidgets(), and newWidgetAvailable().
Referenced by Isis::SensorGetInfoWorkOrder::syncRedo().
TargetInfoWidget * Isis::Directory::addTargetInfoView | ( | TargetBodyQsp | target | ) |
Add target body data view widget to the window.
References cleanupTargetInfoWidgets(), and newWidgetAvailable().
Referenced by Isis::TargetGetInfoWorkOrder::syncRedo().
|
slot |
Removes pointers to deleted CnetEditorWidget objects.
Referenced by addCnetEditorView().
|
slot |
Delete the ControlPointEditWidget and set it's pointer to NULL.
Referenced by addControlPointEditView().
|
slot |
Removes pointers to deleted CubeDnView objects.
Referenced by addCubeDnView().
|
slot |
Reomoves pointers to deleted ImageFileListWidget objects.
Referenced by addImageFileListView().
|
slot |
Removes pointers to deleted Footprint2DView objects.
Referenced by addFootprint2DView().
|
slot |
Removes pointers to deleted MatrixSceneWidget objects.
Referenced by addMatrixView().
|
slot |
Removes pointers to deleted SensorInfoWidget objects.
Referenced by addSensorInfoView().
|
slot |
Removes pointers to deleted TargetInfoWidget objects.
Referenced by addTargetInfoView().
QList< CnetEditorWidget * > Isis::Directory::cnetEditorViews | ( | ) |
Returns a list of all the control network views for this directory.
Referenced by Isis::CnetEditorViewWorkOrder::syncUndo().
|
signal |
Referenced by addControlPointEditView(), addCubeDnView(), addFootprint2DView(), and updateControlNetEditConnections().
ChipViewportsWidget * Isis::Directory::controlPointChipViewports | ( | ) |
ControlPointEditView * Isis::Directory::controlPointEditView | ( | ) |
Gets the ControlPointEditWidget associated with the Directory.
Referenced by addControlPointEditView(), createControlPoint(), deleteControlPoint(), and modifyControlPoint().
|
slot |
QList< CubeDnView * > Isis::Directory::cubeDnViews | ( | ) |
Accessor for the list of CubeDnViews currently available.
Referenced by Isis::CubeDnViewWorkOrder::execute(), and Isis::CubeDnViewWorkOrder::syncRedo().
|
slot |
Get the list of actions that the Directory can provide for the edit menu.
Get the list of actions that the Directory can provide for the file menu.
QList< Footprint2DView * > Isis::Directory::footprint2DViews | ( | ) |
Accessor for the list of Footprint2DViews currently available.
Referenced by Isis::Footprint2DViewWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::syncRedo(), and Isis::Footprint2DViewWorkOrder::syncUndo().
Get the list of actions that the Directory can provide for the help menu.
QList< ImageFileListWidget * > Isis::Directory::imageFileListViews | ( | ) |
Accessor for the list of ImageFileListWidgets currently available.
Referenced by Isis::ImageFileListViewWorkOrder::execute(), Isis::ImageFileListViewWorkOrder::syncRedo(), and Isis::ImageFileListViewWorkOrder::syncUndo().
void Isis::Directory::load | ( | XmlStackedHandlerReader * | xmlReader | ) |
Loads the Directory from an XML file.
xmlReader | The reader that takes in and parses the XML file. |
References Isis::XmlStackedHandlerReader::pushContentHandler().
QList< MatrixSceneWidget * > Isis::Directory::matrixViews | ( | ) |
Accessor for the list of MatrixSceneWidgets currently available.
Referenced by Isis::MatrixViewWorkOrder::execute(), and Isis::MatrixViewWorkOrder::syncUndo().
ProjectItemModel * Isis::Directory::model | ( | ) |
Gets the ProjectItemModel for this directory.
Referenced by Isis::RemoveImagesWorkOrder::syncRedo(), Isis::CubeDnViewWorkOrder::syncRedo(), and Isis::Footprint2DViewWorkOrder::syncRedo().
|
slot |
|
signal |
Get the list of actions that the Directory can provide for the permanent Tool Bar.
void Isis::Directory::populateMainMenu | ( | QMenuBar * | menuBar | ) |
This method sets up the main menu at the top of the window (File, Settings, ...)
menuBar | The menu area to populate. |
References Isis::FileName::fileExists(), and project().
QList< QProgressBar * > Isis::Directory::progressBars | ( | ) |
Project * Isis::Directory::project | ( | ) | const |
Gets the Project for this directory.
Referenced by addControlPointEditView(), Isis::MosaicSceneItem::contextMenuEvent(), Isis::ImageTreeWidget::contextMenuEvent(), Isis::MosaicSceneWidget::contextMenuEvent(), Isis::ControlPointEditWidget::createControlPoint(), Isis::CubeDnView::CubeDnView(), populateMainMenu(), redoAction(), save(), setHistoryContainer(), Isis::MosaicSceneWidget::supportedActions(), and undoAction().
Get the list of actions that the Directory can provide for the project menu.
QStringList Isis::Directory::recentProjectsList | ( | ) |
Public accessor for the list of recent projects.
QAction * Isis::Directory::redoAction | ( | ) |
Creates an Action to redo the last action.
References project(), and Isis::Project::undoStack().
void Isis::Directory::save | ( | QXmlStreamWriter & | stream, |
FileName | newProjectRoot | ||
) | const |
Save the directory to an XML file.
stream | The XML stream writer |
newProjectRoot | The FileName of the project this Directory is attached to. |
References Isis::Footprint2DView::mosaicSceneWidget(), project(), Isis::ImageFileListWidget::save(), Isis::CubeDnView::save(), and Isis::MosaicSceneWidget::save().
QList< SensorInfoWidget * > Isis::Directory::sensorInfoViews | ( | ) |
Accessor for the list of SensorInfoWidgets currently available.
Referenced by Isis::SensorGetInfoWorkOrder::isExecutable().
void Isis::Directory::setHistoryContainer | ( | QDockWidget * | historyContainer | ) |
Set up the history info in the history dockable widget.
historyContainer | The widget to fill. |
References project().
void Isis::Directory::setRecentProjectsList | ( | QStringList | recentProjects | ) |
Add recent projects to the recent projects list.
recentProjects | List of projects to add to list. |
Get the list of actions that the Directory can provide for the settings menu.
void Isis::Directory::setWarningContainer | ( | QDockWidget * | warningContainer | ) |
Set up the warning info in the warning dockable widget.
warningContainer | The widget to fill. |
void Isis::Directory::showWarning | ( | QString | text | ) |
Displays a Warning.
text | The text to be displayed as a warning. |
Referenced by Isis::Project::open(), and Isis::Project::warn().
|
inline |
Shows warning text for a Widget.
text | The warning text. |
Data | The Widget object we are passing the warning to. |
|
inline |
Returns a list of supported actions for a WorkOrder.
data | The WorkOrder type we are using. |
References Isis::WorkOrder::clone(), Isis::WorkOrder::isExecutable(), and Isis::WorkOrder::setData().
Referenced by Isis::MosaicSceneItem::contextMenuEvent(), Isis::ImageTreeWidget::contextMenuEvent(), and Isis::MosaicSceneWidget::contextMenuEvent().
QList< TargetInfoWidget * > Isis::Directory::targetInfoViews | ( | ) |
Accessor for the list of TargetInfoWidgets currently available.
Referenced by Isis::TargetGetInfoWorkOrder::isExecutable().
Get the list of actions that the Directory can provide for the Tool Pad.
QAction * Isis::Directory::undoAction | ( | ) |
Creates an Action to undo the last action.
References project(), and Isis::Project::undoStack().
|
slot |
Updates the SIGNAL/SLOT connections for the cotrol net editor.
References controlPointAdded(), and deleteControlPoint().
|
slot |
Adds a new Project object to the list of recent projects if it has not already been added.
project | A pointer to the Project to add. |
References Isis::Project::projectRoot().
Get the list of actions that the Directory can provide for the view menu.
QWidget * Isis::Directory::warningWidget | ( | ) |
Returns a pointer to the warning widget.