Isis 3.0 Programmer Reference
Back | Home
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 
81  class Workspace : public QWidget {
82  Q_OBJECT
83 
84  public:
85  Workspace(bool selfContained, QWidget *parent = 0);
86  Workspace(const Workspace &other);
87  virtual ~Workspace();
89  Workspace &operator=(Workspace other);
90 
91  void addImages(ImageList *images);
92  bool confirmClose();
93  QWidget *cubeToMdiWidget(Cube *cube);
94  QMdiArea *mdiArea();
95 
96  signals:
97  void cubeViewportAdded(MdiCubeViewport *);
98  void cubeViewportActivated(MdiCubeViewport *);
99 
100  public slots:
101  void addCubeViewport(QString cube);
103 
104  void addBrowseView(QString cube);
105 
106  protected slots:
108 
109  private:
110  QPointer<QMdiArea> m_mdi;
111  QVector< MdiCubeViewport * > * m_cubeViewportList;
112  ToolList *m_tools;
113  };
114 };
115 
116 #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:44
Workspace(bool selfContained, QWidget *parent=0)
Workspace constructor.
Definition: Workspace.cpp:57
QVector< MdiCubeViewport * > * cubeViewportList()
Repopulates the list of MdiCubeViewports and returns a pointer to this list.
Definition: Workspace.cpp:237
void addCubeViewport(QString cube)
Add a cubeViewport to the workspace, open the cube.
Definition: Workspace.cpp:326
Allows tools to share data between each other.
Definition: ToolList.h:46
void activateViewport(QMdiSubWindow *w)
This gets called when a window is activated or the workspace loses focus.
Definition: Workspace.cpp:221
IO Handler for Isis Cubes.
Definition: Cube.h:158

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:31:51