Isis 3 Developer Reference
|
#include <Workspace.h>
Public Slots | |
void | addCubeViewport (QString cubename) |
Method adds the name of a cube into Workspace as a CubeViewport. More... | |
void | addCubeViewportFromList (QString cubelist) |
Method adds cubes into Workspace as a CubeViewport from a list of cubes. More... | |
MdiCubeViewport * | addCubeViewport (Cube *cube) |
Method adds a cube into the Workspace as a CubeViewport. More... | |
void | addBrowseView (QString cube) |
Method is called to add a Cube from BrowseView. More... | |
Signals | |
void | cubeViewportAdded (MdiCubeViewport *) |
Signal triggered when a Cube is added to the Workspace. More... | |
void | cubeViewportActivated (MdiCubeViewport *) |
Signal triggered when a Cube is activated in the Workspace. More... | |
Public Member Functions | |
Workspace (bool selfContained, QWidget *parent=0) | |
Constructor for Workspace. More... | |
Workspace (const Workspace &other) | |
Constructor for Workspace. More... | |
virtual | ~Workspace () |
Deconstructor. More... | |
QVector< MdiCubeViewport *> * | cubeViewportList () |
This method returns a Vector of MdiCubeViewports. More... | |
Workspace & | operator= (Workspace other) |
Is equal to comparsion. More... | |
void | addImages (ImageList *images) |
Adds a list of Images to a viewport. More... | |
bool | confirmClose () |
Confirms that the user wishes toc lose the Workspace. More... | |
QWidget * | cubeToMdiWidget (Cube *cube) |
Converts a cube to an MdiWidget. More... | |
QMdiArea * | mdiArea () |
This method returns the QMdiArea. More... | |
Protected Slots | |
void | activateViewport (QMdiSubWindow *w) |
This method activates the Viewport. More... | |
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 Isis::Tool::activate(), activateViewport(), Isis::Tool::addTo(), Isis::Tool::addToActive(), Isis::Tool::addToPermanent(), Isis::ToolList::append(), Isis::ToolList::count(), and Isis::Tool::menuName().
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 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_, addCubeViewportFromList(), Isis::CubeAttributeInput::bands(), Isis::Cube::open(), Isis::Cube::setVirtualBands(), Isis::IString::ToInteger(), Isis::IException::toString(), Isis::IException::User, and Isis::MdiCubeViewport::viewRGB().
Referenced by addBrowseView(), addCubeViewportFromList(), and addImages().
|
slot |
Method adds a cube into the Workspace as a CubeViewport.
Add a cubeViewport to the workspace.
References _FILEINFO_, cubeViewportAdded(), Isis::Cube::fileName(), Isis::IException::Programmer, and Isis::ViewportMdiSubWindow::viewport().
|
slot |
Method adds cubes into Workspace as a CubeViewport from a list of cubes.
cubename | The name of the cube list file. |
It's called by addCubeViewport() when that method attempts to open a file as a cube but fails. Fixes #5439, Fixes #5476.
References _FILEINFO_, addCubeViewport(), Isis::CubeAttributeInput::bands(), Isis::Cube::open(), Isis::Cube::setVirtualBands(), Isis::IString::ToInteger(), Isis::IException::User, and Isis::MdiCubeViewport::viewRGB().
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::WindowTool::addTo(), Isis::FileTool::addTo(), and Isis::QnetFileTool::loadImage().
Is equal to comparsion.
other | The Workspace to compare against |