![]() |
Isis 3 Programmer Reference
|
#include <Directory.h>
Classes | |
class | XmlHandler |
Public Slots | |
void | cleanupBundleObservationViews (QObject *) |
Removes pointers to deleted BundleObservationView objects. More... | |
void | cleanupCnetEditorViewWidgets (QObject *) |
Removes pointers to deleted CnetEditorWidget objects. More... | |
void | cleanupCubeDnViewWidgets (QObject *) |
Removes pointers to deleted CubeDnView objects. More... | |
void | cleanupFileListWidgets (QObject *) |
Removes pointers to deleted ImageFileListWidget objects. More... | |
void | cleanupFootprint2DViewWidgets (QObject *) |
Removes pointers to deleted Footprint2DView objects. More... | |
void | cleanupControlPointEditViewWidget (QObject *) |
Delete the ControlPointEditWidget and set it's pointer to NULL. More... | |
void | cleanupMatrixViewWidgets (QObject *) |
Removes pointers to deleted MatrixSceneWidget objects. More... | |
void | cleanupSensorInfoWidgets (QObject *) |
Removes pointers to deleted SensorInfoWidget objects. More... | |
void | cleanupTargetInfoWidgets (QObject *) |
Removes pointers to deleted TargetInfoWidget objects. More... | |
void | cleanupTemplateEditorWidgets (QObject *) |
Removes pointers to deleted TemplateEditorWidget objects. More... | |
void | cleanupJigsawRunWidget (QObject *) |
void | updateControlNetEditConnections () |
Updates the SIGNAL/SLOT connections for the cotrol net editor. More... | |
void | modifyControlPoint (ControlPoint *controlPoint, QString serialNumber="") |
Slot that is connected from a left mouse button operation on views. More... | |
void | deleteControlPoint (ControlPoint *controlPoint) |
Slot that is connected from a middle mouse button operation on views. More... | |
void | createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false) |
Slot that is connected from a right mouse button operation on views. More... | |
void | updateRecentProjects (Project *project) |
Adds a new Project object to the list of recent projects if it has not already been added. More... | |
void | updateRecentProjects () |
Loads and displays a list of recently opened projects in the file menu. More... | |
Signals | |
void | directoryCleaned () |
void | newWarning () |
void | newDockAvailable (QMainWindow *newWidget) |
void | newWidgetAvailable (QWidget *newWidget) |
void | closeView (QWidget *widget) |
void | cnetModified () |
void | activeControlModified () |
void | redrawMeasures () |
void | cleanProject (bool) |
Public Member Functions | |
Directory (QObject *parent=0) | |
The Constructor. More... | |
~Directory () | |
The Destructor. More... | |
void | clean () |
Cleans directory of everything to do with the current project. 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... | |
BundleObservationView * | addBundleObservationView (FileItemQsp fileItem) |
Add the BundleObservationView to the window. More... | |
ControlHealthMonitorView * | addControlHealthMonitorView () |
CnetEditorView * | addCnetEditorView (Control *control, QString objectName="") |
Add the widget for the cnet editor view to the window. More... | |
CubeDnView * | addCubeDnView (QString objectName="") |
Add the qview workspace to the window. More... | |
Footprint2DView * | addFootprint2DView (QString objectName="") |
Add the qmos view widget to the window. More... | |
JigsawRunWidget * | addJigsawRunWidget () |
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... | |
TemplateEditorWidget * | addTemplateEditorView (Template *currentTemplate) |
Add template editor view widget to the window. More... | |
SensorInfoWidget * | addSensorInfoView (GuiCameraQsp camera) |
Add sensor data view widget to the window. More... | |
ImageFileListWidget * | addImageFileListView (QString objectName="") |
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< BundleObservationView * > | bundleObservationViews () |
QList< CnetEditorView * > | 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< TemplateEditorWidget * > | templateEditorViews () |
Accessor for the list of TemplateEditorWidgets 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... | |
ControlHealthMonitorView * | controlHealthMonitorView () |
ControlPointEditView * | controlPointEditView () |
Gets the ControlPointEditWidget associated with the Directory. More... | |
JigsawRunWidget * | jigsawRunWidget () |
bool | controlUsedInCnetEditorWidget (Control *control) |
@description Return true if control is not currently being viewed in a CnetEditorWidget More... | |
QString | editPointId () |
Return the current control point id loaded in the ControlPointEditWidget. More... | |
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... | |
Private Slots | |
void | initiateRenameProjectWorkOrder (QString projectName) |
Slot which is connected to the model's signal, projectNameEdited, which is emitted when the user double-clicks the project name, the parent node located on the ProjectTreeView. More... | |
void | newActiveControl (bool newControl) |
@description This slot is connected from the signal activeControlSet(bool) emitted from Project. More... | |
void | reloadActiveControlInCnetEditorView () |
@description This slot was created specifically for the CnetEditorWidgets when user chooses a new active control and wants to discard any edits in the old active control. More... | |
Private Member Functions | |
Directory (const Directory &other) | |
Directory & | operator= (const Directory &rhs) |
template<typename WorkOrderType > | |
WorkOrderType * | createWorkOrder () |
Create a work order, append it to m_workOrders, and return it. More... | |
void | initializeActions () |
Initializes the actions that the Directory can provide to a main window. More... | |
Static Private Member Functions | |
static QList< QAction * > | restructureActions (QList< QPair< QString, QList< QAction * > > >) |
Reformat actionPairings to be user friendly for use in menus. More... | |
static bool | actionTextLessThan (QAction *lhs, QAction *rhs) |
This is for determining the ordering of the descriptive text of for the actions. More... | |
Definition at line 271 of file Directory.h.
|
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. |
Definition at line 105 of file Directory.cpp.
References initializeActions(), m_closeProjectWorkOrder, m_editPointId, m_exportControlNetWorkOrder, m_exportImagesWorkOrder, m_importControlNetWorkOrder, m_importImagesWorkOrder, m_importMapTemplateWorkOrder, m_importRegistrationTemplateWorkOrder, m_importShapesWorkOrder, m_openProjectWorkOrder, m_project, m_projectItemModel, m_renameProjectWorkOrder, m_runJigsawWorkOrder, m_saveProjectAsWorkOrder, m_saveProjectWorkOrder, newActiveControl(), Isis::IException::Programmer, project(), reloadActiveControlInCnetEditorView(), and updateRecentProjects().
Isis::Directory::~Directory | ( | ) |
The Destructor.
Definition at line 191 of file Directory.cpp.
References m_project, and m_workOrders.
This is for determining the ordering of the descriptive text of for the actions.
Definition at line 1793 of file Directory.cpp.
Referenced by restructureActions().
Get the list of actions that the Directory can provide for the active Tool Bar.
Definition at line 269 of file Directory.cpp.
References m_activeToolBarActions.
BundleObservationView * Isis::Directory::addBundleObservationView | ( | FileItemQsp | fileItem | ) |
Add the BundleObservationView to the window.
Definition at line 602 of file Directory.cpp.
References cleanupBundleObservationViews(), m_project, and Isis::FileName::originalPath().
Referenced by Isis::BundleObservationViewWorkOrder::execute().
CnetEditorView * Isis::Directory::addCnetEditorView | ( | Control * | control, |
QString | objectName = "" |
||
) |
Add the widget for the cnet editor view to the window.
Control | to edit. |
Definition at line 656 of file Directory.cpp.
References cleanupCnetEditorViewWidgets(), Isis::CnetEditorView::cnetEditorWidget(), Isis::TableView::content(), Isis::DisplayProperties::displayName(), Isis::Control::displayProperties(), m_cnetEditorViewWidgets, m_controlMap, m_project, Isis::CnetEditorWidget::measureTableView(), modifyControlPoint(), Isis::CnetEditorWidget::pointTableView(), project(), and Isis::TableViewContent::setActiveControlNet().
Referenced by Isis::CnetEditorViewWorkOrder::execute(), and reloadActiveControlInCnetEditorView().
CubeDnView * Isis::Directory::addCubeDnView | ( | QString | objectName = "" | ) |
Add the qview workspace to the window.
Definition at line 706 of file Directory.cpp.
References cleanupCubeDnViewWidgets(), createControlPoint(), deleteControlPoint(), m_cubeDnViewWidgets, m_project, m_projectItemModel, modifyControlPoint(), project(), and Isis::AbstractProjectItemView::setModel().
Referenced by Isis::CubeDnViewWorkOrder::execute(), and Isis::ControlHealthMonitorView::openImageEditor().
Footprint2DView * Isis::Directory::addFootprint2DView | ( | QString | objectName = "" | ) |
Add the qmos view widget to the window.
Definition at line 757 of file Directory.cpp.
References cleanupFootprint2DViewWidgets(), createControlPoint(), deleteControlPoint(), m_footprint2DViewWidgets, m_project, m_projectItemModel, modifyControlPoint(), Isis::Footprint2DView::mosaicSceneWidget(), project(), and Isis::AbstractProjectItemView::setModel().
Referenced by Isis::Footprint2DViewWorkOrder::execute().
ImageFileListWidget * Isis::Directory::addImageFileListView | ( | QString | objectName = "" | ) |
Add an imageFileList widget to the window.
Definition at line 1026 of file Directory.cpp.
References cleanupFileListWidgets(), and m_fileListWidgets.
Referenced by Isis::ImageFileListViewWorkOrder::execute().
MatrixSceneWidget * Isis::Directory::addMatrixView | ( | ) |
Add the matrix view widget to the window.
Definition at line 924 of file Directory.cpp.
References cleanupMatrixViewWidgets(), and m_matrixViewWidgets.
Referenced by Isis::MatrixViewWorkOrder::execute().
ProjectItemTreeView * Isis::Directory::addProjectItemTreeView | ( | ) |
Adds a ProjectItemTreeView to the window.
Definition at line 1053 of file Directory.cpp.
References initiateRenameProjectWorkOrder(), m_project, m_projectItemModel, and Isis::AbstractProjectItemView::setModel().
SensorInfoWidget * Isis::Directory::addSensorInfoView | ( | GuiCameraQsp | camera | ) |
Add sensor data view widget to the window.
Definition at line 1004 of file Directory.cpp.
References cleanupSensorInfoWidgets(), and m_sensorInfoWidgets.
Referenced by Isis::SensorGetInfoWorkOrder::execute().
TargetInfoWidget * Isis::Directory::addTargetInfoView | ( | TargetBodyQsp | target | ) |
Add target body data view widget to the window.
Definition at line 945 of file Directory.cpp.
References cleanupTargetInfoWidgets(), and m_targetInfoWidgets.
Referenced by Isis::TargetGetInfoWorkOrder::execute().
TemplateEditorWidget * Isis::Directory::addTemplateEditorView | ( | Template * | currentTemplate | ) |
Add template editor view widget to the window.
Definition at line 966 of file Directory.cpp.
References cleanupTemplateEditorWidgets(), Isis::Template::fileName(), m_templateEditorWidgets, and Isis::FileName::name().
Referenced by Isis::TemplateEditViewWorkOrder::execute().
void Isis::Directory::clean | ( | ) |
Cleans directory of everything to do with the current project.
This function was implemented to be called from the Project::clear function to allow for a new project to be opened in IPCE.
Definition at line 289 of file Directory.cpp.
References m_cnetEditorViewWidgets, m_cubeDnViewWidgets, m_fileListWidgets, m_footprint2DViewWidgets, m_historyTreeWidget, m_jigsawRunWidget, m_matrixViewWidgets, m_projectItemModel, m_sensorInfoWidgets, m_targetInfoWidgets, m_templateEditorWidgets, and m_warningTreeWidget.
Referenced by Isis::Project::clear().
|
slot |
Removes pointers to deleted BundleObservationView objects.
Definition at line 1108 of file Directory.cpp.
References m_project.
Referenced by addBundleObservationView().
|
slot |
Removes pointers to deleted CnetEditorWidget objects.
Definition at line 1135 of file Directory.cpp.
References Isis::Project::activeControl(), Isis::Control::closeControlNet(), m_cnetEditorViewWidgets, m_controlMap, m_project, and project().
Referenced by addCnetEditorView().
|
slot |
Delete the ControlPointEditWidget and set it's pointer to NULL.
Definition at line 1219 of file Directory.cpp.
References controlPointEditView(), and m_project.
|
slot |
Removes pointers to deleted CubeDnView objects.
Definition at line 1177 of file Directory.cpp.
References m_cubeDnViewWidgets, and m_project.
Referenced by addCubeDnView().
|
slot |
Removes pointers to deleted ImageFileListWidget objects.
Definition at line 1191 of file Directory.cpp.
References m_fileListWidgets, and m_project.
Referenced by addImageFileListView().
|
slot |
Removes pointers to deleted Footprint2DView objects.
Definition at line 1205 of file Directory.cpp.
References m_footprint2DViewWidgets, and m_project.
Referenced by addFootprint2DView().
|
slot |
Removes pointers to deleted MatrixSceneWidget objects.
Definition at line 1234 of file Directory.cpp.
References m_matrixViewWidgets, and m_project.
Referenced by addMatrixView().
|
slot |
Removes pointers to deleted SensorInfoWidget objects.
Definition at line 1248 of file Directory.cpp.
References m_project, and m_sensorInfoWidgets.
Referenced by addSensorInfoView().
|
slot |
Removes pointers to deleted TargetInfoWidget objects.
Definition at line 1262 of file Directory.cpp.
References m_project, and m_targetInfoWidgets.
Referenced by addTargetInfoView().
|
slot |
Removes pointers to deleted TemplateEditorWidget objects.
Definition at line 1276 of file Directory.cpp.
References m_project, and m_templateEditorWidgets.
Referenced by addTemplateEditorView().
QList< CnetEditorView * > Isis::Directory::cnetEditorViews | ( | ) |
Returns a list of all the control network views for this directory.
Definition at line 1320 of file Directory.cpp.
References m_cnetEditorViewWidgets.
Referenced by Isis::CnetEditorViewWorkOrder::undoExecution().
ControlPointEditView * Isis::Directory::controlPointEditView | ( | ) |
Gets the ControlPointEditWidget associated with the Directory.
Definition at line 1439 of file Directory.cpp.
Referenced by cleanupControlPointEditViewWidget(), createControlPoint(), deleteControlPoint(), Isis::ControlNetTool::drawAllMeasurements(), Isis::ControlNetTool::drawGroundMeasures(), and modifyControlPoint().
bool Isis::Directory::controlUsedInCnetEditorWidget | ( | Control * | control | ) |
@description Return true if control is not currently being viewed in a CnetEditorWidget
Definition at line 1161 of file Directory.cpp.
References m_controlMap.
|
slot |
Slot that is connected from a right mouse button operation on views.
latitude | (double) Latitude location where the control point was created |
longitude | (double) Longitude location where the control point was created |
cube | (Cube *) The Cube in the CubeDnView that was used to select location for new control point. This parameter will be empty if control point was selected from Footprint2DView. |
isGroundSource | (bool) Indicates whether the Cube in the CubeDnView that was used to select location for new control point is a ground source. This parameter will be empty if control point was selected from Footprint2DView. |
Definition at line 1889 of file Directory.cpp.
References controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), Isis::ControlPointEditWidget::createControlPoint(), and m_editPointId.
Referenced by addCubeDnView(), and addFootprint2DView().
|
inlineprivate |
Create a work order, append it to m_workOrders, and return it.
Example: createWorkOrder<ImageFileListViewWorkOrder>(); This will create a new ImageFileListViewWorkOrder and append it to m_workOrders.
Definition at line 472 of file Directory.h.
References m_project, and m_workOrders.
QList< CubeDnView * > Isis::Directory::cubeDnViews | ( | ) |
Accessor for the list of CubeDnViews currently available.
Definition at line 1335 of file Directory.cpp.
References m_cubeDnViewWidgets.
Referenced by Isis::CubeDnViewWorkOrder::execute(), and Isis::CubeDnViewWorkOrder::setupExecution().
|
slot |
Slot that is connected from a middle mouse button operation on views.
controlPoint | (ControlPoint *) The control point selected from view for editing |
Definition at line 1858 of file Directory.cpp.
References controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), Isis::ControlPointEditWidget::deletePoint(), Isis::ControlPoint::GetId(), and m_editPointId.
Referenced by addCubeDnView(), addFootprint2DView(), and updateControlNetEditConnections().
Get the list of actions that the Directory can provide for the edit menu.
Definition at line 224 of file Directory.cpp.
References m_editMenuActions.
QString Isis::Directory::editPointId | ( | ) |
Return the current control point id loaded in the ControlPointEditWidget.
Definition at line 1909 of file Directory.cpp.
References m_editPointId.
Referenced by Isis::ControlPointGraphicsItem::paint().
Get the list of actions that the Directory can provide for the file menu.
Definition at line 206 of file Directory.cpp.
References m_fileMenuActions.
QList< Footprint2DView * > Isis::Directory::footprint2DViews | ( | ) |
Accessor for the list of Footprint2DViews currently available.
Definition at line 1410 of file Directory.cpp.
References m_footprint2DViewWidgets.
Referenced by Isis::Footprint2DViewWorkOrder::execute(), and Isis::Footprint2DViewWorkOrder::setupExecution().
Get the list of actions that the Directory can provide for the help menu.
Definition at line 251 of file Directory.cpp.
References m_helpMenuActions.
QList< ImageFileListWidget * > Isis::Directory::imageFileListViews | ( | ) |
Accessor for the list of ImageFileListWidgets currently available.
Definition at line 1425 of file Directory.cpp.
References m_fileListWidgets.
Referenced by Isis::ImageFileListViewWorkOrder::execute(), and Isis::ImageFileListViewWorkOrder::setupExecution().
|
private |
Initializes the actions that the Directory can provide to a main window.
Any work orders that need to be disabled by default can be done so here. You need to grab the clone pointer, setEnabled(false), then set up the proper connections between the project signals (representing changes to state) and WorkOrder::enableWorkOrder.
Definition at line 408 of file Directory.cpp.
References m_closeProjectWorkOrder, m_editMenuActions, m_exportControlNetWorkOrder, m_exportImagesWorkOrder, m_fileMenuActions, m_helpMenuActions, m_importControlNetWorkOrder, m_importImagesWorkOrder, m_importMapTemplateWorkOrder, m_importRegistrationTemplateWorkOrder, m_importShapesWorkOrder, m_openProjectWorkOrder, m_permToolBarActions, m_project, m_projectMenuActions, m_renameProjectWorkOrder, m_runJigsawWorkOrder, m_saveProjectAsWorkOrder, m_saveProjectWorkOrder, m_settingsMenuActions, m_viewMenuActions, and project().
Referenced by Directory().
|
privateslot |
Slot which is connected to the model's signal, projectNameEdited, which is emitted when the user double-clicks the project name, the parent node located on the ProjectTreeView.
A RenameProjectWorkOrder is created then passed to the Project which executes the WorkOrder.
QString | projectName New project name |
Definition at line 1078 of file Directory.cpp.
References Isis::Project::addToProject(), and project().
Referenced by addProjectItemTreeView().
void Isis::Directory::load | ( | XmlStackedHandlerReader * | xmlReader | ) |
Loads the Directory from an XML file.
xmlReader | The reader that takes in and parses the XML file. |
Definition at line 1509 of file Directory.cpp.
References Isis::XmlStackedHandlerReader::pushContentHandler().
QList< MatrixSceneWidget * > Isis::Directory::matrixViews | ( | ) |
Accessor for the list of MatrixSceneWidgets currently available.
Definition at line 1350 of file Directory.cpp.
References m_matrixViewWidgets.
Referenced by Isis::MatrixViewWorkOrder::setupExecution(), and Isis::MatrixViewWorkOrder::undoExecution().
ProjectItemModel * Isis::Directory::model | ( | ) |
Gets the ProjectItemModel for this directory.
Definition at line 1091 of file Directory.cpp.
References m_projectItemModel.
Referenced by Isis::CubeDnViewWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::execute(), Isis::RemoveImagesWorkOrder::execute(), Isis::ControlHealthMonitorView::openImageEditor(), Isis::Project::setActiveControl(), Isis::Project::setActiveImageList(), Isis::RemoveImagesWorkOrder::setupExecution(), Isis::ImportImagesWorkOrder::undoExecution(), Isis::ImportMapTemplateWorkOrder::undoExecution(), Isis::ImportRegistrationTemplateWorkOrder::undoExecution(), and Isis::ImportShapesWorkOrder::undoExecution().
|
slot |
Slot that is connected from a left mouse button operation on views.
controlPoint | (ControlPoint *) The control point selected from view for editing |
serialNumber | (QString) The serial number of Cube that was used to select control point from the CubeDnView. This parameter will be empty if control point was selected from Footprint2DView. |
Definition at line 1836 of file Directory.cpp.
References controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), Isis::ControlPoint::GetId(), m_editPointId, and Isis::ControlPointEditWidget::setEditPoint().
Referenced by addCnetEditorView(), addCubeDnView(), and addFootprint2DView().
|
privateslot |
@description This slot is connected from the signal activeControlSet(bool) emitted from Project.
newControl | bool |
Definition at line 567 of file Directory.cpp.
References Isis::CnetEditorView::cnetEditorWidget(), Isis::TableView::content(), Isis::CnetEditorView::control(), m_cnetEditorViewWidgets, Isis::CnetEditorWidget::measureTableView(), Isis::CnetEditorWidget::pointTableView(), project(), and Isis::TableViewContent::setActiveControlNet().
Referenced by Directory().
Get the list of actions that the Directory can provide for the permanent Tool Bar.
Definition at line 260 of file Directory.cpp.
References m_permToolBarActions.
QList< QProgressBar * > Isis::Directory::progressBars | ( | ) |
Gets the ControlNetEditor associated with this the Directory.
Returns a list of progress bars associated with this Directory.
Definition at line 1471 of file Directory.cpp.
Project * Isis::Directory::project | ( | ) | const |
Gets the Project for this directory.
Definition at line 1311 of file Directory.cpp.
References m_project.
Referenced by addCnetEditorView(), addCubeDnView(), addFootprint2DView(), Isis::ControlPointEditWidget::checkGroundFileLocation(), cleanupCnetEditorViewWidgets(), Isis::MosaicSceneItem::contextMenuEvent(), Isis::MosaicSceneWidget::contextMenuEvent(), Isis::ControlHealthMonitorView::ControlHealthMonitorView(), Isis::ControlPointEditWidget::ControlPointEditWidget(), Isis::ControlPointEditWidget::createPointEditor(), Directory(), Isis::ControlNetTool::drawAllMeasurements(), Isis::CubeDnView::enableActions(), Isis::Footprint2DView::enableActions(), initializeActions(), initiateRenameProjectWorkOrder(), Isis::MosaicControlNetTool::loadNetwork(), newActiveControl(), Isis::MosaicControlNetTool::openControlNet(), Isis::ControlHealthMonitorView::openImageEditor(), redoAction(), reloadActiveControlInCnetEditorView(), save(), Isis::ControlPointEditWidget::setControlFromActive(), setHistoryContainer(), Isis::ControlPointEditWidget::setShapesForPoint(), Isis::ControlPointEditWidget::setTemplateFile(), Isis::MosaicSceneWidget::supportedActions(), Isis::ControlNetTool::toolPadAction(), undoAction(), and updateRecentProjects().
Get the list of actions that the Directory can provide for the project menu.
Definition at line 215 of file Directory.cpp.
References m_projectMenuActions.
QStringList Isis::Directory::recentProjectsList | ( | ) |
Public accessor for the list of recent projects.
Definition at line 593 of file Directory.cpp.
References m_recentProjects.
QAction * Isis::Directory::redoAction | ( | ) |
Creates an Action to redo the last action.
Definition at line 1491 of file Directory.cpp.
References project(), and Isis::Project::undoStack().
|
privateslot |
@description This slot was created specifically for the CnetEditorWidgets when user chooses a new active control and wants to discard any edits in the old active control.
The only view which will not be updated with the new control are any CnetEditorViews showing the old active control. CnetEditorWidget classes do not have the ability to reload a control net, so the CnetEditor view displaying the old control is removed, then recreated.
Definition at line 549 of file Directory.cpp.
References addCnetEditorView(), Isis::CnetEditorView::control(), m_cnetEditorViewWidgets, and project().
Referenced by Directory().
|
staticprivate |
Reformat actionPairings to be user friendly for use in menus.
actionPairings is: Widget A -> Action 1 Action 2 Action 3 Widget B -> Action 1 Action 3 NULL Action 4 ...
We convert this into a list of actions, that when added to a menu, looks like: Action 1 -> Widget A Widget B Action 2 on Widget A Action 3 -> Widget A
Action 4 on Widget B
The NULL separators aren't 100% yet, but work a good part of the time.
This works by doing a data transformation and then using the resulting data structures to populate the menu.
actionPairings is transformed into: restructuredData: Action 1 -> (Widget A, QAction *) (Widget B, QAction *) Action 2 -> (Widget A, QAction *) Action 3 -> (Widget A, QAction *) (Widget B, QAction *) Action 4 -> (Widget B, QAction *)
and
sortedActionTexts - A list of unique (if not empty) strings: "Action 1" "Action 2" "Action 3" "" "Action 4"
This transformation is done by looping linearly through actionPairings and for each action in the pairings we add to the restructured data and append the action's text to sortedActionTexts.
We loop through sortedActionTexts and populate the menu based based on the current (sorted) action text. If the action text is NULL (we saw a separator in the input), we add a NULL (separator) to the resulting list of actions. If it isn't NULL, we create a menu or utilize the action directly depending on if there are multiple actions with the same text.
actionPairings | A list of action pairings. |
Definition at line 1693 of file Directory.cpp.
References actionTextLessThan().
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. |
Definition at line 1523 of file Directory.cpp.
References m_cnetEditorViewWidgets, m_cubeDnViewWidgets, m_fileListWidgets, m_footprint2DViewWidgets, project(), Isis::CnetEditorView::save(), Isis::Footprint2DView::save(), and Isis::ImageFileListWidget::save().
QList< SensorInfoWidget * > Isis::Directory::sensorInfoViews | ( | ) |
Accessor for the list of SensorInfoWidgets currently available.
Definition at line 1365 of file Directory.cpp.
References m_sensorInfoWidgets.
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. |
Definition at line 511 of file Directory.cpp.
References m_historyTreeWidget, and project().
void Isis::Directory::setRecentProjectsList | ( | QStringList | recentProjects | ) |
Add recent projects to the recent projects list.
recentProjects | List of projects to add to list. |
Definition at line 535 of file Directory.cpp.
References m_recentProjects.
Get the list of actions that the Directory can provide for the settings menu.
Definition at line 242 of file Directory.cpp.
References m_settingsMenuActions.
void Isis::Directory::setWarningContainer | ( | QDockWidget * | warningContainer | ) |
Set up the warning info in the warning dockable widget.
warningContainer | The widget to fill. |
Definition at line 523 of file Directory.cpp.
References m_warningTreeWidget.
void Isis::Directory::showWarning | ( | QString | text | ) |
Displays a Warning.
text | The text to be displayed as a warning. |
Definition at line 1481 of file Directory.cpp.
References m_warningTreeWidget.
Referenced by Isis::Project::open().
|
inline |
Shows warning text for a Widget.
text | The warning text. |
Data | The Widget object we are passing the warning to. |
Definition at line 381 of file Directory.h.
|
inline |
Returns a list of supported actions for a WorkOrder.
data | The WorkOrder type we are using. |
Definition at line 345 of file Directory.h.
References Isis::WorkOrder::isExecutable(), m_workOrders, and Isis::WorkOrder::setData().
Referenced by Isis::MosaicSceneItem::contextMenuEvent(), and Isis::MosaicSceneWidget::contextMenuEvent().
QList< TargetInfoWidget * > Isis::Directory::targetInfoViews | ( | ) |
Accessor for the list of TargetInfoWidgets currently available.
Definition at line 1380 of file Directory.cpp.
References m_targetInfoWidgets.
Referenced by Isis::TargetGetInfoWorkOrder::isExecutable().
QList< TemplateEditorWidget * > Isis::Directory::templateEditorViews | ( | ) |
Accessor for the list of TemplateEditorWidgets currently available.
Definition at line 1395 of file Directory.cpp.
References m_templateEditorWidgets.
Referenced by Isis::TemplateEditViewWorkOrder::isExecutable().
Get the list of actions that the Directory can provide for the Tool Pad.
Definition at line 278 of file Directory.cpp.
References m_toolPadActions.
QAction * Isis::Directory::undoAction | ( | ) |
Creates an Action to undo the last action.
Definition at line 1500 of file Directory.cpp.
References project(), and Isis::Project::undoStack().
|
slot |
Updates the SIGNAL/SLOT connections for the cotrol net editor.
Definition at line 1802 of file Directory.cpp.
References deleteControlPoint(), and m_footprint2DViewWidgets.
|
slot |
Loads and displays a list of recently opened projects in the file menu.
Definition at line 318 of file Directory.cpp.
References Isis::FileName::fileExists(), m_fileMenuActions, m_openProjectWorkOrder, m_recentProjects, and Isis::Project::maxRecentProjects().
Referenced by Directory().
|
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. |
Definition at line 1302 of file Directory.cpp.
References m_recentProjects, project(), and Isis::Project::projectRoot().
Get the list of actions that the Directory can provide for the view menu.
Definition at line 233 of file Directory.cpp.
References m_viewMenuActions.
QWidget * Isis::Directory::warningWidget | ( | ) |
Returns a pointer to the warning widget.
Definition at line 1100 of file Directory.cpp.
References m_warningTreeWidget.
List of active ToolBar actions.
Definition at line 538 of file Directory.h.
Referenced by activeToolBarActions().
|
private |
Definition at line 523 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
List of CnetEditorViews.
Definition at line 495 of file Directory.h.
Referenced by addCnetEditorView(), clean(), cleanupCnetEditorViewWidgets(), cnetEditorViews(), newActiveControl(), reloadActiveControlInCnetEditorView(), and save().
|
private |
Map to hold every view with an open Control.
Definition at line 541 of file Directory.h.
Referenced by addCnetEditorView(), cleanupCnetEditorViewWidgets(), and controlUsedInCnetEditorWidget().
|
private |
List of CubeDnCiew obs.
Definition at line 496 of file Directory.h.
Referenced by addCubeDnView(), clean(), cleanupCubeDnViewWidgets(), cubeDnViews(), and save().
List of edit menu actions.
Definition at line 532 of file Directory.h.
Referenced by editMenuActions(), and initializeActions().
|
private |
Current control point that is in the ControlPointEditWidget.
Definition at line 543 of file Directory.h.
Referenced by createControlPoint(), deleteControlPoint(), Directory(), editPointId(), and modifyControlPoint().
|
private |
The export ControlNetwork WorkOrder.
Definition at line 514 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
The export images WorkOrder.
Definition at line 515 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
List of ImageFileListWidgets.
Definition at line 497 of file Directory.h.
Referenced by addImageFileListView(), clean(), cleanupFileListWidgets(), imageFileListViews(), and save().
List of file menu actions.
Definition at line 530 of file Directory.h.
Referenced by fileMenuActions(), initializeActions(), and updateRecentProjects().
|
private |
List of Footprint2DView objs.
Definition at line 498 of file Directory.h.
Referenced by addFootprint2DView(), clean(), cleanupFootprint2DViewWidgets(), footprint2DViews(), save(), and updateControlNetEditConnections().
List of help menu actions.
Definition at line 535 of file Directory.h.
Referenced by helpMenuActions(), and initializeActions().
|
private |
Pointer to the HistoryTreeWidget.
Definition at line 487 of file Directory.h.
Referenced by clean(), and setHistoryContainer().
|
private |
The import ControlNetwork WorkOrder.
Definition at line 516 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
The import images WorkOrder.
Definition at line 517 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
The Import Map Template WorkOrder.
Definition at line 524 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
The Import Registration Template WorkOrder.
Definition at line 525 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
The import shapes WorkOrder.
Definition at line 518 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
Pointer to the JigsawRunWidget.
List of BundleObservationView
Definition at line 490 of file Directory.h.
Referenced by clean().
|
private |
List of MatrixSceneWidgets.
Definition at line 503 of file Directory.h.
Referenced by addMatrixView(), clean(), cleanupMatrixViewWidgets(), and matrixViews().
|
private |
Definition at line 519 of file Directory.h.
Referenced by Directory(), initializeActions(), and updateRecentProjects().
|
private |
The Open Recent Project WorkOrder.
Definition at line 522 of file Directory.h.
List of perm ToolBar actions.
Definition at line 537 of file Directory.h.
Referenced by initializeActions(), and permToolBarActions().
|
private |
Pointer to the Project.
Definition at line 488 of file Directory.h.
Referenced by addBundleObservationView(), addCnetEditorView(), addCubeDnView(), addFootprint2DView(), addProjectItemTreeView(), cleanupBundleObservationViews(), cleanupCnetEditorViewWidgets(), cleanupControlPointEditViewWidget(), cleanupCubeDnViewWidgets(), cleanupFileListWidgets(), cleanupFootprint2DViewWidgets(), cleanupMatrixViewWidgets(), cleanupSensorInfoWidgets(), cleanupTargetInfoWidgets(), cleanupTemplateEditorWidgets(), createWorkOrder(), Directory(), initializeActions(), project(), and ~Directory().
|
private |
Pointer to the ProjectItemModel.
Definition at line 484 of file Directory.h.
Referenced by addCubeDnView(), addFootprint2DView(), addProjectItemTreeView(), clean(), Directory(), and model().
List of project menu actions.
Definition at line 531 of file Directory.h.
Referenced by initializeActions(), and projectMenuActions().
|
private |
List of the names of recent projects.
Definition at line 510 of file Directory.h.
Referenced by recentProjectsList(), setRecentProjectsList(), and updateRecentProjects().
|
private |
Definition at line 528 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
The Run Jigsaw WorkOrder.
Definition at line 527 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
The Save Project As WorkOrder.
Definition at line 521 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
Definition at line 520 of file Directory.h.
Referenced by Directory(), and initializeActions().
|
private |
List of SensorInfoWidgets.
Definition at line 504 of file Directory.h.
Referenced by addSensorInfoView(), clean(), cleanupSensorInfoWidgets(), and sensorInfoViews().
List of menu settings actions.
Definition at line 534 of file Directory.h.
Referenced by initializeActions(), and settingsMenuActions().
|
private |
List of TargetInfoWidgets.
Definition at line 505 of file Directory.h.
Referenced by addTargetInfoView(), clean(), cleanupTargetInfoWidgets(), and targetInfoViews().
|
private |
List of TemplateEditorWidgets.
Definition at line 506 of file Directory.h.
Referenced by addTemplateEditorView(), clean(), cleanupTemplateEditorWidgets(), and templateEditorViews().
List of ToolPad actions.
Definition at line 539 of file Directory.h.
Referenced by toolPadActions().
List of view menu actions.
Definition at line 533 of file Directory.h.
Referenced by initializeActions(), and viewMenuActions().
|
private |
Pointer to the WarningTreeWidget.
Definition at line 489 of file Directory.h.
Referenced by clean(), setWarningContainer(), showWarning(), and warningWidget().
List of WorkOrders.
Definition at line 508 of file Directory.h.
Referenced by createWorkOrder(), supportedActions(), and ~Directory().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 15:18:53 |