Isis Developer Reference
Workspace.h
Go to the documentation of this file.
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
17template< class T > class QVector;
18
19namespace 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
109 QVector< MdiCubeViewport * > * cubeViewportList();
110
118
124 void addImages(ImageList *images);
125
131 bool confirmClose();
132
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;
204 QVector< MdiCubeViewport * > * m_cubeViewportList;
206 ToolList *m_tools;
207 };
208};
209
210#endif
IO Handler for Isis Cubes.
Definition Cube.h:168
Internalizes a list of images and allows for operations on the entire list.
Definition ImageList.h:53
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Allows tools to share data between each other.
Definition ToolList.h:32
Definition Workspace.h:78
Workspace & operator=(Workspace other)
Is equal to comparsion.
Definition Workspace.cpp:250
virtual ~Workspace()
Deconstructor.
Definition Workspace.cpp:208
QMdiArea * mdiArea()
This method returns the QMdiArea.
Definition Workspace.cpp:295
void cubeViewportActivated(MdiCubeViewport *)
Signal triggered when a Cube is activated in the Workspace.
void addCubeViewport(QString cubename)
Method adds the name of a cube into Workspace as a CubeViewport.
Definition Workspace.cpp:339
QWidget * cubeToMdiWidget(Cube *cube)
Converts a cube to an MdiWidget.
Definition Workspace.cpp:280
bool confirmClose()
Confirms that the user wishes toc lose the Workspace.
Definition Workspace.cpp:267
void cubeViewportAdded(MdiCubeViewport *)
Signal triggered when a Cube is added to the Workspace.
void addCubeViewportFromList(QString cubelist)
Method adds cubes into Workspace as a CubeViewport from a list of cubes.
Definition Workspace.cpp:391
void addBrowseView(QString cube)
Method is called to add a Cube from BrowseView.
Definition Workspace.cpp:490
Workspace(bool selfContained, QWidget *parent=0)
Constructor for Workspace.
Definition Workspace.cpp:58
void addImages(ImageList *images)
Adds a list of Images to a viewport.
Definition Workspace.cpp:260
QVector< MdiCubeViewport * > * cubeViewportList()
This method returns a Vector of MdiCubeViewports.
Definition Workspace.cpp:238
void activateViewport(QMdiSubWindow *w)
This method activates the Viewport.
Definition Workspace.cpp:222
This is free and unencumbered software released into the public domain.
Definition Calculator.h:18
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16