Isis 3.0 Programmer Reference
Back | Home
WindowTool.h
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:
60  };
61 };
62 
63 #endif
64 
Cube display widget for certain Isis MDI applications.
void changeCursor()
toggles the cursor from an arrow to a crosshair.
Definition: WindowTool.cpp:230
QString menuName() const
Returns the menu name.
Definition: WindowTool.h:30
void resizeWindows()
Resizes all the viewport windows to the active viewport window size.
Definition: WindowTool.cpp:261
QAction * p_unlinkAllWindows
unlink all windows action
Definition: WindowTool.h:58
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the cube viewport.
Definition: WindowTool.cpp:189
void linkWindows()
Links all viewport windows in the workspace.
Definition: WindowTool.cpp:205
QAction * p_prevWindow
previous window action
Definition: WindowTool.h:52
QAction * p_tileWindows
tile windows action
Definition: WindowTool.h:50
QAction * p_closeWindow
close window action
Definition: WindowTool.h:54
void addToPermanent(QToolBar *toolbar)
Adds the link window action to the tool bar.
Definition: WindowTool.cpp:136
QAction * p_changeCursor
changes the cursor when it moves over the viewport
Definition: WindowTool.h:59
QAction * p_linkAllWindows
link all windows action
Definition: WindowTool.h:57
WindowTool(QWidget *parent)
WindowTool constructor.
Definition: WindowTool.cpp:21
void unlinkWindows()
Unlinks all the viewport windows in the workspace.
Definition: WindowTool.cpp:218
QAction * p_linkWindow
link window action
Definition: WindowTool.h:56
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
QAction * p_nextWindow
next window action
Definition: WindowTool.h:53
QAction * p_resizeWindows
resize windows action
Definition: WindowTool.h:51
QAction * p_cascadeWindows
cascade windows action
Definition: WindowTool.h:49
QAction * p_closeAllWindows
close all action
Definition: WindowTool.h:55

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