Isis 3.0
Home
Isis::Directory Class Reference

#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...
 
CnetEditorWidgetaddCnetEditorView (Control *network)
 Add the widget for the cnet editor view to the window. More...
 
CubeDnViewaddCubeDnView ()
 Add the qview workspace to the window. More...
 
Footprint2DViewaddFootprint2DView ()
 Add the qmos view widget to the window. More...
 
MatrixSceneWidgetaddMatrixView ()
 Add the matrix view widget to the window. More...
 
TargetInfoWidgetaddTargetInfoView (TargetBodyQsp target)
 Add target body data view widget to the window. More...
 
SensorInfoWidgetaddSensorInfoView (GuiCameraQsp camera)
 Add sensor data view widget to the window. More...
 
ImageFileListWidgetaddImageFileListView ()
 Add an imageFileList widget to the window. More...
 
ControlPointEditViewaddControlPointEditView ()
 
ProjectItemTreeViewaddProjectItemTreeView ()
 Adds a ProjectItemTreeView to the window. More...
 
ProjectItemModelmodel ()
 Gets the ProjectItemModel for this directory. More...
 
Projectproject () 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...
 
ControlPointEditViewcontrolPointEditView ()
 Gets the ControlPointEditWidget associated with the Directory. More...
 
ChipViewportsWidgetcontrolPointChipViewports ()
 
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...
 
QWidgetwarningWidget ()
 Returns a pointer to the warning widget. More...
 
QActionredoAction ()
 Creates an Action to redo the last action. More...
 
QActionundoAction ()
 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...
 

Detailed Description

Author
2012-??-?? ???

Constructor & Destructor Documentation

Isis::Directory::Directory ( QObject parent = 0)
explicit

The Constructor.

Exceptions
IException::ProgrammerTo handle the event that a Project cannot be created.
IException::ProgrammerTo 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.

Member Function Documentation

QList< QAction * > Isis::Directory::activeToolBarActions ( )

Get the list of actions that the Directory can provide for the active Tool Bar.

Returns
QList<QAction *> Returns a list of active Tool Bar actions.
CubeDnView * Isis::Directory::addCubeDnView ( )
Footprint2DView * Isis::Directory::addFootprint2DView ( )
ImageFileListWidget * Isis::Directory::addImageFileListView ( )

Add an imageFileList widget to the window.

Returns
(ImageFileListWidget *) A pointer to the widget to add to the window.

References cleanupFileListWidgets(), and newWidgetAvailable().

Referenced by Isis::ImageFileListViewWorkOrder::syncRedo().

MatrixSceneWidget * Isis::Directory::addMatrixView ( )

Add the matrix view widget to the window.

Returns
(MatrixSceneWidget*) The widget to view.

References cleanupMatrixViewWidgets(), and newWidgetAvailable().

Referenced by Isis::MatrixViewWorkOrder::syncRedo().

ProjectItemTreeView * Isis::Directory::addProjectItemTreeView ( )

Adds a ProjectItemTreeView to the window.

Returns
(ProjectItemTreeView *) The added view.

References Isis::AbstractProjectItemView::setModel().

SensorInfoWidget * Isis::Directory::addSensorInfoView ( GuiCameraQsp  camera)

Add sensor data view widget to the window.

Returns
(SensorInfoWidget*) The widget to view.

References cleanupSensorInfoWidgets(), and newWidgetAvailable().

Referenced by Isis::SensorGetInfoWorkOrder::syncRedo().

TargetInfoWidget * Isis::Directory::addTargetInfoView ( TargetBodyQsp  target)

Add target body data view widget to the window.

Returns
(TargetInfoWidget*) The widget to view.

References cleanupTargetInfoWidgets(), and newWidgetAvailable().

Referenced by Isis::TargetGetInfoWorkOrder::syncRedo().

void Isis::Directory::cleanupCnetEditorViewWidgets ( )
slot

Removes pointers to deleted CnetEditorWidget objects.

Referenced by addCnetEditorView().

void Isis::Directory::cleanupControlPointEditViewWidget ( )
slot

Delete the ControlPointEditWidget and set it's pointer to NULL.

Referenced by addControlPointEditView().

void Isis::Directory::cleanupCubeDnViewWidgets ( )
slot

Removes pointers to deleted CubeDnView objects.

Referenced by addCubeDnView().

void Isis::Directory::cleanupFileListWidgets ( )
slot

Reomoves pointers to deleted ImageFileListWidget objects.

Referenced by addImageFileListView().

void Isis::Directory::cleanupFootprint2DViewWidgets ( )
slot

Removes pointers to deleted Footprint2DView objects.

Referenced by addFootprint2DView().

void Isis::Directory::cleanupMatrixViewWidgets ( )
slot

Removes pointers to deleted MatrixSceneWidget objects.

Referenced by addMatrixView().

void Isis::Directory::cleanupSensorInfoWidgets ( )
slot

Removes pointers to deleted SensorInfoWidget objects.

Referenced by addSensorInfoView().

void Isis::Directory::cleanupTargetInfoWidgets ( )
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.

Returns
QList<CnetEditorWidget *> A pointer list of all the CnetEditorWidget objects.

Referenced by Isis::CnetEditorViewWorkOrder::syncUndo().

void Isis::Directory::controlPointAdded ( QString  newPointId)
signal
ChipViewportsWidget * Isis::Directory::controlPointChipViewports ( )
ControlPointEditView * Isis::Directory::controlPointEditView ( )
void Isis::Directory::createControlPoint ( double  latitude,
double  longitude,
Cube cube = 0,
bool  isGroundSource = false 
)
slot
QList< CubeDnView * > Isis::Directory::cubeDnViews ( )

Accessor for the list of CubeDnViews currently available.

Returns
QList<CubeDnView *> The list CubeDnView objects.

Referenced by Isis::CubeDnViewWorkOrder::execute(), and Isis::CubeDnViewWorkOrder::syncRedo().

QList< QAction * > Isis::Directory::editMenuActions ( )

Get the list of actions that the Directory can provide for the edit menu.

Returns
QList<QAction *> Returns a list of edit menu actions.
QList< QAction * > Isis::Directory::fileMenuActions ( )

Get the list of actions that the Directory can provide for the file menu.

Returns
QList<QAction *> Returns a list of file menu actions.
QList< Footprint2DView * > Isis::Directory::footprint2DViews ( )

Accessor for the list of Footprint2DViews currently available.

Returns
QList<Footprint2DView *> The list of MosaicSceneWidget objects.

Referenced by Isis::Footprint2DViewWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::syncRedo(), and Isis::Footprint2DViewWorkOrder::syncUndo().

QList< QAction * > Isis::Directory::helpMenuActions ( )

Get the list of actions that the Directory can provide for the help menu.

Returns
QList<QAction *> Returns a list of help menu actions.
QList< ImageFileListWidget * > Isis::Directory::imageFileListViews ( )

Accessor for the list of ImageFileListWidgets currently available.

Returns
QList<ImageFileListWidget *> The list of ImageFileListWidgets.

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.

Parameters
xmlReaderThe 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.

Returns
QList<MatrixSceneWidget *> The list of MatrixSceneWidget objects.

Referenced by Isis::MatrixViewWorkOrder::execute(), and Isis::MatrixViewWorkOrder::syncUndo().

ProjectItemModel * Isis::Directory::model ( )
QList< QAction * > Isis::Directory::permToolBarActions ( )

Get the list of actions that the Directory can provide for the permanent Tool Bar.

Returns
QList<QAction *> Returns a list of permanent tool bar menu actions.
void Isis::Directory::populateMainMenu ( QMenuBar *  menuBar)

This method sets up the main menu at the top of the window (File, Settings, ...)

Parameters
menuBarThe menu area to populate.

References Isis::FileName::fileExists(), and project().

QList< QProgressBar * > Isis::Directory::progressBars ( )

Gets the ControlNetEditor associated with this the Directory.

Returns
(ControlNetEditor *) Returns a pointer to the ControlNetEditor. Returns a list of progress bars associated with this Directory.
QList<QProgressBar *>
QList< QAction * > Isis::Directory::projectMenuActions ( )

Get the list of actions that the Directory can provide for the project menu.

Returns
QList<QAction *> Returns a list of project menu actions.
QStringList Isis::Directory::recentProjectsList ( )

Public accessor for the list of recent projects.

Returns
QStringList List of recent projects.
QAction * Isis::Directory::redoAction ( )

Creates an Action to redo the last action.

Returns
(QAction *) Returns an action pointer 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.

Parameters
streamThe XML stream writer
newProjectRootThe 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.

Returns
QList<SensorInfoWidget *> The list of SensorInfoWidget objects.

Referenced by Isis::SensorGetInfoWorkOrder::isExecutable().

void Isis::Directory::setHistoryContainer ( QDockWidget *  historyContainer)

Set up the history info in the history dockable widget.

Parameters
historyContainerThe widget to fill.

References project().

void Isis::Directory::setRecentProjectsList ( QStringList  recentProjects)

Add recent projects to the recent projects list.

Parameters
recentProjectsList of projects to add to list.
QList< QAction * > Isis::Directory::settingsMenuActions ( )

Get the list of actions that the Directory can provide for the settings menu.

Returns
QList<QAction *> Returns a list of menu actions for the settings.
void Isis::Directory::setWarningContainer ( QDockWidget *  warningContainer)

Set up the warning info in the warning dockable widget.

Parameters
warningContainerThe widget to fill.
void Isis::Directory::showWarning ( QString  text)

Displays a Warning.

Parameters
textThe text to be displayed as a warning.

Referenced by Isis::Project::open(), and Isis::Project::warn().

template<typename Data >
void Isis::Directory::showWarning ( QString  text,
Data  data 
)
inline

Shows warning text for a Widget.

Parameters
textThe warning text.
DataThe Widget object we are passing the warning to.
template<typename DataType >
QList<QAction *> Isis::Directory::supportedActions ( DataType  data)
inline

Returns a list of supported actions for a WorkOrder.

Parameters
dataThe WorkOrder type we are using.
Returns
QList<QAction *> A list of supported actions.

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.

Returns
QList<TargetInfoWidget *> The list of TargetInfoWidget objects.

Referenced by Isis::TargetGetInfoWorkOrder::isExecutable().

QList< QAction * > Isis::Directory::toolPadActions ( )

Get the list of actions that the Directory can provide for the Tool Pad.

Returns
QList<QAction *> Returns a list of Tool Pad actions.
QAction * Isis::Directory::undoAction ( )

Creates an Action to undo the last action.

Returns
(QAction *) Returns an action pointer to undo the last action.

References project(), and Isis::Project::undoStack().

void Isis::Directory::updateControlNetEditConnections ( )
slot

Updates the SIGNAL/SLOT connections for the cotrol net editor.

References controlPointAdded(), and deleteControlPoint().

void Isis::Directory::updateRecentProjects ( Project project)
slot

Adds a new Project object to the list of recent projects if it has not already been added.

Parameters
projectA pointer to the Project to add.

References Isis::Project::projectRoot().

QList< QAction * > Isis::Directory::viewMenuActions ( )

Get the list of actions that the Directory can provide for the view menu.

Returns
QList<QAction *> Returns a list of view menu actions.
QWidget * Isis::Directory::warningWidget ( )

Returns a pointer to the warning widget.

Returns
(QWidget *) The WarningTreeWidget pointer.

The documentation for this class was generated from the following files: