Isis 3.0
Back | Home
WindowTool.h
Go to the documentation of this file.
1 #ifndef WindowTool_h
2 #define WindowTool_h
3 
4 #include "Tool.h"
5 
6 class QAction;
7 
8 namespace Isis {
9  class MdiCubeViewport;
10 
20  class WindowTool : public Tool {
21  Q_OBJECT
22 
23  public:
24  WindowTool(QWidget *parent);
25  void addTo(QMenu *menu);
26  void addTo(Workspace *ws);
27  void addToPermanent(QToolBar *toolbar);
28 
30  QString menuName() const {
31  return "&Window";
32  }
33 
34  protected:
35  void updateTool();
38 
39  private slots:
40  void changeCursor();
41  void linkWindows();
42  void unlinkWindows();
43  void resizeWindows();
44  void updateViewportCursor(MdiCubeViewport *);
45 
46  private:
47 
48  private:
49  QAction *p_cascadeWindows;
50  QAction *p_tileWindows;
51  QAction *p_resizeWindows;
52  QAction *p_prevWindow;
53  QAction *p_nextWindow;
54  QAction *p_closeWindow;
55  QAction *p_closeAllWindows;
56  QAction *p_linkWindow;
57  QAction *p_linkAllWindows;
58  QAction *p_unlinkAllWindows;
59  QAction *p_changeCursor;
60  };
61 };
62 
63 #endif
64 
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:53
Definition: WindowTool.h:20
QString menuName() const
Returns the menu name.
Definition: WindowTool.h:30
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the cube viewport.
Definition: WindowTool.cpp:189
void addToPermanent(QToolBar *toolbar)
Adds the link window action to the tool bar.
Definition: WindowTool.cpp:136
WindowTool(QWidget *parent)
WindowTool constructor.
Definition: WindowTool.cpp:21
Definition: Workspace.h:81
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the cube viewport.
Definition: WindowTool.cpp:176
void addTo(QMenu *menu)
Adds the cascade windows, tile windows, resize windows, next window, previous window, close window, and close all windows actions to the menu.
Definition: WindowTool.cpp:149
void updateTool()
Updates the WindowTool.
Definition: WindowTool.cpp:276
Base class for the Qisis tools.
Definition: Tool.h:81

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:18