CMS 3D CMS Logo

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
CmsShowEDI::disconnectAll
void disconnectAll()
Definition: CmsShowEDI.cc:364
FWDataCategories.h
CmsShowEDI::updateLayerControls
void updateLayerControls()
Definition: CmsShowEDI.cc:344
CmsShowEDI::m_selectionManager
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:100
CmsShowEDI::m_displayChangedConn
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:124
CmsShowEDI::m_modelChangedConn
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:125
CmsShowEDI::runSelection
void runSelection()
Definition: CmsShowEDI.cc:453
CmsShowEDI::m_selectExpressionEntry
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:111
CmsShowEDI::m_filterExpressionEntry
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:110
CmsShowEDI::m_isVisibleButton
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:109
CmsShowEDI::m_filterButton
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:112
CmsShowEDI::moveToLayer
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:357
FWExpressionValidator
Definition: FWExpressionValidator.h:34
CmsShowEDI::m_settersFrame
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:133
CmsShowEDI::m_deselectAllButton
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:115
CmsShowEDI::ClassDefOverride
ClassDefOverride(CmsShowEDI, 0)
CmsShowEDI::m_tabs
TGTab * m_tabs
Definition: CmsShowEDI.h:101
CmsShowEDI::m_instanceEntry
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:120
CmsShowEDI::m_nameEntry
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:117
CmsShowEDI::m_item
FWEventItem * m_item
Definition: CmsShowEDI.h:122
CmsShowEDI::moveToFront
void moveToFront()
Definition: CmsShowEDI.cc:353
FWGUIValidatingTextEntry
Definition: FWGUIValidatingTextEntry.h:35
CmsShowEDI::updateDisplay
void updateDisplay()
Definition: CmsShowEDI.cc:336
CmsShowEDI::m_moduleEntry
TGTextEntry * m_moduleEntry
Definition: CmsShowEDI.h:119
CmsShowEDI
Definition: CmsShowEDI.h:52
CmsShowEDI::show
void show(FWDataCategories)
Definition: CmsShowEDI.cc:498
CmsShowEDI::colorSetChanged
void colorSetChanged()
Definition: CmsShowEDI.cc:501
CmsShowEDI::removeItem
void removeItem()
Definition: CmsShowEDI.cc:313
FWDataCategories
CmsShowEDI::m_processEntry
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:121
CmsShowEDI::m_colorSelectWidget
FWColorSelect * m_colorSelectWidget
Definition: CmsShowEDI.h:107
w
const double w
Definition: UKUtility.cc:23
CmsShowEDI::CloseWindow
void CloseWindow() override
Definition: CmsShowEDI.h:61
CmsShowEDI::CmsShowEDI
CmsShowEDI(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=nullptr, FWColorManager *colorMgr=nullptr)
Definition: CmsShowEDI.cc:64
h
CmsShowEDI::runFilter
void runFilter()
Definition: CmsShowEDI.cc:437
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CmsShowEDI::m_selectAllButton
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:114
CmsShowEDI::updateFilter
void updateFilter()
Definition: CmsShowEDI.cc:362
FWSelectionManager
Definition: FWSelectionManager.h:34
CmsShowEDI::m_frontButton
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:104
CmsShowEDI::changeSelectionColor
void changeSelectionColor(Color_t color)
Definition: CmsShowEDI.cc:488
CmsShowEDI::moveToBack
void moveToBack()
Definition: CmsShowEDI.cc:349
CmsShowEDI::m_destroyedConn
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:126
CmsShowEDI::m_removeButton
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:103
FWColorSelect
Definition: FWColorSelect.h:107
FWColorManager
Definition: FWColorManager.h:45
CmsShowEDI::changeItemOpacity
void changeItemOpacity(Int_t opacity)
Definition: CmsShowEDI.cc:431
CmsShowEDI::m_filterError
TGTextView * m_filterError
Definition: CmsShowEDI.h:128
CmsShowEDI::m_layerEntry
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:106
CmsShowEDI::changeItemColor
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:410
CmsShowEDI::m_validator
FWExpressionValidator * m_validator
Definition: CmsShowEDI.h:130
CmsShowEDI::clearPBFrame
void clearPBFrame()
Definition: CmsShowEDI.cc:239
FWEventItem
Definition: FWEventItem.h:56
CmsShowEDI::operator=
const CmsShowEDI & operator=(const CmsShowEDI &)
CmsShowEDI::m_cw
FWColorSelect * m_cw
Definition: CmsShowEDI.h:116
CmsShowEDI::fillEDIFrame
void fillEDIFrame()
Definition: CmsShowEDI.cc:250
CmsShowEDI::m_typeEntry
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:118
CmsShowEDI::toggleItemVisible
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:418
CmsShowEDI::m_opacitySlider
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:108
CmsShowEDI::m_selectButton
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:113
CmsShowEDI::m_objectLabel
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:102
CmsShowEDI::m_backButton
TGTextButton * m_backButton
Definition: CmsShowEDI.h:105
CmsShowEDI::selectAll
void selectAll()
Definition: CmsShowEDI.cc:475
CmsShowEDI::deselectAll
void deselectAll()
Definition: CmsShowEDI.cc:481
CmsShowEDI::m_colorManager
FWColorManager * m_colorManager
Definition: CmsShowEDI.h:131
CmsShowEDI::~CmsShowEDI
~CmsShowEDI() override
Definition: CmsShowEDI.cc:201
CmsShowEDI::m_selectError
TGTextView * m_selectError
Definition: CmsShowEDI.h:129