Isis Developer Reference
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 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();
51  void updateViewportCursor(MdiCubeViewport *);
52  void tileViewports();
53 
54  private:
55  int viewportSize();
56 
57  private:
58  QMdiArea *p_mdiArea;
59  QAction *p_cascadeWindows;
60  QAction *p_tileWindows;
61  QAction *p_resizeWindows;
62  QAction *p_prevWindow;
63  QAction *p_nextWindow;
64  QAction *p_closeWindow;
65  QAction *p_closeAllWindows;
66  QAction *p_linkWindow;
67  QAction *p_linkAllWindows;
68  QAction *p_unlinkAllWindows;
69  QAction *p_changeCursor;
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::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
MdiCubeViewport.h
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::WindowTool::addToPermanent
void addToPermanent(QToolBar *toolbar)
Adds the link window action to the tool bar.
Definition: WindowTool.cpp:204
Isis::Tool::cubeViewportList
CubeViewportList * cubeViewportList() const
Return the list of cubeviewports.
Definition: Tool.cpp:390
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
MainWindow.h
QMenu
Isis::Tool::toolIconDir
QString toolIconDir() const
returns the path to the icon directory.
Definition: Tool.h:113
Isis::WindowTool
Definition: WindowTool.h:25
Tool.h
QToolBar
WindowTool.h
Isis::MdiCubeViewport::setLinked
void setLinked(bool b)
Change the linked state of the viewport.
Definition: MdiCubeViewport.cpp:58
Isis::Workspace::mdiArea
QMdiArea * mdiArea()
This method returns the QMdiArea.
Definition: Workspace.cpp:295
Isis::Tool::addTo
void addTo(ViewportMainWindow *mw)
Adds the tool to the application.
Definition: Tool.cpp:78
Workspace.h
Isis::WindowTool::addConnections
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the cube viewport.
Definition: WindowTool.cpp:244
Isis::Tool::activate
void activate(bool)
Activates the tool.
Definition: Tool.cpp:131
Isis::WindowTool::menuName
QString menuName() const
Definition: WindowTool.h:37
Isis::Workspace
Definition: Workspace.h:78
QMdiSubWindow
Isis::WindowTool::addTo
void addTo(QMenu *menu)
Adds the cascade windows, tile windows, resize windows, next window, previous window,...
Definition: WindowTool.cpp:217
QAction
Isis::Tool::cubeViewport
MdiCubeViewport * cubeViewport() const
Return the current cubeviewport.
Definition: Tool.h:197
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16