17 #include <sigc++/sigc++.h>
18 #include <boost/bind.hpp>
27 #include "TGNumberEntry.h"
28 #include "TGTextEntry.h"
29 #include "TGTextView.h"
32 #include "TEveManager.h"
35 #include "TGComboBox.h"
64 TGTransientFrame(gClient->GetDefaultRoot(),p, w, h),
67 m_colorManager(colorMgr)
70 SetCleanup(kDeepCleanup);
74 TGVerticalFrame* vf =
new TGVerticalFrame(
this);
75 AddFrame(vf,
new TGLayoutHints(kLHintsExpandX|kLHintsExpandY, 0, 0, 0, 0));
137 m_filterError->SetForegroundColor(gVirtualX->GetPixel(kRed));
138 m_filterError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
141 m_selectError->SetForegroundColor(gVirtualX->GetPixel(kRed));
142 m_selectError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
148 m_colorSelectWidget->Connect(
"ColorChosen(Color_t)",
"CmsShowEDI",
this,
"changeItemColor(Color_t)");
149 m_opacitySlider->Connect(
"PositionChanged(Int_t)",
"CmsShowEDI",
this,
"changeItemOpacity(Int_t)");
150 m_isVisibleButton->Connect(
"Toggled(Bool_t)",
"CmsShowEDI",
this,
"toggleItemVisible(Bool_t)");
152 m_filterButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"runFilter()");
154 m_selectButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"runSelection()");
155 m_removeButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"removeItem()");
157 m_frontButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"moveToFront()");
158 m_backButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"moveToBack()");
159 m_layerEntry->Connect(
"ValueSet(Long_t)",
"CmsShowEDI",
this,
"moveToLayer(Long_t)");
161 SetWindowName(
"Collection Controller");
163 Resize(GetDefaultSize());
177 m_colorSelectWidget->Disconnect(
"ColorSelected(Pixel_t)",
this,
"changeItemColor(Pixel_t)");
178 m_opacitySlider->Disconnect(
"PositionChanged(Int_t)",
this,
"changeItemColor");
179 m_isVisibleButton->Disconnect(
"Toggled(Bool_t)",
this,
"toggleItemVisible(Bool_t)");
187 m_backButton->Disconnect(
"Clicked()",
this,
"moveToBack()");
188 m_layerEntry->Disconnect(
"ValueSet(Long_t)",
this,
"moveToLayer(Long_t)");
213 bool multipleCollections =
false;
218 multipleCollections=
true;
256 }
else if(multipleCollections) {
257 std::ostringstream
s;
262 Resize(GetDefaultSize());
270 std::string
message(
"This action will remove the ");
272 message +=
" collection from the display."
273 "\nIf you wish to return the collection you would have to use the 'Add Collection' window.";
274 new TGMsgBox(gClient->GetDefaultRoot(),
276 "Remove Collection Confirmation",
279 kMBCancel | kMBApply,
281 if(kMBApply == chosen) {
285 gEve->EditElement(0);
449 for (
int i = 0; i < static_cast<int>(
m_item->
size());
i++) {
const FWDisplayProperties & defaultDisplayProperties() const
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=0)
void setColor(Color_t iColor)
FWModelChangeManager * changeManager() const
sigc::connection m_displayChangedConn
const std::string & what() const
TGHSlider * m_opacitySlider
TGCheckButton * m_isVisibleButton
FWGUIValidatingTextEntry * m_filterExpressionEntry
void moveToLayer(int layer)
void SetColorByIndex(Color_t iColor)
FWDialogBuilder & endTab(void)
const std::string & name() const
FWDialogBuilder & addLabel(const char *text, size_t fontSize=12, size_t weight=0, TGLabel **out=0)
const std::string & filterExpression() const
FWItemChangeSignal defaultDisplayPropertiesChanged_
FWItemChangeSignal goingToBeDestroyed_
const std::string & processName() const
const std::set< FWEventItem * > & selectedItems() const
TGTextButton * m_selectAllButton
static int maxLayerValue()
FWDialogBuilder & vSpacer(size_t size=0)
FWDialogBuilder & untabs(void)
TGTextEntry * m_instanceEntry
Char_t transparency() const
void setDefaultDisplayProperties(const FWDisplayProperties &)
const std::string & productInstanceLabel() const
void changeItemColor(Color_t color)
TGNumberEntry * m_layerEntry
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=0)
const TClass * type() const
bool select(FWEventItem *iItem, const std::string &iExpression) const
FWDialogBuilder & addTextView(const char *defaultText=0, TGTextView **out=0)
void setValidator(FWValidatorBase *)
TGTextButton * m_backButton
TGTextEntry * m_moduleEntry
sigc::connection m_destroyedConn
FWDialogBuilder & addHSeparator(size_t horizontalPadding=4, size_t verticalPadding=3)
static int minLayerValue()
FWDialogBuilder & tabs(TGTab **out)
void changeItemOpacity(Int_t opacity)
FWSelectionManager * selectionManager() const
FWDialogBuilder & addValidatingTextEntry(const char *defaultText, FWGUIValidatingTextEntry **out)
TGTextView * m_selectError
FWDialogBuilder & addTextEntry(const char *defaultText, TGTextEntry **out)
TGTextButton * m_removeButton
bool isInBack() const
returns true if item is behind all other items
tuple filter
USE THIS FOR SKIMMED TRACKS process.p = cms.Path(process.hltLevel1GTSeed*process.skimming*process.offlineBeamSpot*process.TrackRefitter2) OTHERWISE USE THIS.
FWDialogBuilder & floatLeft(size_t spacing=3)
FWExpressionValidator * m_validator
bool isInFront() const
returns true if item is in front of all other items
void setFilterExpression(const std::string &)
TGTextView * m_filterError
TGTextEntry * m_processEntry
FWDialogBuilder & expand(size_t expandX=true, size_t expandY=false)
void setTransparency(Char_t transparency)
sigc::signal< void, const FWSelectionManager & > itemSelectionChanged_
FWColorSelect * m_colorSelectWidget
CmsShowEDI(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=0, FWColorManager *colorMgr=0)
FWModelChangeSignal changed_
TGTextButton * m_filterButton
const TClass * modelType() const
FWSelectionManager * m_selectionManager
TGTextEntry * m_typeEntry
void toggleItemVisible(Bool_t on=kTRUE)
void select(int iIndex) const
FWDialogBuilder & beginTab(const char *label)
void setIsVisible(bool iSet)
sigc::connection m_modelChangedConn
void updateLayerControls()
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
FWGUIValidatingTextEntry * m_selectExpressionEntry
TGTextEntry * m_nameEntry
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)
TGTextButton * m_frontButton
void setType(const ROOT::Reflex::Type &)
const std::string & moduleLabel() const
void show(FWDataCategories)
TGTextButton * m_selectButton
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=0)