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 //
20 
21 // system include files
22 #ifndef __CINT__
23 #include <sigc++/connection.h>
24 #endif
25 #include "GuiTypes.h"
26 #include "TGFrame.h"
27 
28 // user include files
29 
30 //#include "Fireworks/Core/interface/FWModelChangeSignal.h"
31 
33 
34 // forward declarations
35 class FWSelectionManager;
36 class FWColorManager;
37 class FWEventItem;
38 class TGLabel;
39 class FWColorSelect;
40 class TGHSlider;
41 class TGCheckButton;
42 class TGNumberEntry;
43 class TGTextEntry;
44 class TGTextButton;
45 class TGTextView;
46 class TGComboBoxPopup;
47 class TGListBox;
50 class TGTab;
51 
52 class CmsShowEDI : public TGTransientFrame
53 {
54 
55 public:
56  CmsShowEDI(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, FWSelectionManager* selMgr = 0,
57  FWColorManager* colorMgr=0);
58  virtual ~CmsShowEDI();
59 
60  virtual void CloseWindow() { UnmapWindow(); }
61 
62  // ---------- const member functions ---------------------
63 
64  // ---------- static member functions --------------------
65 
66  // ---------- member functions --------------------------
67  void fillEDIFrame();
68  void removeItem();
69  // void emptyEDIFrame();
70  void updateDisplay();
71  void updateFilter();
72  void colorSetChanged();
73  void disconnectAll();
74  void changeItemColor(Color_t color );
75  void changeSelectionColor(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  void deselectAll();
82 
83  void updateLayerControls();
84  void moveToBack();
85  void moveToFront();
86  void moveToLayer(Long_t);
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  void clearPBFrame();
97  // void addBut();
98  // ---------- member data --------------------------------
100  TGTab* m_tabs;
101  TGLabel* m_objectLabel;
102  TGTextButton* m_removeButton;
103  TGTextButton* m_frontButton;
104  TGTextButton* m_backButton;
105  TGNumberEntry* m_layerEntry;
107  TGHSlider* m_opacitySlider;
108  TGCheckButton* m_isVisibleButton;
111  TGTextButton* m_filterButton;
112  TGTextButton* m_selectButton;
113  TGTextButton* m_selectAllButton;
114  TGTextButton* m_deselectAllButton;
116  TGTextEntry* m_nameEntry;
117  TGTextEntry* m_typeEntry;
118  TGTextEntry* m_moduleEntry;
119  TGTextEntry* m_instanceEntry;
120  TGTextEntry* m_processEntry;
122 #ifndef __CINT__
123  sigc::connection m_displayChangedConn;
124  sigc::connection m_modelChangedConn;
125  sigc::connection m_destroyedConn;
126 #endif
127  TGTextView* m_filterError;
128  TGTextView* m_selectError;
131 
132  TGCompositeFrame* m_settersFrame;
133 };
134 
135 
136 #endif
void fillEDIFrame()
Definition: CmsShowEDI.cc:241
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:123
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:107
void colorSetChanged()
Definition: CmsShowEDI.cc:529
const double w
Definition: UKUtility.cc:23
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
FWColorSelect * m_cw
Definition: CmsShowEDI.h:115
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:108
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:109
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:101
TGTab * m_tabs
Definition: CmsShowEDI.h:100
void disconnectAll()
Definition: CmsShowEDI.cc:368
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:113
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:356
void updateFilter()
Definition: CmsShowEDI.cc:363
void moveToFront()
Definition: CmsShowEDI.cc:350
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:132
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:119
void removeItem()
Definition: CmsShowEDI.cc:305
void updateDisplay()
Definition: CmsShowEDI.cc:328
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:415
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:105
void moveToBack()
Definition: CmsShowEDI.cc:344
virtual void CloseWindow()
Definition: CmsShowEDI.h:60
const CmsShowEDI & operator=(const CmsShowEDI &)
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:114
TGTextButton * m_backButton
Definition: CmsShowEDI.h:104
TGTextEntry * m_moduleEntry
Definition: CmsShowEDI.h:118
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:125
FWColorManager * m_colorManager
Definition: CmsShowEDI.h:130
void changeItemOpacity(Int_t opacity)
Definition: CmsShowEDI.cc:438
TGTextView * m_selectError
Definition: CmsShowEDI.h:128
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:102
virtual ~CmsShowEDI()
Definition: CmsShowEDI.cc:188
FWExpressionValidator * m_validator
Definition: CmsShowEDI.h:129
TGTextView * m_filterError
Definition: CmsShowEDI.h:127
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:120
FWColorSelect * m_colorSelectWidget
Definition: CmsShowEDI.h:106
void runFilter()
Definition: CmsShowEDI.cc:445
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:111
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:99
ClassDef(CmsShowEDI, 0)
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:117
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:424
void runSelection()
Definition: CmsShowEDI.cc:462
void deselectAll()
Definition: CmsShowEDI.cc:499
FWEventItem * m_item
Definition: CmsShowEDI.h:121
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:124
void updateLayerControls()
Definition: CmsShowEDI.cc:337
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:110
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:116
void changeSelectionColor(Color_t color)
Definition: CmsShowEDI.cc:509
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:103
void clearPBFrame()
Definition: CmsShowEDI.cc:227
void show(FWDataCategories)
Definition: CmsShowEDI.cc:522
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:112
void selectAll()
Definition: CmsShowEDI.cc:490