Isis 3 Programmer Reference
Workspace.h
Go to the documentation of this file.
1 #ifndef Workspace_h
2 #define Workspace_h
3 
26 #include <QMdiArea>
27 #include <QPointer>
28 
29 template< class T > class QVector;
30 
31 namespace Isis {
32  class Cube;
33  class Image;
34  class ImageList;
35  class MdiCubeViewport;
36  class ToolList;
37 
90  class Workspace : public QWidget {
91  Q_OBJECT
92 
93  public:
101  Workspace(bool selfContained, QWidget *parent = 0);
102 
108  Workspace(const Workspace &other);
109 
114  virtual ~Workspace();
115 
122 
129  Workspace &operator=(Workspace other);
130 
136  void addImages(ImageList *images);
137 
143  bool confirmClose();
144 
151  QWidget *cubeToMdiWidget(Cube *cube);
152 
158  QMdiArea *mdiArea();
159 
160  signals:
165 
171 
172  public slots:
173 
179  void addCubeViewport(QString cubename);
180 
186  void addCubeViewportFromList(QString cubelist);
187 
188 
195 
201  void addBrowseView(QString cube);
202 
203  protected slots:
204 
211 
212  private:
214  QPointer<QMdiArea> m_mdi;
219  };
220 };
221 
222 #endif
Cube display widget for certain Isis MDI applications.
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
Workspace(bool selfContained, QWidget *parent=0)
Constructor for Workspace.
Definition: Workspace.cpp:58
void addBrowseView(QString cube)
Method is called to add a Cube from BrowseView.
Definition: Workspace.cpp:490
QVector< MdiCubeViewport *> * cubeViewportList()
This method returns a Vector of MdiCubeViewports.
Definition: Workspace.cpp:238
virtual ~Workspace()
Deconstructor.
Definition: Workspace.cpp:208
ToolList * m_tools
List of all of the tools.
Definition: Workspace.h:218
void addImages(ImageList *images)
Adds a list of Images to a viewport.
Definition: Workspace.cpp:260
void addCubeViewportFromList(QString cubelist)
Method adds cubes into Workspace as a CubeViewport from a list of cubes.
Definition: Workspace.cpp:391
QVector< MdiCubeViewport *> * m_cubeViewportList
List of cube viewports.
Definition: Workspace.h:216
Workspace & operator=(Workspace other)
Is equal to comparsion.
Definition: Workspace.cpp:250
QWidget * cubeToMdiWidget(Cube *cube)
Converts a cube to an MdiWidget.
Definition: Workspace.cpp:280
void addCubeViewport(QString cubename)
Method adds the name of a cube into Workspace as a CubeViewport.
Definition: Workspace.cpp:339
bool confirmClose()
Confirms that the user wishes toc lose the Workspace.
Definition: Workspace.cpp:267
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QMdiArea * mdiArea()
This method returns the QMdiArea.
Definition: Workspace.cpp:295
void cubeViewportActivated(MdiCubeViewport *)
Signal triggered when a Cube is activated in the Workspace.
QPointer< QMdiArea > m_mdi
The mdi area.
Definition: Workspace.h:214
Allows tools to share data between each other.
Definition: ToolList.h:46
void activateViewport(QMdiSubWindow *w)
This method activates the Viewport.
Definition: Workspace.cpp:222
void cubeViewportAdded(MdiCubeViewport *)
Signal triggered when a Cube is added to the Workspace.
IO Handler for Isis Cubes.
Definition: Cube.h:170