CMS 3D CMS Logo

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, 0, true);
78 
79  builder.indent(0).expand(true, false)
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  cf->AddFrame(m_settersFrame, new TGLayoutHints(kLHintsExpandX| kLHintsExpandY ));
174 
175  SetWindowName("Collection Controller");
176  MapSubwindows();
177  Resize(GetDefaultSize());
178  Layout();
179 
180  fillEDIFrame();
181 }
182 
183 // CmsShowEDI::CmsShowEDI(const CmsShowEDI& rhs)
184 // {
185 // // do actual copying here;
186 // }
187 
189 {
190  disconnectAll();
191  m_colorSelectWidget->Disconnect("ColorSelected(Pixel_t)", this, "changeItemColor(Pixel_t)");
192  m_cw->Disconnect("ColorSelected(Pixel_t)", this, "changeSelectionColor(Pixel_t)");
193  m_opacitySlider->Disconnect("PositionChanged(Int_t)", this, "changeItemColor");
194  m_isVisibleButton->Disconnect("Toggled(Bool_t)", this, "toggleItemVisible(Bool_t)");
195  m_filterExpressionEntry->Disconnect("ReturnPressed()", this, "runFilter()");
196  m_selectExpressionEntry->Disconnect("ReturnPressed()", this, "runSelection()");
197  m_filterButton->Disconnect("Clicked()", this, "runFilter()");
198  m_selectButton->Disconnect("Clicked()", this, "runSelection()");
199  m_selectAllButton->Disconnect("Clicked()", this, "selectAll()");
200  m_deselectAllButton->Disconnect("Clicked()", this, "deselectAll()");
201  m_removeButton->Disconnect("Clicked()", this, "removeItem()");
202  m_frontButton->Disconnect("Clicked()",this,"moveToFront()");
203  m_backButton->Disconnect("Clicked()",this,"moveToBack()");
204  m_layerEntry->Disconnect("ValueSet(Long_t)",this,"moveToLayer(Long_t)");
205  // delete m_objectLabel;
206  // delete m_colorSelectWidget;
207  // delete m_isVisibleButton;
208  delete m_validator;
209 }
210 
211 //
212 // assignment operators
213 //
214 // const CmsShowEDI& CmsShowEDI::operator=(const CmsShowEDI& rhs)
215 // {
216 // //An exception safe implementation is
217 // CmsShowEDI temp(rhs);
218 // swap(rhs);
219 //
220 // return *this;
221 // }
222 
223 //
224 // member functions
225 //
226 
228 {
229  if (!m_settersFrame->GetList()->IsEmpty())
230  {
231  // printf("remove FRAME \n");
232  TGFrameElement *el = (TGFrameElement*) m_settersFrame->GetList()->First();
233  TGFrame* f = el->fFrame;
234  f->UnmapWindow();
235  m_settersFrame->RemoveFrame(f);
236  f->DestroyWindow();
237  }
238 }
239 
240 void
242  FWEventItem* iItem =0;
243  bool multipleCollections = false;
244  if(!m_selectionManager->selectedItems().empty()) {
245  if(m_selectionManager->selectedItems().size()==1) {
246  iItem=*(m_selectionManager->selectedItems().begin());
247  } else {
248  multipleCollections=true;
249  }
250  }
251  //m_item can be zero because we had 0 or many collections selected
252  if (0 == m_item || iItem != m_item) {
253  disconnectAll();
254  m_item = iItem;
255  if(0 != m_item) {
257  m_objectLabel->SetText(iItem->name().c_str());
259  m_opacitySlider->SetPosition(100 - p.transparency());
260  m_isVisibleButton->SetDisabledAndSelected(p.isVisible());
261  m_validator->setType(edm::TypeWithDict(*(iItem->modelType()->GetTypeInfo())));
262  m_filterExpressionEntry->SetText(iItem->filterExpression().c_str());
263  m_filterError->Clear();
264  m_selectError->Clear();
265  m_nameEntry->SetText(iItem->name().c_str());
266  m_typeEntry->SetText(iItem->type()->GetName());
267  m_moduleEntry->SetText(iItem->moduleLabel().c_str());
268  m_instanceEntry->SetText(iItem->productInstanceLabel().c_str());
269  m_processEntry->SetText(iItem->processName().c_str());
270  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
271  m_colorSelectWidget->SetEnabled(kTRUE);
272  m_opacitySlider->SetEnabled(kTRUE);
273  m_isVisibleButton->SetEnabled(kTRUE);
274  m_filterExpressionEntry->SetEnabled(kTRUE);
275  m_selectExpressionEntry->SetEnabled(kTRUE);
276  m_filterButton->SetEnabled(kTRUE);
277  m_selectButton->SetEnabled(kTRUE);
278  m_selectAllButton->SetEnabled(kTRUE);
279  m_deselectAllButton->SetEnabled(kTRUE);
280  m_cw->SetColorByIndex(p.color(),kFALSE);
281  m_cw->SetEnabled(kTRUE);
282  m_removeButton->SetEnabled(kTRUE);
284  m_layerEntry->SetState(kTRUE);
286  m_modelChangedConn = m_item->changed_.connect(boost::bind(&CmsShowEDI::updateFilter, this));
287  // m_selectionChangedConn = m_selectionManager->selectionChanged_.connect(boost::bind(&CmsShowEDI::updateSelection, this));
289 
290  clearPBFrame();
292  }
293  else if(multipleCollections) {
294  std::ostringstream s;
295  s<<m_selectionManager->selectedItems().size()<<" Collections Selected";
296  m_objectLabel->SetText(s.str().c_str());
297  }
298 
299  Resize(GetDefaultSize());
300  Layout();
301  }
302 }
303 
304 void
306  Int_t chosen=0;
307  std::string message("This action will remove the ");
308  message += m_item->name();
309  message +=" collection from the display."
310  "\nIf you wish to return the collection you would have to use the 'Add Collection' window.";
311  new TGMsgBox(gClient->GetDefaultRoot(),
312  this,
313  "Remove Collection Confirmation",
314  message.c_str(),
315  kMBIconExclamation,
316  kMBCancel | kMBApply,
317  &chosen);
318  if(kMBApply == chosen) {
319  m_item->destroy();
320  m_item = 0;
321  //make sure the ROOT global editor does not try to use this
322  gEve->EditElement(0);
323  gEve->Redraw3D();
324  }
325 }
326 
327 void
329  //std::cout<<"Updating display"<<std::endl;
331  m_colorSelectWidget->SetColorByIndex(props.color(),kFALSE);
332  m_opacitySlider->SetPosition(100 - props.transparency());
333  m_isVisibleButton->SetState(props.isVisible() ? kButtonDown : kButtonUp, kFALSE);
334 }
335 
336 void
338 {
339  m_backButton->SetEnabled(!m_item->isInBack());
340  m_frontButton->SetEnabled(!m_item->isInFront());
341  m_layerEntry->SetIntNumber(m_item->layer());
342 }
343 void
345 {
346  m_item->moveToBack();
348 }
349 void
351 {
352  m_item->moveToFront();
354 }
355 void
357 {
358  m_item->moveToLayer(static_cast<Int_t>(m_layerEntry->GetIntNumber()));
360 }
361 
362 void
364  m_filterExpressionEntry->SetText(m_item->filterExpression().c_str());
365 }
366 
367 void
369  m_objectLabel->SetText("No Collection Selected");
370  clearPBFrame();
371  if(0 != m_item) {
372  m_displayChangedConn.disconnect();
373  m_modelChangedConn.disconnect();
374  m_destroyedConn.disconnect();
375  m_item = 0;
377  m_opacitySlider->SetPosition(100);
378  m_isVisibleButton->SetDisabledAndSelected(kTRUE);
379  m_filterExpressionEntry->SetText(0);
380  m_selectExpressionEntry->SetText(0);
381  m_nameEntry->SetText(0);
382  m_typeEntry->SetText(0);
383  m_moduleEntry->SetText(0);
384  m_instanceEntry->SetText(0);
385  m_processEntry->SetText(0);
386  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
387  m_colorSelectWidget->SetEnabled(kFALSE);
388  m_opacitySlider->SetEnabled(kFALSE);
389 
390  m_isVisibleButton->SetEnabled(kFALSE);
391  m_filterExpressionEntry->SetEnabled(kFALSE);
392  m_filterButton->SetEnabled(kFALSE);
393  m_selectExpressionEntry->SetEnabled(kFALSE);
394  m_selectButton->SetEnabled(kFALSE);
395  m_selectAllButton->SetEnabled(kFALSE);
396  m_deselectAllButton->SetEnabled(kFALSE);
397  m_removeButton->SetEnabled(kFALSE);
398  m_backButton->SetEnabled(kFALSE);
399  m_frontButton->SetEnabled(kFALSE);
400  m_layerEntry->SetIntNumber(0);
401  m_layerEntry->SetState(kFALSE);
402  m_layerEntry->GetNumberEntry()->SetEnabled(kFALSE);
403  m_layerEntry->GetButtonUp()->SetEnabled(kFALSE);
404  m_layerEntry->GetButtonDown()->SetEnabled(kFALSE);
405  }
406 }
407 
414 void
417  changeProperties.setColor(color);
418  m_item->setDefaultDisplayProperties(changeProperties);
419  m_cw->SetColorByIndex(color,kFALSE);
420 }
421 
423 void
426  changeProperties.setIsVisible(on);
427  m_item->setDefaultDisplayProperties(changeProperties);
428 }
429 
437 void
440  changeProperties.setTransparency(100 - opacity);
441  m_item->setDefaultDisplayProperties(changeProperties);
442 }
443 
444 void
446  const std::string filter(m_filterExpressionEntry->GetText());
447  if (m_item != 0) {
448  try {
449  m_filterError->Clear();
451  } catch( const FWExpressionException& e) {
452  m_filterError->AddLine(e.what().c_str());
453  m_filterError->Update();
454  if(e.column() > -1) {
455  m_filterExpressionEntry->SetCursorPosition(e.column());
456  }
457  }
458  }
459 }
460 
461 void
463  FWModelExpressionSelector selector;
465  if (m_item != 0)
466  {
467  try
468  {
469  m_selectError->Clear();
470  //NOTE call clearModelSelectionLeaveItem so that the item does not get deselected
471  // just for safety use a copy of the pointer to m_item
472  FWEventItem* item = m_item;
473  item->selectionManager()-> clearModelSelectionLeaveItem();
474 
475  selector.select(item, selection, TColor::GetColor(m_cw->GetColor()));
476  }
477  catch( const FWExpressionException& e)
478  {
479  m_selectError->AddLine(e.what().c_str());
480  m_selectError->Update();
481  if (e.column() > -1)
482  {
483  m_selectExpressionEntry->SetCursorPosition(e.column());
484  }
485  }
486  }
487 }
488 
489 void
491 {
492  FWChangeSentry sentry(*(m_item->changeManager()));
493  for (int i = 0; i < static_cast<int>(m_item->size()); i++)
494  {
495  m_item->select(i);
496  }
497 }
498 void
500 {
501  FWChangeSentry sentry(*(m_item->changeManager()));
502  for (int i = 0; i < static_cast<int>(m_item->size()); i++)
503  {
504  m_item->unselect(i);
505  }
506 }
507 
508 void
510 {
511  FWChangeSentry sentry(*(m_item->changeManager()));
512  const std::set<FWModelId>& ss = m_item->selectionManager()->selected();
514  dp.setColor(c);
515  for (std::set<FWModelId>::const_iterator i = ss.begin(); i != ss.end(); ++i ) {
516  m_item->setDisplayProperties(i->index(), dp);
517  }
518 }
519 
520 
521 void
523 {
524  m_tabs->SetTab(iToView);
525 }
526 
527 /* Called by FWGUIManager when change background/colorset. */
528 void
530 {
531  if (m_item)
532  {
535  m_cw->SetColorByIndex(p.color(),kFALSE);
536  }
537 }
void populateFrame(TGCompositeFrame *frame)
const std::set< FWModelId > & selected() const
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:169
const FWDisplayProperties & defaultDisplayProperties() const
Definition: FWEventItem.cc:453
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=0)
void fillEDIFrame()
Definition: CmsShowEDI.cc:241
void setColor(Color_t iColor)
FWModelChangeManager * changeManager() const
Definition: FWEventItem.h:132
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:610
void colorSetChanged()
Definition: CmsShowEDI.cc:529
void moveToBack()
Definition: FWEventItem.cc:335
const double w
Definition: UKUtility.cc:23
void moveToFront()
Definition: FWEventItem.cc:312
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:358
void SetColorByIndex(Color_t iColor)
FWDialogBuilder & endTab(void)
const std::string & name() const
Definition: FWEventItem.cc:502
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:278
selection
main part
Definition: corrVsCorr.py:98
const std::string & filterExpression() const
Definition: FWEventItem.cc:604
FWItemChangeSignal defaultDisplayPropertiesChanged_
Definition: FWEventItem.h:211
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:101
void unselect(int iIndex) const
Definition: FWEventItem.cc:241
TGTab * m_tabs
Definition: CmsShowEDI.h:100
FWItemChangeSignal goingToBeDestroyed_
Definition: FWEventItem.h:218
void disconnectAll()
Definition: CmsShowEDI.cc:368
const std::string & processName() const
Definition: FWEventItem.cc:531
const std::set< FWEventItem * > & selectedItems() const
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:113
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:356
void updateFilter()
Definition: CmsShowEDI.cc:363
static int maxLayerValue()
Definition: FWEventItem.cc:43
FWDialogBuilder & vSpacer(size_t size=0)
void moveToFront()
Definition: CmsShowEDI.cc:350
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:132
Color_t color() const
int layer() const
Definition: FWEventItem.cc:459
FWDialogBuilder & untabs(void)
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:119
void removeItem()
Definition: CmsShowEDI.cc:305
Char_t transparency() const
void setDefaultDisplayProperties(const FWDisplayProperties &)
Definition: FWEventItem.cc:157
const std::string & productInstanceLabel() const
Definition: FWEventItem.cc:525
void updateDisplay()
Definition: CmsShowEDI.cc:328
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:415
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:105
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=0)
void moveToBack()
Definition: CmsShowEDI.cc:344
const TClass * type() const
Definition: FWEventItem.cc:508
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]
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:438
FWSelectionManager * selectionManager() const
Definition: FWEventItem.h:135
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:188
bool isInBack() const
returns true if item is behind all other items
Definition: FWEventItem.cc:480
size_t size() const
Definition: FWEventItem.cc:550
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
auto dp
Definition: deltaR.h:22
bool isInFront() const
returns true if item is in front of all other items
Definition: FWEventItem.cc:465
void setFilterExpression(const std::string &)
Definition: FWEventItem.cc:201
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:445
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:199
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:111
const TClass * modelType() const
Definition: FWEventItem.cc:563
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:99
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:117
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:424
void select(int iIndex) const
Definition: FWEventItem.cc:252
FWDialogBuilder & beginTab(const char *label)
void runSelection()
Definition: CmsShowEDI.cc:462
void deselectAll()
Definition: CmsShowEDI.cc:499
FWEventItem * m_item
Definition: CmsShowEDI.h:121
void setIsVisible(bool iSet)
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
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:509
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:103
void clearPBFrame()
Definition: CmsShowEDI.cc:227
const std::string & moduleLabel() const
Definition: FWEventItem.cc:520
void show(FWDataCategories)
Definition: CmsShowEDI.cc:522
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:112
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=0)
void selectAll()
Definition: CmsShowEDI.cc:490