CMS 3D CMS Logo

IgTwigOps.h

Go to the documentation of this file.
00001 #ifndef IG_COMMON_OPS_IG_TWIG_OPS_H
00002 # define IG_COMMON_OPS_IG_TWIG_OPS_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "Iguana/Studio/interface/config.h"
00007 # include <qobject.h>
00008 
00009 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00010 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00011 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00012 
00013 class IgTwig;
00014 class IgQtObjectMenu;
00015 class IgQtObjectMenuMessage;
00016 
00017 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00018 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00019 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00020 
00023 class IGUANA_STUDIO_API IgTwigOps : public QObject
00024 {
00025     Q_OBJECT
00026 public:
00027     static const int HS_ALL_LEAVES      = -1;
00028     static const int HS_ALL_CHILDREN    = -2;
00029     static const int HS_N               = -3;
00030 
00031     static const int MENU_ENABLE        = 1;
00032     static const int MENU_ENABLE_UP     = 2;
00033 
00034     static const int MENU_SHOW_SEP      = 10;
00035     static const int MENU_SHOW_THIS     = 11;
00036     static const int MENU_SHOW_ONLY     = 12;
00037     static const int MENU_SHOW_LEVEL    = 13;
00038     static const int MENU_SHOW_LEAVES   = 1300;
00039     static const int MENU_SHOW_CHILDREN = 1301;
00040     static const int MENU_SHOW_1        = 1302;
00041     static const int MENU_SHOW_2        = 1303;
00042     static const int MENU_SHOW_3        = 1304;
00043     static const int MENU_SHOW_N        = 1305;
00044 
00045     static const int MENU_HIDE_SEP      = 50;
00046     static const int MENU_HIDE_LEVEL    = 51;
00047     static const int MENU_HIDE_LEAVES   = 5100;
00048     static const int MENU_HIDE_CHILDREN = 5101;
00049     static const int MENU_HIDE_1        = 5102;
00050     static const int MENU_HIDE_2        = 5103;
00051     static const int MENU_HIDE_3        = 5104;
00052     static const int MENU_HIDE_N        = 5105;
00053 
00054     // implicit constructor
00055     // implicit destructor
00056     // implicit copy constructor
00057     // implicit assignment operator
00058 
00059     void                menuAction (IgQtObjectMenuMessage message);
00060     void                menuUpdate (void);
00061 
00062 public slots:
00063     void                actionEnable (int id);
00064     void                actionVisible (int id);
00065     void                actionShow (int n);
00066     void                actionHide (int n);
00067 
00068 private:
00069     void                doShow (int n, IgTwig *twig);
00070     void                doHide (int n, IgTwig *twig);
00071 
00072     IgTwig              *m_twig;
00073     IgQtObjectMenu      *m_menu;
00074 };
00075 
00076 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00077 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00078 
00079 #endif // IG_COMMON_OPS_IG_TWIG_OPS_H

Generated on Tue Jun 9 17:38:48 2009 for CMSSW by  doxygen 1.5.4