CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsShowEDI.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowEDI_h
2 #define Fireworks_Core_CmsShowEDI_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowEDI
7 //
16 //
17 // Original Author: Joshua Berger
18 // Created: Mon Jun 23 15:48:42 EDT 2008
19 // $Id: CmsShowEDI.h,v 1.20.4.1 2013/04/09 00:51:48 amraktad Exp $
20 //
21 
22 // system include files
23 #ifndef __CINT__
24 #include <sigc++/connection.h>
25 #endif
26 #include "GuiTypes.h"
27 #include "TGFrame.h"
28 
29 // user include files
30 
31 //#include "Fireworks/Core/interface/FWModelChangeSignal.h"
32 
34 
35 // forward declarations
36 class FWSelectionManager;
37 class FWColorManager;
38 class FWEventItem;
39 class TGLabel;
40 class FWColorSelect;
41 class TGHSlider;
42 class TGCheckButton;
43 class TGNumberEntry;
44 class TGTextEntry;
45 class TGTextButton;
46 class TGTextView;
47 class TGComboBoxPopup;
48 class TGListBox;
51 class TGTab;
52 
53 class CmsShowEDI : public TGTransientFrame
54 {
55 
56 public:
57  CmsShowEDI(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, FWSelectionManager* selMgr = 0,
58  FWColorManager* colorMgr=0);
59  virtual ~CmsShowEDI();
60 
61  virtual void CloseWindow() { UnmapWindow(); }
62 
63  // ---------- const member functions ---------------------
64 
65  // ---------- static member functions --------------------
66 
67  // ---------- member functions --------------------------
68  void fillEDIFrame();
69  void removeItem();
70  // void emptyEDIFrame();
71  void updateDisplay();
72  void updateFilter();
73  void colorSetChanged();
74  void disconnectAll();
75  void changeItemColor(Color_t color );
76  void changeSelectionColor(Color_t color );
77  void toggleItemVisible(Bool_t on = kTRUE);
78  void changeItemOpacity(Int_t opacity);
79  void runFilter();
80  void runSelection();
81  void selectAll();
82  void deselectAll();
83 
84  void updateLayerControls();
85  void moveToBack();
86  void moveToFront();
87  void moveToLayer(Long_t);
88  void show(FWDataCategories);
89 
90  ClassDef(CmsShowEDI, 0);
91 
92 private:
93  CmsShowEDI(const CmsShowEDI&); // stop default
94 
95  const CmsShowEDI& operator=(const CmsShowEDI&); // stop default
96 
97  void clearPBFrame();
98  // void addBut();
99  // ---------- member data --------------------------------
101  TGTab* m_tabs;
102  TGLabel* m_objectLabel;
103  TGTextButton* m_removeButton;
104  TGTextButton* m_frontButton;
105  TGTextButton* m_backButton;
106  TGNumberEntry* m_layerEntry;
108  TGHSlider* m_opacitySlider;
109  TGCheckButton* m_isVisibleButton;
112  TGTextButton* m_filterButton;
113  TGTextButton* m_selectButton;
114  TGTextButton* m_selectAllButton;
115  TGTextButton* m_deselectAllButton;
117  TGTextEntry* m_nameEntry;
118  TGTextEntry* m_typeEntry;
119  TGTextEntry* m_moduleEntry;
120  TGTextEntry* m_instanceEntry;
121  TGTextEntry* m_processEntry;
123 #ifndef __CINT__
124  sigc::connection m_displayChangedConn;
125  sigc::connection m_modelChangedConn;
126  sigc::connection m_destroyedConn;
127 #endif
128  TGTextView* m_filterError;
129  TGTextView* m_selectError;
132 
133  TGCompositeFrame* m_settersFrame;
134 };
135 
136 
137 #endif
void fillEDIFrame()
Definition: CmsShowEDI.cc:243
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:124
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:108
void colorSetChanged()
Definition: CmsShowEDI.cc:531
FWColorSelect * m_cw
Definition: CmsShowEDI.h:116
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:109
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:110
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:102
TGTab * m_tabs
Definition: CmsShowEDI.h:101
void disconnectAll()
Definition: CmsShowEDI.cc:370
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:114
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:358
void updateFilter()
Definition: CmsShowEDI.cc:365
void moveToFront()
Definition: CmsShowEDI.cc:352
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:133
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:120
void removeItem()
Definition: CmsShowEDI.cc:307
void updateDisplay()
Definition: CmsShowEDI.cc:330
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:417
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:106
void moveToBack()
Definition: CmsShowEDI.cc:346
virtual void CloseWindow()
Definition: CmsShowEDI.h:61
const CmsShowEDI & operator=(const CmsShowEDI &)
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:115
TGTextButton * m_backButton
Definition: CmsShowEDI.h:105
TGTextEntry * m_moduleEntry
Definition: CmsShowEDI.h:119
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:126
FWColorManager * m_colorManager
Definition: CmsShowEDI.h:131
void changeItemOpacity(Int_t opacity)
Definition: CmsShowEDI.cc:440
unsigned int UInt_t
Definition: FUTypes.h:12
TGTextView * m_selectError
Definition: CmsShowEDI.h:129
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:103
virtual ~CmsShowEDI()
Definition: CmsShowEDI.cc:190
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
FWExpressionValidator * m_validator
Definition: CmsShowEDI.h:130
TGTextView * m_filterError
Definition: CmsShowEDI.h:128
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:121
FWColorSelect * m_colorSelectWidget
Definition: CmsShowEDI.h:107
void runFilter()
Definition: CmsShowEDI.cc:447
CmsShowEDI(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=0, FWColorManager *colorMgr=0)
Definition: CmsShowEDI.cc:64
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:112
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:100
ClassDef(CmsShowEDI, 0)
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:118
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:426
void runSelection()
Definition: CmsShowEDI.cc:464
void deselectAll()
Definition: CmsShowEDI.cc:501
FWEventItem * m_item
Definition: CmsShowEDI.h:122
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:125
void updateLayerControls()
Definition: CmsShowEDI.cc:339
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:111
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:117
void changeSelectionColor(Color_t color)
Definition: CmsShowEDI.cc:511
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:104
void clearPBFrame()
Definition: CmsShowEDI.cc:229
void show(FWDataCategories)
Definition: CmsShowEDI.cc:524
T w() const
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:113
void selectAll()
Definition: CmsShowEDI.cc:492