test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsShowEDI.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : CmsShowEDI
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Joshua Berger
10 // Created: Mon Jun 23 15:48:11 EDT 2008
11 //
12 
13 // system include files
14 #include <iostream>
15 #include <sstream>
16 #include <sigc++/sigc++.h>
17 #include <boost/bind.hpp>
18 #include "TClass.h"
19 #include "TGFrame.h"
20 #include "TGTab.h"
21 #include "TGButton.h"
22 #include "TGLabel.h"
23 #include "TGString.h"
24 #include "TColor.h"
25 #include "TG3DLine.h"
26 #include "TGNumberEntry.h"
27 #include "TGTextEntry.h"
28 #include "TGTextView.h"
29 #include "TGLayout.h"
30 #include "TGFont.h"
31 #include "TEveManager.h"
32 #include "TGSlider.h"
33 #include "TGMsgBox.h"
34 #include "TGComboBox.h"
35 
36 // user include files
51 
52 //
53 // constants, enums and typedefs
55 
56 //
57 // static data member definitions
58 //
59 
60 //
61 // constructors and destructor
62 //
63 CmsShowEDI::CmsShowEDI(const TGWindow* p, UInt_t w, UInt_t h, FWSelectionManager* selMgr, FWColorManager* colorMgr) :
64  TGTransientFrame(gClient->GetDefaultRoot(), p, w, h),
65  m_item(0),
66  m_validator(new FWExpressionValidator),
67  m_colorManager(colorMgr),
68  m_settersFrame(0)
69 {
70  m_selectionManager = selMgr;
71  SetCleanup(kDeepCleanup);
72 
74 
75  TGVerticalFrame* vf = new TGVerticalFrame(this);
76  AddFrame(vf, new TGLayoutHints(kLHintsExpandX|kLHintsExpandY, 0, 0, 0, 0));
77  FWDialogBuilder builder(vf);
78 
79  builder.indent(0)
80  .addLabel(" ", 14, 2, &m_objectLabel)
81  .vSpacer()
82  .tabs(&m_tabs)
83  .beginTab("Graphics")
84  .indent(3)
85  .addLabel("Color", 8)
86  .addColorPicker(colorMgr, &m_colorSelectWidget).expand(false)
87  .addHSeparator()
88  .addLabel("Opacity", 8)
90  .addHSeparator()
91  .addCheckbox("Visible", &m_isVisibleButton)
92  .addHSeparator()
93  .addLabel("Drawing order", 8)
94  .addTextButton("To back", &m_backButton).floatLeft().expand(false)
95  .addNumberEntry(0.0, 4, TGNumberFormat::kNESInteger,
98  &m_layerEntry).expand(false).floatLeft()
99  .addTextButton("To front", &m_frontButton).expand(false)
100  .vSpacer()
101  .addHSeparator()
102  .endTab()
103  .beginTab("Filter")
104  .indent(3)
105  .addLabel("Expression", 8)
107  .addTextButton("Filter", &m_filterButton).expand(false)
109  .vSpacer()
110  .endTab()
111  .beginTab("Select")
112  .indent(3)
113  .addLabel("Expression", 8)
115  .addTextButton("Select", &m_selectButton).floatLeft().expand(false)
116  .addTextButton("Select all", &m_selectAllButton).expand(false).floatLeft()
117  .addTextButton("Unselect all", &m_deselectAllButton).expand(false)
118  .indent(3)
119  .addLabel("Color Selection", 8)
120  .addColorPicker(colorMgr, &m_cw).expand(false)
122  .vSpacer()
123  .endTab()
124  .beginTab("Data")
125  .indent(3)
126  .addLabel("Name:", 8)
127  .addTextEntry("None", &m_nameEntry)
128  .addLabel("Labels:", 8)
129  .addLabel("Type:", 8)
130  .addTextEntry("None", &m_typeEntry)
131  .addLabel("Module:", 8)
132  .addTextEntry("None", &m_moduleEntry)
133  .addLabel("Instance:", 8)
134  .addTextEntry("None", &m_instanceEntry)
135  .addLabel("Process:", 8)
136  .addTextEntry("None", &m_processEntry)
137  .addHSeparator()
138  .addTextButton("Remove collection", &m_removeButton).expand(false)
139  .vSpacer()
140  .endTab()
141  .untabs();
142 
143  m_filterError->SetForegroundColor(gVirtualX->GetPixel(kRed));
144  m_filterError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
145  m_filterError->ChangeOptions(0);
146 
147  m_selectError->SetForegroundColor(gVirtualX->GetPixel(kRed));
148  m_selectError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
149  m_selectError->ChangeOptions(0);
150 
153 
154  m_colorSelectWidget->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeItemColor(Color_t)");
155  m_cw->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeSelectionColor(Color_t)");
156  m_opacitySlider->Connect("PositionChanged(Int_t)", "CmsShowEDI", this, "changeItemOpacity(Int_t)");
157  m_isVisibleButton->Connect("Toggled(Bool_t)", "CmsShowEDI", this, "toggleItemVisible(Bool_t)");
158  m_filterExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runFilter()");
159  m_filterButton->Connect("Clicked()", "CmsShowEDI", this, "runFilter()");
160  m_selectExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runSelection()");
161  m_selectButton->Connect("Clicked()", "CmsShowEDI", this, "runSelection()");
162  m_removeButton->Connect("Clicked()", "CmsShowEDI", this, "removeItem()");
163  m_selectAllButton->Connect("Clicked()", "CmsShowEDI", this, "selectAll()");
164  m_deselectAllButton->Connect("Clicked()", "CmsShowEDI", this, "deselectAll()");
165  m_frontButton->Connect("Clicked()","CmsShowEDI",this,"moveToFront()");
166  m_backButton->Connect("Clicked()","CmsShowEDI",this,"moveToBack()");
167  m_layerEntry->Connect("ValueSet(Long_t)","CmsShowEDI",this,"moveToLayer(Long_t)");
168 
169 
170  TGCompositeFrame* cf = m_tabs->GetTabContainer(0);
171  m_settersFrame = new TGVerticalFrame(cf);
172  m_settersFrame->SetCleanup(kDeepCleanup);
173  // m_settersFrame->SetBackgroundColor(0xff00ff);
174  cf->AddFrame(m_settersFrame, new TGLayoutHints(kLHintsExpandX| kLHintsExpandY ));
175 
176  SetWindowName("Collection Controller");
177  MapSubwindows();
178  Resize(GetDefaultSize());
179  Layout();
180 
181  fillEDIFrame();
182 }
183 
184 // CmsShowEDI::CmsShowEDI(const CmsShowEDI& rhs)
185 // {
186 // // do actual copying here;
187 // }
188 
190 {
191  disconnectAll();
192  m_colorSelectWidget->Disconnect("ColorSelected(Pixel_t)", this, "changeItemColor(Pixel_t)");
193  m_cw->Disconnect("ColorSelected(Pixel_t)", this, "changeSelectionColor(Pixel_t)");
194  m_opacitySlider->Disconnect("PositionChanged(Int_t)", this, "changeItemColor");
195  m_isVisibleButton->Disconnect("Toggled(Bool_t)", this, "toggleItemVisible(Bool_t)");
196  m_filterExpressionEntry->Disconnect("ReturnPressed()", this, "runFilter()");
197  m_selectExpressionEntry->Disconnect("ReturnPressed()", this, "runSelection()");
198  m_filterButton->Disconnect("Clicked()", this, "runFilter()");
199  m_selectButton->Disconnect("Clicked()", this, "runSelection()");
200  m_selectAllButton->Disconnect("Clicked()", this, "selectAll()");
201  m_deselectAllButton->Disconnect("Clicked()", this, "deselectAll()");
202  m_removeButton->Disconnect("Clicked()", this, "removeItem()");
203  m_frontButton->Disconnect("Clicked()",this,"moveToFront()");
204  m_backButton->Disconnect("Clicked()",this,"moveToBack()");
205  m_layerEntry->Disconnect("ValueSet(Long_t)",this,"moveToLayer(Long_t)");
206  // delete m_objectLabel;
207  // delete m_colorSelectWidget;
208  // delete m_isVisibleButton;
209  delete m_validator;
210 }
211 
212 //
213 // assignment operators
214 //
215 // const CmsShowEDI& CmsShowEDI::operator=(const CmsShowEDI& rhs)
216 // {
217 // //An exception safe implementation is
218 // CmsShowEDI temp(rhs);
219 // swap(rhs);
220 //
221 // return *this;
222 // }
223 
224 //
225 // member functions
226 //
227 
229 {
230  if (!m_settersFrame->GetList()->IsEmpty())
231  {
232  // printf("remove FRAME \n");
233  TGFrameElement *el = (TGFrameElement*) m_settersFrame->GetList()->First();
234  TGFrame* f = el->fFrame;
235  f->UnmapWindow();
236  m_settersFrame->RemoveFrame(f);
237  f->DestroyWindow();
238  }
239 }
240 
241 void
243  FWEventItem* iItem =0;
244  bool multipleCollections = false;
245  if(!m_selectionManager->selectedItems().empty()) {
246  if(m_selectionManager->selectedItems().size()==1) {
247  iItem=*(m_selectionManager->selectedItems().begin());
248  } else {
249  multipleCollections=true;
250  }
251  }
252  //m_item can be zero because we had 0 or many collections selected
253  if (0 == m_item || iItem != m_item) {
254  disconnectAll();
255  m_item = iItem;
256  if(0 != m_item) {
258  m_objectLabel->SetText(iItem->name().c_str());
260  m_opacitySlider->SetPosition(100 - p.transparency());
261  m_isVisibleButton->SetDisabledAndSelected(p.isVisible());
262  m_validator->setType(edm::TypeWithDict(*(iItem->modelType()->GetTypeInfo())));
263  m_filterExpressionEntry->SetText(iItem->filterExpression().c_str());
264  m_filterError->Clear();
265  m_selectError->Clear();
266  m_nameEntry->SetText(iItem->name().c_str());
267  m_typeEntry->SetText(iItem->type()->GetName());
268  m_moduleEntry->SetText(iItem->moduleLabel().c_str());
269  m_instanceEntry->SetText(iItem->productInstanceLabel().c_str());
270  m_processEntry->SetText(iItem->processName().c_str());
271  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
272  m_colorSelectWidget->SetEnabled(kTRUE);
273  m_opacitySlider->SetEnabled(kTRUE);
274  m_isVisibleButton->SetEnabled(kTRUE);
275  m_filterExpressionEntry->SetEnabled(kTRUE);
276  m_selectExpressionEntry->SetEnabled(kTRUE);
277  m_filterButton->SetEnabled(kTRUE);
278  m_selectButton->SetEnabled(kTRUE);
279  m_selectAllButton->SetEnabled(kTRUE);
280  m_deselectAllButton->SetEnabled(kTRUE);
281  m_cw->SetColorByIndex(p.color(),kFALSE);
282  m_cw->SetEnabled(kTRUE);
283  m_removeButton->SetEnabled(kTRUE);
285  m_layerEntry->SetState(kTRUE);
287  m_modelChangedConn = m_item->changed_.connect(boost::bind(&CmsShowEDI::updateFilter, this));
288  // m_selectionChangedConn = m_selectionManager->selectionChanged_.connect(boost::bind(&CmsShowEDI::updateSelection, this));
290 
291  clearPBFrame();
293  }
294  else if(multipleCollections) {
295  std::ostringstream s;
296  s<<m_selectionManager->selectedItems().size()<<" Collections Selected";
297  m_objectLabel->SetText(s.str().c_str());
298  }
299 
300  Resize(GetDefaultSize());
301  Layout();
302  }
303 }
304 
305 void
307  Int_t chosen=0;
308  std::string message("This action will remove the ");
309  message += m_item->name();
310  message +=" collection from the display."
311  "\nIf you wish to return the collection you would have to use the 'Add Collection' window.";
312  new TGMsgBox(gClient->GetDefaultRoot(),
313  this,
314  "Remove Collection Confirmation",
315  message.c_str(),
316  kMBIconExclamation,
317  kMBCancel | kMBApply,
318  &chosen);
319  if(kMBApply == chosen) {
320  m_item->destroy();
321  m_item = 0;
322  //make sure the ROOT global editor does not try to use this
323  gEve->EditElement(0);
324  gEve->Redraw3D();
325  }
326 }
327 
328 void
330  //std::cout<<"Updating display"<<std::endl;
332  m_colorSelectWidget->SetColorByIndex(props.color(),kFALSE);
333  m_opacitySlider->SetPosition(100 - props.transparency());
334  m_isVisibleButton->SetState(props.isVisible() ? kButtonDown : kButtonUp, kFALSE);
335 }
336 
337 void
339 {
340  m_backButton->SetEnabled(!m_item->isInBack());
341  m_frontButton->SetEnabled(!m_item->isInFront());
342  m_layerEntry->SetIntNumber(m_item->layer());
343 }
344 void
346 {
347  m_item->moveToBack();
349 }
350 void
352 {
353  m_item->moveToFront();
355 }
356 void
358 {
359  m_item->moveToLayer(static_cast<Int_t>(m_layerEntry->GetIntNumber()));
361 }
362 
363 void
365  m_filterExpressionEntry->SetText(m_item->filterExpression().c_str());
366 }
367 
368 void
370  m_objectLabel->SetText("No Collection Selected");
371  clearPBFrame();
372  if(0 != m_item) {
373  m_displayChangedConn.disconnect();
374  m_modelChangedConn.disconnect();
375  m_destroyedConn.disconnect();
376  m_item = 0;
378  m_opacitySlider->SetPosition(100);
379  m_isVisibleButton->SetDisabledAndSelected(kTRUE);
380  m_filterExpressionEntry->SetText(0);
381  m_selectExpressionEntry->SetText(0);
382  m_nameEntry->SetText(0);
383  m_typeEntry->SetText(0);
384  m_moduleEntry->SetText(0);
385  m_instanceEntry->SetText(0);
386  m_processEntry->SetText(0);
387  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
388  m_colorSelectWidget->SetEnabled(kFALSE);
389  m_opacitySlider->SetEnabled(kFALSE);
390 
391  m_isVisibleButton->SetEnabled(kFALSE);
392  m_filterExpressionEntry->SetEnabled(kFALSE);
393  m_filterButton->SetEnabled(kFALSE);
394  m_selectExpressionEntry->SetEnabled(kFALSE);
395  m_selectButton->SetEnabled(kFALSE);
396  m_selectAllButton->SetEnabled(kFALSE);
397  m_deselectAllButton->SetEnabled(kFALSE);
398  m_removeButton->SetEnabled(kFALSE);
399  m_backButton->SetEnabled(kFALSE);
400  m_frontButton->SetEnabled(kFALSE);
401  m_layerEntry->SetIntNumber(0);
402  m_layerEntry->SetState(kFALSE);
403  m_layerEntry->GetNumberEntry()->SetEnabled(kFALSE);
404  m_layerEntry->GetButtonUp()->SetEnabled(kFALSE);
405  m_layerEntry->GetButtonDown()->SetEnabled(kFALSE);
406  }
407 }
408 
415 void
418  changeProperties.setColor(color);
419  m_item->setDefaultDisplayProperties(changeProperties);
420  m_cw->SetColorByIndex(color,kFALSE);
421 }
422 
424 void
427  changeProperties.setIsVisible(on);
428  m_item->setDefaultDisplayProperties(changeProperties);
429 }
430 
438 void
441  changeProperties.setTransparency(100 - opacity);
442  m_item->setDefaultDisplayProperties(changeProperties);
443 }
444 
445 void
447  const std::string filter(m_filterExpressionEntry->GetText());
448  if (m_item != 0) {
449  try {
450  m_filterError->Clear();
452  } catch( const FWExpressionException& e) {
453  m_filterError->AddLine(e.what().c_str());
454  m_filterError->Update();
455  if(e.column() > -1) {
456  m_filterExpressionEntry->SetCursorPosition(e.column());
457  }
458  }
459  }
460 }
461 
462 void
464  FWModelExpressionSelector selector;
466  if (m_item != 0)
467  {
468  try
469  {
470  m_selectError->Clear();
471  //NOTE call clearModelSelectionLeaveItem so that the item does not get deselected
472  // just for safety use a copy of the pointer to m_item
473  FWEventItem* item = m_item;
474  item->selectionManager()-> clearModelSelectionLeaveItem();
475 
476  selector.select(item, selection, TColor::GetColor(m_cw->GetColor()));
477  }
478  catch( const FWExpressionException& e)
479  {
480  m_selectError->AddLine(e.what().c_str());
481  m_selectError->Update();
482  if (e.column() > -1)
483  {
484  m_selectExpressionEntry->SetCursorPosition(e.column());
485  }
486  }
487  }
488 }
489 
490 void
492 {
493  FWChangeSentry sentry(*(m_item->changeManager()));
494  for (int i = 0; i < static_cast<int>(m_item->size()); i++)
495  {
496  m_item->select(i);
497  }
498 }
499 void
501 {
502  FWChangeSentry sentry(*(m_item->changeManager()));
503  for (int i = 0; i < static_cast<int>(m_item->size()); i++)
504  {
505  m_item->unselect(i);
506  }
507 }
508 
509 void
511 {
512  FWChangeSentry sentry(*(m_item->changeManager()));
513  const std::set<FWModelId>& ss = m_item->selectionManager()->selected();
515  dp.setColor(c);
516  for (std::set<FWModelId>::const_iterator i = ss.begin(); i != ss.end(); ++i ) {
517  m_item->setDisplayProperties(i->index(), dp);
518  }
519 }
520 
521 
522 void
524 {
525  m_tabs->SetTab(iToView);
526 }
527 
528 /* Called by FWGUIManager when change background/colorset. */
529 void
531 {
532  if (m_item)
533  {
536  m_cw->SetColorByIndex(p.color(),kFALSE);
537  }
538 }
void populateFrame(TGCompositeFrame *frame)
const std::set< FWModelId > & selected() const
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:165
int i
Definition: DBlmapReader.cc:9
const FWDisplayProperties & defaultDisplayProperties() const
Definition: FWEventItem.cc:451
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=0)
void fillEDIFrame()
Definition: CmsShowEDI.cc:242
void setColor(Color_t iColor)
FWModelChangeManager * changeManager() const
Definition: FWEventItem.h:130
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:123
const std::string & what() const
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:107
void setType(const edm::TypeWithDict &)
void destroy() const
Definition: FWEventItem.cc:608
void colorSetChanged()
Definition: CmsShowEDI.cc:530
void moveToBack()
Definition: FWEventItem.cc:333
const double w
Definition: UKUtility.cc:23
void moveToFront()
Definition: FWEventItem.cc:310
FWColorSelect * m_cw
Definition: CmsShowEDI.h:115
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:108
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:109
void moveToLayer(int layer)
Definition: FWEventItem.cc:356
void SetColorByIndex(Color_t iColor)
FWDialogBuilder & endTab(void)
const std::string & name() const
Definition: FWEventItem.cc:500
FWDialogBuilder & addLabel(const char *text, size_t fontSize=12, size_t weight=0, TGLabel **out=0)
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
Definition: FWEventItem.cc:276
selection
main part
Definition: corrVsCorr.py:98
const std::string & filterExpression() const
Definition: FWEventItem.cc:602
FWItemChangeSignal defaultDisplayPropertiesChanged_
Definition: FWEventItem.h:207
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:101
void unselect(int iIndex) const
Definition: FWEventItem.cc:239
TGTab * m_tabs
Definition: CmsShowEDI.h:100
FWItemChangeSignal goingToBeDestroyed_
Definition: FWEventItem.h:214
void disconnectAll()
Definition: CmsShowEDI.cc:369
const std::string & processName() const
Definition: FWEventItem.cc:529
const std::set< FWEventItem * > & selectedItems() const
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:113
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:357
void updateFilter()
Definition: CmsShowEDI.cc:364
static int maxLayerValue()
Definition: FWEventItem.cc:43
FWDialogBuilder & vSpacer(size_t size=0)
void moveToFront()
Definition: CmsShowEDI.cc:351
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:132
Color_t color() const
int layer() const
Definition: FWEventItem.cc:457
FWDialogBuilder & untabs(void)
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:119
void removeItem()
Definition: CmsShowEDI.cc:306
Char_t transparency() const
void setDefaultDisplayProperties(const FWDisplayProperties &)
Definition: FWEventItem.cc:155
const std::string & productInstanceLabel() const
Definition: FWEventItem.cc:523
void updateDisplay()
Definition: CmsShowEDI.cc:329
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:416
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:105
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=0)
void moveToBack()
Definition: CmsShowEDI.cc:345
const TClass * type() const
Definition: FWEventItem.cc:506
FWDialogBuilder & addTextView(const char *defaultText=0, TGTextView **out=0)
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:114
void setValidator(FWValidatorBase *)
TGTextButton * m_backButton
Definition: CmsShowEDI.h:104
double f[11][100]
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
TGTextEntry * m_moduleEntry
Definition: CmsShowEDI.h:118
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:125
FWDialogBuilder & addHSeparator(size_t horizontalPadding=4, size_t verticalPadding=3)
static int minLayerValue()
Definition: FWEventItem.cc:38
FWDialogBuilder & tabs(TGTab **out)
void changeItemOpacity(Int_t opacity)
Definition: CmsShowEDI.cc:439
FWSelectionManager * selectionManager() const
Definition: FWEventItem.h:133
FWDialogBuilder & addValidatingTextEntry(const char *defaultText, FWGUIValidatingTextEntry **out)
TGTextView * m_selectError
Definition: CmsShowEDI.h:128
FWDialogBuilder & addTextEntry(const char *defaultText, TGTextEntry **out)
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:102
virtual ~CmsShowEDI()
Definition: CmsShowEDI.cc:189
bool isInBack() const
returns true if item is behind all other items
Definition: FWEventItem.cc:478
size_t size() const
Definition: FWEventItem.cc:548
void select(FWEventItem *iItem, const std::string &iExpression, Color_t iColor=-1) const
FWDialogBuilder & floatLeft(size_t spacing=3)
FWExpressionValidator * m_validator
Definition: CmsShowEDI.h:129
bool isInFront() const
returns true if item is in front of all other items
Definition: FWEventItem.cc:463
void setFilterExpression(const std::string &)
Definition: FWEventItem.cc:199
TGTextView * m_filterError
Definition: CmsShowEDI.h:127
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:120
FWDialogBuilder & expand(size_t expandX=true, size_t expandY=false)
void setTransparency(Char_t transparency)
sigc::signal< void, const FWSelectionManager & > itemSelectionChanged_
FWColorSelect * m_colorSelectWidget
Definition: CmsShowEDI.h:106
void runFilter()
Definition: CmsShowEDI.cc:446
CmsShowEDI(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=0, FWColorManager *colorMgr=0)
Definition: CmsShowEDI.cc:63
FWModelChangeSignal changed_
Definition: FWEventItem.h:195
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:111
const TClass * modelType() const
Definition: FWEventItem.cc:561
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:99
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:117
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:425
void select(int iIndex) const
Definition: FWEventItem.cc:250
FWDialogBuilder & beginTab(const char *label)
void runSelection()
Definition: CmsShowEDI.cc:463
void deselectAll()
Definition: CmsShowEDI.cc:500
FWEventItem * m_item
Definition: CmsShowEDI.h:121
void setIsVisible(bool iSet)
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:124
void updateLayerControls()
Definition: CmsShowEDI.cc:338
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:110
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:116
FWDialogBuilder & addCheckbox(const char *text, TGCheckButton **out=0)
FWDialogBuilder & indent(int left=2, int right=-1)
FWDialogBuilder & addNumberEntry(float defaultValue, size_t digits, TGNumberFormat::EStyle style, int min, int max, TGNumberEntry **out)
void changeSelectionColor(Color_t color)
Definition: CmsShowEDI.cc:510
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:103
void clearPBFrame()
Definition: CmsShowEDI.cc:228
const std::string & moduleLabel() const
Definition: FWEventItem.cc:518
void show(FWDataCategories)
Definition: CmsShowEDI.cc:523
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:112
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=0)
void selectAll()
Definition: CmsShowEDI.cc:491