18 #include <sigc++/sigc++.h>
19 #include <boost/bind.hpp>
60 : TGTransientFrame(gClient->GetDefaultRoot(),
p,
w,
h),
61 m_detailViewManager(iManager),
62 m_colorManager(iColorMgr),
63 m_dialogBuilder(nullptr) {
66 SetCleanup(kDeepCleanup);
68 TGVerticalFrame *vf =
new TGVerticalFrame(
this);
69 AddFrame(vf,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 2, 2, 2, 4));
86 TGTextButton *detailedViewButton =
new TGTextButton(
this,
"Open Detailed View", 0);
87 AddFrame(detailedViewButton,
new TGLayoutHints(kLHintsExpandX, 4, 4, 4, 4));
90 m_colorSelectWidget->Connect(
"ColorChosen(Color_t)",
"CmsShowModelPopup",
this,
"changeModelColor(Color_t)");
91 m_isVisibleButton->Connect(
"Toggled(Bool_t)",
"CmsShowModelPopup",
this,
"toggleModelVisible(Bool_t)");
92 m_opacitySlider->Connect(
"PositionChanged(Int_t)",
"CmsShowModelPopup",
this,
"changeModelOpacity(Int_t)");
94 SetWindowName(
"Object Controller");
96 Resize(GetDefaultSize());
109 m_colorSelectWidget->Disconnect(
"ColorSelected(Pixel_t)",
this,
"changeModelColor(Pixel_t)");
110 m_opacitySlider->Disconnect(
"PositionChanged(Int_t)",
this,
"changeModelOpacity(Int_t)");
111 m_isVisibleButton->Disconnect(
"Toggled(Bool_t)",
this,
"toggleModelVisible(Bool_t)");
141 bool multipleNames =
false, multipleColors =
false, multipleVis =
false, multipleTransparecy =
false;
144 std::set<FWModelId>::const_iterator
id =
m_models.begin();
154 for (std::set<FWModelId>::const_iterator
i = ++(
m_models.begin()),
e =
m_models.end();
i !=
e; ++
i) {
158 multipleNames = multipleNames || (
item->name() !=
i->item()->name());
159 multipleColors = multipleColors || (props.
color() != nextProps.
color());
165 std::ostringstream
s;
185 TGTextButton *button;
187 button =
new TGTextButton(
this,
"dummy",
index);
188 AddFrame(button,
new TGLayoutHints(kLHintsExpandX, 4, 4, 4, 4));
189 TGCompositeFrame *cf = (TGCompositeFrame *)button->GetParent();
194 button->Connect(
"Clicked()",
"CmsShowModelPopup",
this,
"clicked()");
196 }
else if (!viewChoices.empty()) {
198 for (
size_t i = 0,
e = viewChoices.size();
i !=
e; ++
i) {
205 for (
size_t i = 0,
e = viewChoices.size();
i !=
e; ++
i) {
206 if (viewChoices[
i][0] ==
'!') {
229 Resize(GetDefaultSize());
298 i->item()->setDisplayProperties(
i->index(), changeProperties);
314 i->item()->setDisplayProperties(
i->index(), changeProperties);
330 i->item()->setDisplayProperties(
i->index(), changeProperties);
341 TGTextButton *
cs = static_cast<TGTextButton *>(gTQSender);
342 int iIndex =
cs->WidgetId();