USGS

Isis 3.0 Developer's Reference (API)

Home

WindowTool.h

Go to the documentation of this file.
00001 #ifndef WindowTool_h
00002 #define WindowTool_h
00003 
00004 #include "Tool.h"
00005 
00006 class QAction;
00007 
00008 namespace Isis {
00009   class MdiCubeViewport;
00010 
00020   class WindowTool : public Tool {
00021       Q_OBJECT
00022 
00023     public:
00024       WindowTool(QWidget *parent);
00025       void addTo(QMenu *menu);
00026       void addTo(Workspace *ws);
00027       void addToPermanent(QToolBar *toolbar);
00028 
00029     protected:
00031       QString menuName() const {
00032         return "&Window";
00033       };
00034       void updateTool();
00035       void addConnections(MdiCubeViewport *cvp);
00036       void removeConnections(MdiCubeViewport *cvp);
00037 
00038     private slots:
00039       void changeCursor();
00040       void linkWindows();
00041       void unlinkWindows();
00042       void resizeWindows();
00043       void updateViewportCursor(MdiCubeViewport *);
00044 
00045     private:
00046 
00047     private:
00048       QAction *p_cascadeWindows;   
00049       QAction *p_tileWindows;      
00050       QAction *p_resizeWindows;    
00051       QAction *p_prevWindow;       
00052       QAction *p_nextWindow;       
00053       QAction *p_closeWindow;      
00054       QAction *p_closeAllWindows;  
00055       QAction *p_linkWindow;       
00056       QAction *p_linkAllWindows;   
00057       QAction *p_unlinkAllWindows; 
00058       QAction *p_changeCursor;     
00059   };
00060 };
00061 
00062 #endif
00063