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.18 2010/11/10 20:07:06 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 toggleItemVisible(Bool_t on = kTRUE);
77  void changeItemOpacity(Int_t opacity);
78  void runFilter();
79  void runSelection();
80  void selectAll();
81 
82  void updateLayerControls();
83  void moveToBack();
84  void moveToFront();
85  void moveToLayer(Long_t);
86 
87  void show(FWDataCategories);
88 
89  ClassDef(CmsShowEDI, 0);
90 
91 private:
92  CmsShowEDI(const CmsShowEDI&); // stop default
93 
94  const CmsShowEDI& operator=(const CmsShowEDI&); // stop default
95 
96  // ---------- member data --------------------------------
98  TGTab* m_tabs;
99  TGLabel* m_objectLabel;
100  TGTextButton* m_removeButton;
101  TGTextButton* m_frontButton;
102  TGTextButton* m_backButton;
103  TGNumberEntry* m_layerEntry;
105  TGHSlider* m_opacitySlider;
106  TGCheckButton* m_isVisibleButton;
109  TGTextButton* m_filterButton;
110  TGTextButton* m_selectButton;
111  TGTextButton* m_selectAllButton;
112  TGTextEntry* m_nameEntry;
113  TGTextEntry* m_typeEntry;
114  TGTextEntry* m_moduleEntry;
115  TGTextEntry* m_instanceEntry;
116  TGTextEntry* m_processEntry;
118 #ifndef __CINT__
119  sigc::connection m_displayChangedConn;
120  sigc::connection m_modelChangedConn;
121  sigc::connection m_destroyedConn;
122 #endif
123  TGTextView* m_filterError;
124  TGTextView* m_selectError;
127 };
128 
129 
130 #endif
void fillEDIFrame()
Definition: CmsShowEDI.cc:211
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:119
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:105
void colorSetChanged()
Definition: CmsShowEDI.cc:461
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:106
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:107
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:99
TGTab * m_tabs
Definition: CmsShowEDI.h:98
void disconnectAll()
Definition: CmsShowEDI.cc:331
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:111
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:319
void updateFilter()
Definition: CmsShowEDI.cc:326
void moveToFront()
Definition: CmsShowEDI.cc:313
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:115
void removeItem()
Definition: CmsShowEDI.cc:268
void updateDisplay()
Definition: CmsShowEDI.cc:291
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:376
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:103
void moveToBack()
Definition: CmsShowEDI.cc:307
virtual void CloseWindow()
Definition: CmsShowEDI.h:61
const CmsShowEDI & operator=(const CmsShowEDI &)
TGTextButton * m_backButton
Definition: CmsShowEDI.h:102
TGTextEntry * m_moduleEntry
Definition: CmsShowEDI.h:114
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:121
FWColorManager * m_colorManager
Definition: CmsShowEDI.h:126
void changeItemOpacity(Int_t opacity)
Definition: CmsShowEDI.cc:398
unsigned int UInt_t
Definition: FUTypes.h:12
TGTextView * m_selectError
Definition: CmsShowEDI.h:124
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:100
virtual ~CmsShowEDI()
Definition: CmsShowEDI.cc:174
FWExpressionValidator * m_validator
Definition: CmsShowEDI.h:125
TGTextView * m_filterError
Definition: CmsShowEDI.h:123
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:116
FWColorSelect * m_colorSelectWidget
Definition: CmsShowEDI.h:104
void runFilter()
Definition: CmsShowEDI.cc:405
CmsShowEDI(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=0, FWColorManager *colorMgr=0)
Definition: CmsShowEDI.cc:63
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:109
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:97
ClassDef(CmsShowEDI, 0)
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:113
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:384
void runSelection()
Definition: CmsShowEDI.cc:424
FWEventItem * m_item
Definition: CmsShowEDI.h:117
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:120
void updateLayerControls()
Definition: CmsShowEDI.cc:300
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:108
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:112
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:101
void show(FWDataCategories)
Definition: CmsShowEDI.cc:454
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:110
void selectAll()
Definition: CmsShowEDI.cc:447