00001 #ifndef __VIEWSET_H 00002 #define __VIEWSET_H 00003 00004 #include "windows_defs.h" 00005 00006 #include <qobject.h> 00007 00008 #include "view.h" 00009 #include "extaction.h" 00010 #include "viewpopupaction.h" 00011 00012 #include <vector> 00013 #include <qaction.h> 00014 00022 class GV_EXPORT ViewSet : public QObject { 00023 Q_OBJECT 00024 protected: 00025 std::vector<View*> mViewSet ; 00026 QActionGroup *mMenuGroup ; 00027 QWidget *mMenuParent ; 00028 00029 public: 00030 ViewSet( ) { 00031 mMenuGroup = NULL; 00032 } 00033 virtual ~ViewSet( ) { 00034 } 00035 00036 void addView( View & ); 00037 void delView( int iview ); 00038 unsigned int size( ); 00039 View& getView( int iview ); 00040 void setSelBox( Rect &selbox ); 00041 View& operator[]( int iview ) { 00042 return *mViewSet[iview]; 00043 } 00044 void setActGrp( QActionGroup *grp ) { 00045 mMenuGroup = grp; 00046 /* 00047 connect( mMenuGroup, 00048 SIGNAL( selected( QAction* ) ), 00049 this, 00050 SLOT( popupView( QAction* ) ) ); 00051 */ 00052 } 00053 void setMenuParent( QWidget *p ) { 00054 mMenuParent = p; 00055 } 00056 void setRSM( ImageFormat::ScaleType st ); 00057 00058 public slots: 00059 void initViews( ); 00060 void resetViews( ); 00061 void repaintViews( ); 00062 void redrawViews( ); 00063 void popupView( ViewPopupAction* ); 00064 00065 signals: 00066 void viewSetChanged( ); 00067 00068 }; 00069 00070 #endif 00071 00072 00073
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |