Isis 3 Programmer 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... | |
Private Attributes | |
QPointer< QMdiArea > | m_mdi |
The mdi area. More... | |
QVector< MdiCubeViewport * > * | m_cubeViewportList |
List of cube viewports. More... | |
ToolList * | m_tools |
List of all of the tools. More... | |
Definition at line 78 of file Workspace.h.
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 |
Definition at line 58 of file Workspace.cpp.
References Isis::Tool::activate(), activateViewport(), Isis::Tool::addTo(), Isis::Tool::addToActive(), Isis::Tool::addToPermanent(), m_cubeViewportList, m_mdi, m_tools, and Isis::Tool::menuName().
Isis::Workspace::Workspace | ( | const Workspace & | other | ) |
Constructor for Workspace.
other | The other Workspace to load from. |
Definition at line 202 of file Workspace.cpp.
References m_cubeViewportList.
|
virtual |
Deconstructor.
Definition at line 208 of file Workspace.cpp.
References m_cubeViewportList, and m_tools.
|
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 |
Definition at line 222 of file Workspace.cpp.
References cubeViewportActivated(), and m_mdi.
Referenced by Workspace().
|
slot |
Method is called to add a Cube from BrowseView.
cube | The cube being browsed |
Definition at line 490 of file Workspace.cpp.
References addCubeViewport(), and m_mdi.
|
slot |
Method adds a cube into the Workspace as a CubeViewport.
Add a cubeViewport to the workspace.
Definition at line 464 of file Workspace.cpp.
References cubeViewportAdded(), Isis::Cube::fileName(), m_mdi, Isis::IException::Programmer, and Isis::ViewportMdiSubWindow::viewport().
|
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 |
Definition at line 339 of file Workspace.cpp.
References addCubeViewportFromList(), Isis::CubeAttributeInput::bands(), Isis::Cube::open(), Isis::Cube::setVirtualBands(), Isis::IString::ToInteger(), Isis::IException::toString(), and Isis::IException::User.
Referenced by addBrowseView(), addCubeViewportFromList(), addImages(), and Isis::CubeDnView::onItemAdded().
|
slot |
Method adds cubes into Workspace as a CubeViewport from a list of cubes.
cubename | The name of the cube list file. |
Definition at line 391 of file Workspace.cpp.
References addCubeViewport(), Isis::CubeAttributeInput::bands(), Isis::Cube::open(), Isis::Cube::setVirtualBands(), Isis::IString::ToInteger(), and Isis::IException::User.
Referenced by addCubeViewport().
void Isis::Workspace::addImages | ( | ImageList * | images | ) |
Adds a list of Images to a viewport.
Definition at line 260 of file Workspace.cpp.
References addCubeViewport(), and Isis::Image::cube().
bool Isis::Workspace::confirmClose | ( | ) |
Confirms that the user wishes toc lose the Workspace.
Definition at line 267 of file Workspace.cpp.
References cubeViewportList().
Referenced by Isis::ViewportMainWindow::closeEvent().
Converts a cube to an MdiWidget.
cube | The cube to reference |
Definition at line 280 of file Workspace.cpp.
References Isis::CubeViewport::cube(), and m_cubeViewportList.
Referenced by Isis::CubeDnView::onItemAdded(), and Isis::CubeDnView::setWorkspaceActiveCube().
|
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.
Definition at line 238 of file Workspace.cpp.
References m_cubeViewportList, and m_mdi.
Referenced by confirmClose(), Isis::Tool::cubeViewportList(), Isis::QnetFileTool::loadImage(), Isis::ScatterPlotConfigDialog::refreshWidgetStates(), Isis::ScatterPlotConfigDialog::xAxisCubeViewport(), and Isis::ScatterPlotConfigDialog::yAxisCubeViewport().
QMdiArea * Isis::Workspace::mdiArea | ( | ) |
This method returns the QMdiArea.
Definition at line 295 of file Workspace.cpp.
References m_mdi.
Referenced by Isis::FileTool::addTo(), Isis::WindowTool::addTo(), Isis::CubeDnView::CubeDnView(), Isis::QnetFileTool::loadImage(), and Isis::CubeDnView::workspaceActiveCube().
Is equal to comparsion.
other | The Workspace to compare against |
Definition at line 250 of file Workspace.cpp.
References m_cubeViewportList.
|
private |
List of cube viewports.
Definition at line 204 of file Workspace.h.
Referenced by cubeToMdiWidget(), cubeViewportList(), operator=(), Workspace(), and ~Workspace().
|
private |
The mdi area.
Definition at line 202 of file Workspace.h.
Referenced by activateViewport(), addBrowseView(), addCubeViewport(), cubeViewportList(), mdiArea(), and Workspace().
|
private |
List of all of the tools.
Definition at line 206 of file Workspace.h.
Referenced by Workspace(), and ~Workspace().