Isis Developer Reference
|
#include <Workspace.h>
Public Slots | |
void | addCubeViewport (QString cubename) |
Method adds the name of a cube into Workspace as a CubeViewport. | |
void | addCubeViewportFromList (QString cubelist) |
Method adds cubes into Workspace as a CubeViewport from a list of cubes. | |
MdiCubeViewport * | addCubeViewport (Cube *cube) |
Method adds a cube into the Workspace as a CubeViewport. | |
void | addBrowseView (QString cube) |
Method is called to add a Cube from BrowseView. | |
Signals | |
void | cubeViewportAdded (MdiCubeViewport *) |
Signal triggered when a Cube is added to the Workspace. | |
void | cubeViewportActivated (MdiCubeViewport *) |
Signal triggered when a Cube is activated in the Workspace. | |
Public Member Functions | |
Workspace (bool selfContained, QWidget *parent=0) | |
Constructor for Workspace. | |
Workspace (const Workspace &other) | |
Constructor for Workspace. | |
virtual | ~Workspace () |
Deconstructor. | |
QVector< MdiCubeViewport * > * | cubeViewportList () |
This method returns a Vector of MdiCubeViewports. | |
Workspace & | operator= (Workspace other) |
Is equal to comparsion. | |
void | addImages (ImageList *images) |
Adds a list of Images to a viewport. | |
bool | confirmClose () |
Confirms that the user wishes toc lose the Workspace. | |
QWidget * | cubeToMdiWidget (Cube *cube) |
Converts a cube to an MdiWidget. | |
QMdiArea * | mdiArea () |
This method returns the QMdiArea. | |
Protected Slots | |
void | activateViewport (QMdiSubWindow *w) |
This method activates the Viewport. | |
Isis::Workspace::Workspace | ( | bool | selfContained, |
QWidget * | parent = 0 ) |
Constructor for Workspace.
Workspace constructor.
selfContained | if this Workspace should be self contained or note |
parent | The parent QWidget, defaults to 0 |
parent |
References activateViewport(), Isis::Tool::addTo(), Isis::ToolList::append(), and Isis::ToolList::count().
Isis::Workspace::Workspace | ( | const Workspace & | other | ) |
|
virtual |
Deconstructor.
|
protectedslot |
This method activates the Viewport.
This gets called when a window is activated or the workspace loses focus.
w | The subwindow to activate |
w |
References cubeViewportActivated().
Referenced by Workspace().
|
slot |
Method is called to add a Cube from BrowseView.
cube | The cube being browsed |
References addCubeViewport().
|
slot |
Method adds a cube into the Workspace as a CubeViewport.
Add a cubeViewport to the workspace.
References _FILEINFO_, cubeViewportAdded(), Isis::Cube::fileName(), and Isis::IException::Programmer.
|
slot |
Method adds the name of a cube into Workspace as a CubeViewport.
Add a cubeViewport to the workspace, open the cube.
cubename | The cube to be added to the Workspace |
cubename | (QString) cubename |
References _FILEINFO_, addCubeViewport(), addCubeViewportFromList(), Isis::Cube::open(), Isis::Cube::setVirtualBands(), and Isis::IException::User.
Referenced by addBrowseView(), addCubeViewport(), addCubeViewportFromList(), and addImages().
|
slot |
Method adds cubes into Workspace as a CubeViewport from a list of cubes.
cubename | The name of the cube list file. |
References _FILEINFO_, addCubeViewport(), Isis::Cube::open(), Isis::Cube::setVirtualBands(), and Isis::IException::User.
Referenced by addCubeViewport().
void Isis::Workspace::addImages | ( | ImageList * | images | ) |
Adds a list of Images to a viewport.
References addCubeViewport(), and Isis::Image::cube().
bool Isis::Workspace::confirmClose | ( | ) |
Confirms that the user wishes toc lose the Workspace.
References cubeViewportList().
Referenced by Isis::ViewportMainWindow::closeEvent().
Converts a cube to an MdiWidget.
cube | The cube to reference |
References Isis::CubeViewport::cube().
|
signal |
Signal triggered when a Cube is activated in the Workspace.
Referenced by activateViewport().
|
signal |
Signal triggered when a Cube is added to the Workspace.
Referenced by addCubeViewport().
QVector< MdiCubeViewport * > * Isis::Workspace::cubeViewportList | ( | ) |
This method returns a Vector of MdiCubeViewports.
Repopulates the list of MdiCubeViewports and returns a pointer to this list.
Ownership is not given to the caller.
Referenced by confirmClose(), Isis::Tool::cubeViewportList(), Isis::QnetFileTool::loadImage(), Isis::CubeDnView::save(), Isis::ScatterPlotConfigDialog::xAxisCubeViewport(), and Isis::ScatterPlotConfigDialog::yAxisCubeViewport().
QMdiArea * Isis::Workspace::mdiArea | ( | ) |
This method returns the QMdiArea.
Referenced by Isis::CubeDnView::CubeDnView(), and Isis::QnetFileTool::loadImage().
Is equal to comparsion.
other | The Workspace to compare against |