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  builder.indent(0)
79  .addLabel(" ", 14, 2, &m_objectLabel)
80  .vSpacer()
81  .tabs(&m_tabs)
82  .beginTab("Graphics")
83  .indent(3)
84  .addLabel("Color", 8)
85  .addColorPicker(colorMgr, &m_colorSelectWidget).expand(false)
86  .addHSeparator()
87  .addLabel("Opacity", 8)
89  .addHSeparator()
90  .addCheckbox("Visible", &m_isVisibleButton)
91  .addHSeparator()
92  .addLabel("Drawing order", 8)
93  .addTextButton("To back", &m_backButton).floatLeft().expand(false)
94  .addNumberEntry(0.0, 4, TGNumberFormat::kNESInteger,
97  &m_layerEntry).expand(false).floatLeft()
98  .addTextButton("To front", &m_frontButton).expand(false)
99  .vSpacer()
100  .addHSeparator()
101  .endTab()
102  .beginTab("Filter")
103  .indent(3)
104  .addLabel("Expression", 8)
106  .addTextButton("Filter", &m_filterButton).expand(false)
107  .addCheckbox("Hide filtered items in table", &m_showFilteredCheckButton).expand(false)
108  .addTextView("", &m_filterError).expand(true, true)
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)
121  .addTextView("", &m_selectError).expand(true, true)
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_showFilteredCheckButton->Connect("Toggled(Bool_t)", "CmsShowEDI", this, "toggleShowFiltered()");
155 
156  m_colorSelectWidget->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeItemColor(Color_t)");
157  m_cw->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeSelectionColor(Color_t)");
158  m_opacitySlider->Connect("PositionChanged(Int_t)", "CmsShowEDI", this, "changeItemOpacity(Int_t)");
159  m_isVisibleButton->Connect("Toggled(Bool_t)", "CmsShowEDI", this, "toggleItemVisible(Bool_t)");
160  m_filterExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runFilter()");
161  m_filterButton->Connect("Clicked()", "CmsShowEDI", this, "runFilter()");
162  m_selectExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runSelection()");
163  m_selectButton->Connect("Clicked()", "CmsShowEDI", this, "runSelection()");
164  m_removeButton->Connect("Clicked()", "CmsShowEDI", this, "removeItem()");
165  m_selectAllButton->Connect("Clicked()", "CmsShowEDI", this, "selectAll()");
166  m_deselectAllButton->Connect("Clicked()", "CmsShowEDI", this, "deselectAll()");
167  m_frontButton->Connect("Clicked()","CmsShowEDI",this,"moveToFront()");
168  m_backButton->Connect("Clicked()","CmsShowEDI",this,"moveToBack()");
169  m_layerEntry->Connect("ValueSet(Long_t)","CmsShowEDI",this,"moveToLayer(Long_t)");
170 
171 
172  TGCompositeFrame* cf = m_tabs->GetTabContainer(0);
173  m_settersFrame = new TGVerticalFrame(cf);
174  m_settersFrame->SetCleanup(kDeepCleanup);
175  // m_settersFrame->SetBackgroundColor(0xff00ff);
176  cf->AddFrame(m_settersFrame, new TGLayoutHints(kLHintsExpandX| kLHintsExpandY ));
177 
178  SetWindowName("Collection Controller");
179  MapSubwindows();
180  Resize(GetDefaultSize());
181  Layout();
182  m_filterExpressionEntry->SetForegroundColor(kOrange);
183  fillEDIFrame();
184 }
185 
186 // CmsShowEDI::CmsShowEDI(const CmsShowEDI& rhs)
187 // {
188 // // do actual copying here;
189 // }
190 
192 {
193  disconnectAll();
194  m_colorSelectWidget->Disconnect("ColorSelected(Pixel_t)", this, "changeItemColor(Pixel_t)");
195  m_cw->Disconnect("ColorSelected(Pixel_t)", this, "changeSelectionColor(Pixel_t)");
196  m_opacitySlider->Disconnect("PositionChanged(Int_t)", this, "changeItemColor");
197  m_isVisibleButton->Disconnect("Toggled(Bool_t)", this, "toggleItemVisible(Bool_t)");
198  m_filterExpressionEntry->Disconnect("ReturnPressed()", this, "runFilter()");
199  m_selectExpressionEntry->Disconnect("ReturnPressed()", this, "runSelection()");
200  m_filterButton->Disconnect("Clicked()", this, "runFilter()");
201  m_showFilteredCheckButton->Disconnect("Toggled(Bool_t)", this, "toggleShowFiltered(Bool_t)");
202  m_selectButton->Disconnect("Clicked()", this, "runSelection()");
203  m_selectAllButton->Disconnect("Clicked()", this, "selectAll()");
204  m_deselectAllButton->Disconnect("Clicked()", this, "deselectAll()");
205  m_removeButton->Disconnect("Clicked()", this, "removeItem()");
206  m_frontButton->Disconnect("Clicked()",this,"moveToFront()");
207  m_backButton->Disconnect("Clicked()",this,"moveToBack()");
208  m_layerEntry->Disconnect("ValueSet(Long_t)",this,"moveToLayer(Long_t)");
209  // delete m_objectLabel;
210  // delete m_colorSelectWidget;
211  // delete m_isVisibleButton;
212  delete m_validator;
213 }
214 
215 //
216 // assignment operators
217 //
218 // const CmsShowEDI& CmsShowEDI::operator=(const CmsShowEDI& rhs)
219 // {
220 // //An exception safe implementation is
221 // CmsShowEDI temp(rhs);
222 // swap(rhs);
223 //
224 // return *this;
225 // }
226 
227 //
228 // member functions
229 //
230 
232 {
233  if (!m_settersFrame->GetList()->IsEmpty())
234  {
235  // printf("remove FRAME \n");
236  TGFrameElement *el = (TGFrameElement*) m_settersFrame->GetList()->First();
237  TGFrame* f = el->fFrame;
238  f->UnmapWindow();
239  m_settersFrame->RemoveFrame(f);
240  f->DestroyWindow();
241  }
242 }
243 
244 void
246  FWEventItem* iItem =0;
247  bool multipleCollections = false;
248  if(!m_selectionManager->selectedItems().empty()) {
249  if(m_selectionManager->selectedItems().size()==1) {
250  iItem=*(m_selectionManager->selectedItems().begin());
251  } else {
252  multipleCollections=true;
253  }
254  }
255  //m_item can be zero because we had 0 or many collections selected
256  if (0 == m_item || iItem != m_item) {
257  disconnectAll();
258  m_item = iItem;
259  if(0 != m_item) {
261  m_objectLabel->SetText(iItem->name().c_str());
263  m_opacitySlider->SetPosition(100 - p.transparency());
264  m_isVisibleButton->SetDisabledAndSelected(p.isVisible());
265  m_validator->setType(edm::TypeWithDict(*(iItem->modelType()->GetTypeInfo())));
266  m_filterExpressionEntry->SetText(iItem->filterExpression().c_str());
267  m_filterError->Clear();
268  m_showFilteredCheckButton->SetDisabledAndSelected(!iItem->showFilteredEntries());
269  m_selectError->Clear();
270  m_nameEntry->SetText(iItem->name().c_str());
271  m_typeEntry->SetText(iItem->type()->GetName());
272  m_moduleEntry->SetText(iItem->moduleLabel().c_str());
273  m_instanceEntry->SetText(iItem->productInstanceLabel().c_str());
274  m_processEntry->SetText(iItem->processName().c_str());
275  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
276  m_colorSelectWidget->SetEnabled(kTRUE);
277  m_opacitySlider->SetEnabled(kTRUE);
278  m_isVisibleButton->SetEnabled(kTRUE);
279  m_filterExpressionEntry->SetEnabled(kTRUE);
280  m_selectExpressionEntry->SetEnabled(kTRUE);
281  m_showFilteredCheckButton->SetEnabled(kTRUE);
282  m_filterButton->SetEnabled(kTRUE);
283  m_selectButton->SetEnabled(kTRUE);
284  m_selectAllButton->SetEnabled(kTRUE);
285  m_deselectAllButton->SetEnabled(kTRUE);
286  m_cw->SetColorByIndex(p.color(),kFALSE);
287  m_cw->SetEnabled(kTRUE);
288  m_removeButton->SetEnabled(kTRUE);
290  m_layerEntry->SetState(kTRUE);
292  m_modelChangedConn = m_item->changed_.connect(boost::bind(&CmsShowEDI::updateFilter, this));
293  // m_selectionChangedConn = m_selectionManager->selectionChanged_.connect(boost::bind(&CmsShowEDI::updateSelection, this));
295 
296  clearPBFrame();
298  }
299  else if(multipleCollections) {
300  std::ostringstream s;
301  s<<m_selectionManager->selectedItems().size()<<" Collections Selected";
302  m_objectLabel->SetText(s.str().c_str());
303  }
304 
305  Resize(GetDefaultSize());
306  Layout();
307  }
308 }
309 
310 void
312  Int_t chosen=0;
313  std::string message("This action will remove the ");
314  message += m_item->name();
315  message +=" collection from the display."
316  "\nIf you wish to return the collection you would have to use the 'Add Collection' window.";
317  new TGMsgBox(gClient->GetDefaultRoot(),
318  this,
319  "Remove Collection Confirmation",
320  message.c_str(),
321  kMBIconExclamation,
322  kMBCancel | kMBApply,
323  &chosen);
324  if(kMBApply == chosen) {
325  m_item->destroy();
326  m_item = 0;
327  //make sure the ROOT global editor does not try to use this
328  gEve->EditElement(0);
329  gEve->Redraw3D();
330  }
331 }
332 
333 void
335  //std::cout<<"Updating display"<<std::endl;
337  m_colorSelectWidget->SetColorByIndex(props.color(),kFALSE);
338  m_opacitySlider->SetPosition(100 - props.transparency());
339  m_isVisibleButton->SetState(props.isVisible() ? kButtonDown : kButtonUp, kFALSE);
340 }
341 
342 void
344 {
345  m_backButton->SetEnabled(!m_item->isInBack());
346  m_frontButton->SetEnabled(!m_item->isInFront());
347  m_layerEntry->SetIntNumber(m_item->layer());
348 }
349 void
351 {
352  m_item->moveToBack();
354 }
355 void
357 {
358  m_item->moveToFront();
360 }
361 void
363 {
364  m_item->moveToLayer(static_cast<Int_t>(m_layerEntry->GetIntNumber()));
366 }
367 
368 void
370  m_filterExpressionEntry->SetText(m_item->filterExpression().c_str());
371 }
372 
373 void
375  m_objectLabel->SetText("No Collection Selected");
376  clearPBFrame();
377  if(0 != m_item) {
378  m_displayChangedConn.disconnect();
379  m_modelChangedConn.disconnect();
380  m_destroyedConn.disconnect();
381  m_item = 0;
383  m_opacitySlider->SetPosition(100);
384  m_isVisibleButton->SetDisabledAndSelected(kTRUE);
385  m_filterExpressionEntry->SetText(0);
386  m_selectExpressionEntry->SetText(0);
387  m_nameEntry->SetText(0);
388  m_typeEntry->SetText(0);
389  m_moduleEntry->SetText(0);
390  m_instanceEntry->SetText(0);
391  m_processEntry->SetText(0);
392  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
393  m_colorSelectWidget->SetEnabled(kFALSE);
394  m_opacitySlider->SetEnabled(kFALSE);
395 
396  m_isVisibleButton->SetEnabled(kFALSE);
397  m_filterExpressionEntry->SetEnabled(kFALSE);
398  m_filterButton->SetEnabled(kFALSE);
399  m_selectExpressionEntry->SetEnabled(kFALSE);
400  m_selectButton->SetEnabled(kFALSE);
401  m_selectAllButton->SetEnabled(kFALSE);
402  m_deselectAllButton->SetEnabled(kFALSE);
403  m_removeButton->SetEnabled(kFALSE);
404  m_backButton->SetEnabled(kFALSE);
405  m_frontButton->SetEnabled(kFALSE);
406  m_layerEntry->SetIntNumber(0);
407  m_layerEntry->SetState(kFALSE);
408  m_layerEntry->GetNumberEntry()->SetEnabled(kFALSE);
409  m_layerEntry->GetButtonUp()->SetEnabled(kFALSE);
410  m_layerEntry->GetButtonDown()->SetEnabled(kFALSE);
411  }
412 }
413 
420 void
423  changeProperties.setColor(color);
424  m_item->setDefaultDisplayProperties(changeProperties);
425  m_cw->SetColorByIndex(color,kFALSE);
426 }
427 
429 void
432  changeProperties.setIsVisible(on);
433  m_item->setDefaultDisplayProperties(changeProperties);
434 }
435 
443 void
446  changeProperties.setTransparency(100 - opacity);
447  m_item->setDefaultDisplayProperties(changeProperties);
448 }
449 
450 void
452  const std::string filter(m_filterExpressionEntry->GetText());
453  if (m_item != 0) {
454  try {
455  m_filterError->Clear();
457  } catch( const FWExpressionException& e) {
458  m_filterError->AddLine(e.what().c_str());
459  m_filterError->Update();
460  if(e.column() > -1) {
461  m_filterExpressionEntry->SetCursorPosition(e.column());
462  }
463  }
464  }
465 }
466 
467 void
470 }
471 
472 
473 void
475  FWModelExpressionSelector selector;
477  if (m_item != 0)
478  {
479  try
480  {
481  m_selectError->Clear();
482  //NOTE call clearModelSelectionLeaveItem so that the item does not get deselected
483  // just for safety use a copy of the pointer to m_item
484  FWEventItem* item = m_item;
485  item->selectionManager()-> clearModelSelectionLeaveItem();
486 
487  selector.select(item, selection, TColor::GetColor(m_cw->GetColor()));
488  }
489  catch( const FWExpressionException& e)
490  {
491  m_selectError->AddLine(e.what().c_str());
492  m_selectError->Update();
493  if (e.column() > -1)
494  {
495  m_selectExpressionEntry->SetCursorPosition(e.column());
496  }
497  }
498  }
499 }
500 
501 void
503 {
504  FWChangeSentry sentry(*(m_item->changeManager()));
505  for (int i = 0; i < static_cast<int>(m_item->size()); i++)
506  {
507  m_item->select(i);
508  }
509 }
510 void
512 {
513  FWChangeSentry sentry(*(m_item->changeManager()));
514  for (int i = 0; i < static_cast<int>(m_item->size()); i++)
515  {
516  m_item->unselect(i);
517  }
518 }
519 
520 void
522 {
523  FWChangeSentry sentry(*(m_item->changeManager()));
524  const std::set<FWModelId>& ss = m_item->selectionManager()->selected();
526  dp.setColor(c);
527  for (std::set<FWModelId>::const_iterator i = ss.begin(); i != ss.end(); ++i ) {
528  m_item->setDisplayProperties(i->index(), dp);
529  }
530 }
531 
532 
533 void
535 {
536  m_tabs->SetTab(iToView);
537 }
538 
539 /* Called by FWGUIManager when change background/colorset. */
540 void
542 {
543  if (m_item)
544  {
547  m_cw->SetColorByIndex(p.color(),kFALSE);
548  }
549 }
void populateFrame(TGCompositeFrame *frame)
const std::set< FWModelId > & selected() const
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:168
int i
Definition: DBlmapReader.cc:9
const FWDisplayProperties & defaultDisplayProperties() const
Definition: FWEventItem.cc:464
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=0)
void fillEDIFrame()
Definition: CmsShowEDI.cc:245
void setColor(Color_t iColor)
FWModelChangeManager * changeManager() const
Definition: FWEventItem.h:133
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:125
const std::string & what() const
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:108
void setType(const edm::TypeWithDict &)
void destroy() const
Definition: FWEventItem.cc:622
void colorSetChanged()
Definition: CmsShowEDI.cc:541
void moveToBack()
Definition: FWEventItem.cc:344
const double w
Definition: UKUtility.cc:23
void moveToFront()
Definition: FWEventItem.cc:321
FWColorSelect * m_cw
Definition: CmsShowEDI.h:117
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:109
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:110
void moveToLayer(int layer)
Definition: FWEventItem.cc:367
void SetColorByIndex(Color_t iColor)
FWDialogBuilder & endTab(void)
const std::string & name() const
Definition: FWEventItem.cc:513
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:287
selection
main part
Definition: corrVsCorr.py:98
const std::string & filterExpression() const
Definition: FWEventItem.cc:616
FWItemChangeSignal defaultDisplayPropertiesChanged_
Definition: FWEventItem.h:212
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:102
void unselect(int iIndex) const
Definition: FWEventItem.cc:250
TGTab * m_tabs
Definition: CmsShowEDI.h:101
FWItemChangeSignal goingToBeDestroyed_
Definition: FWEventItem.h:219
void disconnectAll()
Definition: CmsShowEDI.cc:374
const std::string & processName() const
Definition: FWEventItem.cc:542
const std::set< FWEventItem * > & selectedItems() const
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:115
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:362
void updateFilter()
Definition: CmsShowEDI.cc:369
static int maxLayerValue()
Definition: FWEventItem.cc:43
FWDialogBuilder & vSpacer(size_t size=0)
void moveToFront()
Definition: CmsShowEDI.cc:356
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:134
Color_t color() const
int layer() const
Definition: FWEventItem.cc:470
FWDialogBuilder & untabs(void)
void setShowFilteredEntries(bool x)
Definition: FWEventItem.cc:208
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:121
void removeItem()
Definition: CmsShowEDI.cc:311
Char_t transparency() const
void setDefaultDisplayProperties(const FWDisplayProperties &)
Definition: FWEventItem.cc:156
const std::string & productInstanceLabel() const
Definition: FWEventItem.cc:536
void updateDisplay()
Definition: CmsShowEDI.cc:334
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:421
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:106
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=0)
void moveToBack()
Definition: CmsShowEDI.cc:350
const TClass * type() const
Definition: FWEventItem.cc:519
TGCheckButton * m_showFilteredCheckButton
Definition: CmsShowEDI.h:113
FWDialogBuilder & addTextView(const char *defaultText=0, TGTextView **out=0)
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:116
void setValidator(FWValidatorBase *)
TGTextButton * m_backButton
Definition: CmsShowEDI.h:105
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:120
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:127
bool showFilteredEntries() const
Definition: FWEventItem.h:100
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:444
FWSelectionManager * selectionManager() const
Definition: FWEventItem.h:136
FWDialogBuilder & addValidatingTextEntry(const char *defaultText, FWGUIValidatingTextEntry **out)
TGTextView * m_selectError
Definition: CmsShowEDI.h:130
FWDialogBuilder & addTextEntry(const char *defaultText, TGTextEntry **out)
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:103
virtual ~CmsShowEDI()
Definition: CmsShowEDI.cc:191
void toggleShowFiltered(Bool_t on=true)
Definition: CmsShowEDI.cc:468
bool isInBack() const
returns true if item is behind all other items
Definition: FWEventItem.cc:491
size_t size() const
Definition: FWEventItem.cc:562
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:131
bool isInFront() const
returns true if item is in front of all other items
Definition: FWEventItem.cc:476
void setFilterExpression(const std::string &)
Definition: FWEventItem.cc:200
TGTextView * m_filterError
Definition: CmsShowEDI.h:129
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:122
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:107
void runFilter()
Definition: CmsShowEDI.cc:451
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:200
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:112
const TClass * modelType() const
Definition: FWEventItem.cc:575
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:100
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:119
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:430
void select(int iIndex) const
Definition: FWEventItem.cc:261
FWDialogBuilder & beginTab(const char *label)
void runSelection()
Definition: CmsShowEDI.cc:474
void deselectAll()
Definition: CmsShowEDI.cc:511
FWEventItem * m_item
Definition: CmsShowEDI.h:123
void setIsVisible(bool iSet)
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:126
void updateLayerControls()
Definition: CmsShowEDI.cc:343
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:111
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:118
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:521
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:104
void clearPBFrame()
Definition: CmsShowEDI.cc:231
const std::string & moduleLabel() const
Definition: FWEventItem.cc:531
void show(FWDataCategories)
Definition: CmsShowEDI.cc:534
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:114
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=0)
void selectAll()
Definition: CmsShowEDI.cc:502