Isis 3 Programmer Reference
WindowTool.h
1 #ifndef WindowTool_h
2 #define WindowTool_h
3 
4 #include "Tool.h"
5 
6 class QAction;
7 class QMdiArea;
8 
9 namespace Isis {
10  class MdiCubeViewport;
11 
25  class WindowTool : public Tool {
26  Q_OBJECT
27 
28  public:
29  WindowTool(QWidget *parent);
30  void addTo(QMenu *menu);
31  void addTo(Workspace *ws);
32  void addToPermanent(QToolBar *toolbar);
33 
37  QString menuName() const {
38  return "&Window";
39  }
40 
41  protected:
42  void updateTool();
45 
46  private slots:
47  void changeCursor();
48  void linkWindows();
49  void unlinkWindows();
50  void resizeWindows();
52  void tileViewports();
53 
54  private:
55  int viewportSize();
56 
57  private:
58  QMdiArea *p_mdiArea;
70  };
71 };
72 
73 #endif
Isis::WindowTool::updateTool
void updateTool()
Updates the WindowTool.
Definition: WindowTool.cpp:342
Isis::WindowTool::removeConnections
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the cube viewport.
Definition: WindowTool.cpp:257
Isis::WindowTool::p_resizeWindows
QAction * p_resizeWindows
resize windows action
Definition: WindowTool.h:61
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Isis::WindowTool::WindowTool
WindowTool(QWidget *parent)
WindowTool constructor.
Definition: WindowTool.cpp:26
Isis::WindowTool::unlinkWindows
void unlinkWindows()
Unlinks all the viewport windows in the workspace.
Definition: WindowTool.cpp:281
Isis::WindowTool::addToPermanent
void addToPermanent(QToolBar *toolbar)
Adds the link window action to the tool bar.
Definition: WindowTool.cpp:204
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
QMenu
Isis::WindowTool
Definition: WindowTool.h:25
QToolBar
Isis::WindowTool::p_nextWindow
QAction * p_nextWindow
next window action
Definition: WindowTool.h:63
Isis::WindowTool::p_tileWindows
QAction * p_tileWindows
tile windows action
Definition: WindowTool.h:60
Isis::WindowTool::p_prevWindow
QAction * p_prevWindow
previous window action
Definition: WindowTool.h:62
Isis::WindowTool::p_linkAllWindows
QAction * p_linkAllWindows
link all windows action
Definition: WindowTool.h:67
Isis::WindowTool::tileViewports
void tileViewports()
Tiles the cube viewports over the Cube DN View.
Definition: WindowTool.cpp:175
Isis::WindowTool::changeCursor
void changeCursor()
Toggles the cursor from an arrow to a crosshair.
Definition: WindowTool.cpp:293
Isis::WindowTool::viewportSize
int viewportSize()
Helper function for determining the size of the viewports.
Definition: WindowTool.cpp:143
Isis::WindowTool::p_closeAllWindows
QAction * p_closeAllWindows
close all action
Definition: WindowTool.h:65
Isis::WindowTool::p_closeWindow
QAction * p_closeWindow
close window action
Definition: WindowTool.h:64
Isis::WindowTool::p_cascadeWindows
QAction * p_cascadeWindows
cascade windows action
Definition: WindowTool.h:59
Isis::WindowTool::addConnections
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the cube viewport.
Definition: WindowTool.cpp:244
Isis::WindowTool::menuName
QString menuName() const
Definition: WindowTool.h:37
Isis::WindowTool::p_unlinkAllWindows
QAction * p_unlinkAllWindows
unlink all windows action
Definition: WindowTool.h:68
Isis::Workspace
Definition: Workspace.h:78
Isis::WindowTool::updateViewportCursor
void updateViewportCursor(MdiCubeViewport *)
Updates the cursor over the viewport.
Definition: WindowTool.cpp:310
Isis::WindowTool::addTo
void addTo(QMenu *menu)
Adds the cascade windows, tile windows, resize windows, next window, previous window,...
Definition: WindowTool.cpp:217
Isis::WindowTool::p_linkWindow
QAction * p_linkWindow
link window action
Definition: WindowTool.h:66
QAction
Isis::WindowTool::linkWindows
void linkWindows()
Links all viewport windows in the workspace.
Definition: WindowTool.cpp:268
Isis::WindowTool::p_changeCursor
QAction * p_changeCursor
changes the cursor when it moves over the viewport
Definition: WindowTool.h:69
Isis::WindowTool::p_mdiArea
QMdiArea * p_mdiArea
area where viewports are displayed
Definition: WindowTool.h:58
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::WindowTool::resizeWindows
void resizeWindows()
Resizes all the viewport windows to the active viewport window size.
Definition: WindowTool.cpp:327