CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
54  CmsShowEDI(const TGWindow* p = nullptr,
55  UInt_t w = 1,
56  UInt_t h = 1,
57  FWSelectionManager* selMgr = nullptr,
58  FWColorManager* colorMgr = nullptr);
59  ~CmsShowEDI() override;
60 
61  void CloseWindow() override { 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 
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 #endif
void fillEDIFrame()
Definition: CmsShowEDI.cc:250
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:124
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:108
void colorSetChanged()
Definition: CmsShowEDI.cc:501
const double w
Definition: UKUtility.cc:23
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:364
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:114
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:357
void updateFilter()
Definition: CmsShowEDI.cc:362
void moveToFront()
Definition: CmsShowEDI.cc:353
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:133
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:120
void removeItem()
Definition: CmsShowEDI.cc:313
void updateDisplay()
Definition: CmsShowEDI.cc:336
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:410
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:106
void moveToBack()
Definition: CmsShowEDI.cc:349
const CmsShowEDI & operator=(const CmsShowEDI &)
ClassDefOverride(CmsShowEDI, 0)
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:115
TGTextButton * m_backButton
Definition: CmsShowEDI.h:105
void CloseWindow() override
Definition: CmsShowEDI.h:61
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:431
TGTextView * m_selectError
Definition: CmsShowEDI.h:129
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:103
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:437
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:112
CmsShowEDI(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=nullptr, FWColorManager *colorMgr=nullptr)
Definition: CmsShowEDI.cc:64
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:100
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:118
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:418
void runSelection()
Definition: CmsShowEDI.cc:453
void deselectAll()
Definition: CmsShowEDI.cc:481
FWEventItem * m_item
Definition: CmsShowEDI.h:122
~CmsShowEDI() override
Definition: CmsShowEDI.cc:201
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:125
void updateLayerControls()
Definition: CmsShowEDI.cc:344
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:111
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:117
void changeSelectionColor(Color_t color)
Definition: CmsShowEDI.cc:488
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:104
void clearPBFrame()
Definition: CmsShowEDI.cc:239
void show(FWDataCategories)
Definition: CmsShowEDI.cc:498
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:113
void selectAll()
Definition: CmsShowEDI.cc:475