Isis 3 Programmer Reference
Workspace.h
1 #ifndef Workspace_h
2 #define Workspace_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 
13 
14 #include <QMdiArea>
15 #include <QPointer>
16 
17 template< class T > class QVector;
18 
19 namespace Isis {
20  class Cube;
21  class Image;
22  class ImageList;
23  class MdiCubeViewport;
24  class ToolList;
25 
78  class Workspace : public QWidget {
79  Q_OBJECT
80 
81  public:
89  Workspace(bool selfContained, QWidget *parent = 0);
90 
96  Workspace(const Workspace &other);
97 
102  virtual ~Workspace();
103 
110 
117  Workspace &operator=(Workspace other);
118 
124  void addImages(ImageList *images);
125 
131  bool confirmClose();
132 
139  QWidget *cubeToMdiWidget(Cube *cube);
140 
146  QMdiArea *mdiArea();
147 
148  signals:
153 
159 
160  public slots:
161 
167  void addCubeViewport(QString cubename);
168 
174  void addCubeViewportFromList(QString cubelist);
175 
176 
183 
189  void addBrowseView(QString cube);
190 
191  protected slots:
192 
199 
200  private:
202  QPointer<QMdiArea> m_mdi;
207  };
208 };
209 
210 #endif
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Isis::ToolList
Allows tools to share data between each other.
Definition: ToolList.h:32
Isis::Workspace::operator=
Workspace & operator=(Workspace other)
Is equal to comparsion.
Definition: Workspace.cpp:250
Isis::Workspace::addCubeViewport
void addCubeViewport(QString cubename)
Method adds the name of a cube into Workspace as a CubeViewport.
Definition: Workspace.cpp:339
Isis::Workspace::cubeViewportActivated
void cubeViewportActivated(MdiCubeViewport *)
Signal triggered when a Cube is activated in the Workspace.
Isis::Workspace::cubeToMdiWidget
QWidget * cubeToMdiWidget(Cube *cube)
Converts a cube to an MdiWidget.
Definition: Workspace.cpp:280
Isis::Workspace::m_mdi
QPointer< QMdiArea > m_mdi
The mdi area.
Definition: Workspace.h:202
Isis::ImageList
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
Isis::Workspace::addBrowseView
void addBrowseView(QString cube)
Method is called to add a Cube from BrowseView.
Definition: Workspace.cpp:490
Isis::Workspace::confirmClose
bool confirmClose()
Confirms that the user wishes toc lose the Workspace.
Definition: Workspace.cpp:267
Isis::Workspace::activateViewport
void activateViewport(QMdiSubWindow *w)
This method activates the Viewport.
Definition: Workspace.cpp:222
Isis::Workspace::cubeViewportAdded
void cubeViewportAdded(MdiCubeViewport *)
Signal triggered when a Cube is added to the Workspace.
Isis::Workspace::mdiArea
QMdiArea * mdiArea()
This method returns the QMdiArea.
Definition: Workspace.cpp:295
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::Workspace::m_tools
ToolList * m_tools
List of all of the tools.
Definition: Workspace.h:206
Isis::Workspace::addImages
void addImages(ImageList *images)
Adds a list of Images to a viewport.
Definition: Workspace.cpp:260
Isis::Workspace::m_cubeViewportList
QVector< MdiCubeViewport * > * m_cubeViewportList
List of cube viewports.
Definition: Workspace.h:204
Isis::Workspace::Workspace
Workspace(bool selfContained, QWidget *parent=0)
Constructor for Workspace.
Definition: Workspace.cpp:58
Isis::Workspace::cubeViewportList
QVector< MdiCubeViewport * > * cubeViewportList()
This method returns a Vector of MdiCubeViewports.
Definition: Workspace.cpp:238
Isis::Workspace::~Workspace
virtual ~Workspace()
Deconstructor.
Definition: Workspace.cpp:208
Isis::Workspace
Definition: Workspace.h:78
QMdiSubWindow
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
Isis::Workspace::addCubeViewportFromList
void addCubeViewportFromList(QString cubelist)
Method adds cubes into Workspace as a CubeViewport from a list of cubes.
Definition: Workspace.cpp:391
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16