16 #include <sigc++/sigc++.h> 17 #include <boost/bind.hpp> 26 #include "TGNumberEntry.h" 27 #include "TGTextEntry.h" 28 #include "TGTextView.h" 31 #include "TEveManager.h" 34 #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));
156 m_filterError->SetForegroundColor(gVirtualX->GetPixel(kRed));
157 m_filterError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
160 m_selectError->SetForegroundColor(gVirtualX->GetPixel(kRed));
161 m_selectError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
167 m_colorSelectWidget->Connect(
"ColorChosen(Color_t)",
"CmsShowEDI",
this,
"changeItemColor(Color_t)");
168 m_cw->Connect(
"ColorChosen(Color_t)",
"CmsShowEDI",
this,
"changeSelectionColor(Color_t)");
169 m_opacitySlider->Connect(
"PositionChanged(Int_t)",
"CmsShowEDI",
this,
"changeItemOpacity(Int_t)");
170 m_isVisibleButton->Connect(
"Toggled(Bool_t)",
"CmsShowEDI",
this,
"toggleItemVisible(Bool_t)");
172 m_filterButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"runFilter()");
174 m_selectButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"runSelection()");
175 m_removeButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"removeItem()");
178 m_frontButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"moveToFront()");
179 m_backButton->Connect(
"Clicked()",
"CmsShowEDI",
this,
"moveToBack()");
180 m_layerEntry->Connect(
"ValueSet(Long_t)",
"CmsShowEDI",
this,
"moveToLayer(Long_t)");
182 TGCompositeFrame* cf =
m_tabs->GetTabContainer(0);
185 cf->AddFrame(
m_settersFrame,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
187 SetWindowName(
"Collection Controller");
189 Resize(GetDefaultSize());
202 m_colorSelectWidget->Disconnect(
"ColorSelected(Pixel_t)",
this,
"changeItemColor(Pixel_t)");
203 m_cw->Disconnect(
"ColorSelected(Pixel_t)",
this,
"changeSelectionColor(Pixel_t)");
204 m_opacitySlider->Disconnect(
"PositionChanged(Int_t)",
this,
"changeItemColor");
205 m_isVisibleButton->Disconnect(
"Toggled(Bool_t)",
this,
"toggleItemVisible(Bool_t)");
213 m_frontButton->Disconnect(
"Clicked()",
this,
"moveToFront()");
214 m_backButton->Disconnect(
"Clicked()",
this,
"moveToBack()");
215 m_layerEntry->Disconnect(
"ValueSet(Long_t)",
this,
"moveToLayer(Long_t)");
241 TGFrameElement* el = (TGFrameElement*)
m_settersFrame->GetList()->First();
242 TGFrame*
f = el->fFrame;
251 bool multipleCollections =
false;
256 multipleCollections =
true;
289 m_cw->SetEnabled(kTRUE);
301 }
else if (multipleCollections) {
302 std::ostringstream
s;
307 Resize(GetDefaultSize());
314 std::string message(
"This action will remove the ");
317 " collection from the display." 318 "\nIf you wish to return the collection you would have to use the 'Add Collection' window.";
319 new TGMsgBox(gClient->GetDefaultRoot(),
321 "Remove Collection Confirmation",
324 kMBCancel | kMBApply,
326 if (kMBApply == chosen) {
330 gEve->EditElement(
nullptr);
476 for (
int i = 0; i < static_cast<int>(
m_item->
size());
i++) {
482 for (
int i = 0; i < static_cast<int>(
m_item->
size());
i++) {
492 for (std::set<FWModelId>::const_iterator
i = ss.begin();
i != ss.end(); ++
i) {
void populateFrame(TGCompositeFrame *frame)
const std::set< FWModelId > & selected() const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
FWProxyBuilderConfiguration * getConfig() const
const FWDisplayProperties & defaultDisplayProperties() const
void setColor(Color_t iColor)
FWModelChangeManager * changeManager() const
sigc::connection m_displayChangedConn
const std::string & what() const
TGHSlider * m_opacitySlider
void setType(const edm::TypeWithDict &)
TGCheckButton * m_isVisibleButton
FWGUIValidatingTextEntry * m_filterExpressionEntry
void moveToLayer(int layer)
void SetColorByIndex(Color_t iColor)
FWDialogBuilder & endTab(void)
const std::string & name() const
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=nullptr)
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=nullptr)
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
const std::string & filterExpression() const
FWDialogBuilder & addTextView(const char *defaultText=nullptr, TGTextView **out=nullptr)
FWItemChangeSignal defaultDisplayPropertiesChanged_
void unselect(int iIndex) const
FWItemChangeSignal goingToBeDestroyed_
const std::string & processName() const
const std::set< FWEventItem * > & selectedItems() const
FWDialogBuilder & addLabel(const char *text, size_t fontSize=12, size_t weight=0, TGLabel **out=nullptr)
TGTextButton * m_selectAllButton
FWDialogBuilder & addCheckbox(const char *text, TGCheckButton **out=nullptr)
static int maxLayerValue()
FWDialogBuilder & vSpacer(size_t size=0)
TGCompositeFrame * m_settersFrame
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
const TClass * type() const
TGTextButton * m_deselectAllButton
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
void select(FWEventItem *iItem, const std::string &iExpression, Color_t iColor=-1) const
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
FWModelChangeSignal changed_
TGTextButton * m_filterButton
void clearModelSelectionLeaveItem()
CmsShowEDI(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=nullptr, FWColorManager *colorMgr=nullptr)
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()
FWGUIValidatingTextEntry * m_selectExpressionEntry
TGTextEntry * m_nameEntry
FWDialogBuilder & indent(int left=2, int right=-1)
FWDialogBuilder & addNumberEntry(float defaultValue, size_t digits, TGNumberFormat::EStyle style, int min, int max, TGNumberEntry **out)
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=nullptr)
void changeSelectionColor(Color_t color)
TGTextButton * m_frontButton
const std::string & moduleLabel() const
void show(FWDataCategories)
TGTextButton * m_selectButton