15 #include <boost/bind.hpp> 23 #include "TEveWindow.h" 45 : TGTransientFrame(gClient->GetDefaultRoot(), p, w, h),
51 m_colorManager(iCMgr),
56 SetCleanup(kDeepCleanup);
59 TGHorizontalFrame* viewFrame =
new TGHorizontalFrame(
this);
60 m_viewLabel =
new TGLabel(viewFrame,
"No view selected");
62 TGFont* defaultFont = gClient->GetFontPool()->GetFont(
m_viewLabel->GetDefaultFontStruct());
63 m_viewLabel->SetTextFont(gClient->GetFontPool()->GetFont(defaultFont->GetFontAttributes().fFamily,
65 defaultFont->GetFontAttributes().fWeight + 2,
66 defaultFont->GetFontAttributes().fSlant));
74 viewFrame->AddFrame(
m_viewLabel,
new TGLayoutHints(kLHintsExpandX));
75 AddFrame(viewFrame,
new TGLayoutHints(kLHintsExpandX, 2, 2, 0, 0));
80 m_changeBackground->Connect(
"Clicked()",
"CmsShowViewPopup",
this,
"changeBackground()");
87 AddFrame(
new TGHorizontal3DLine(
this),
new TGLayoutHints(kLHintsExpandX, 0, 0, 5, 5));
89 AddFrame(
m_paramGUI,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
91 SetWindowName(
"View Controller");
127 Resize(GetDefaultSize());
130 CenterOnParent(kTRUE, TGTransientFrame::kTopRight);
140 TGWindow::MapWindow();
145 TGWindow::UnmapWindow();
171 : TGCompositeFrame(p), m_tab(
nullptr), m_selectedTabName(
"Style") {
172 SetCleanup(kDeepCleanup);
185 assert(GetList()->GetSize() == 1);
186 TGFrameElement* el = (TGFrameElement*)GetList()->First();
187 TGFrame*
f = el->fFrame;
199 m_tab =
new TGTab(
this);
200 AddFrame(
m_tab,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
203 if (!
m_tab->GetTabContainer(name))
215 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
217 TGFrame* pframe = ptr->build(parent);
218 parent->AddFrame(pframe,
new TGLayoutHints(kLHintsExpandX));
222 pframe->MapSubwindows();
224 parent->MapSubwindows();
227 parent->Resize(parent->GetDefaultSize());
234 TGHorizontal3DLine*
s =
new TGHorizontal3DLine(
m_tab->GetCurrentContainer());
235 m_tab->GetCurrentContainer()->AddFrame(s,
new TGLayoutHints(kLHintsExpandX, 4, 4, 2, 2));
242 return m_tab->GetCurrentContainer();
247 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
248 parent->AddFrame(x,
new TGLayoutHints(kLHintsExpandX, 4, 4, 2, 2));
250 parent->MapSubwindows();
253 parent->Resize(parent->GetDefaultSize());
261 m_tab->SetTab(
"Style");
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
ViewerParameterGUI(const TGFrame *)
std::string m_selectedTabName
ViewerParameterGUI & requestTab(const char *)
ViewerParameterGUI & separator()
const std::string & typeName() const
void addFrameToContainer(TGCompositeFrame *)
void setBackgroundColorIndex(BackgroundColorIndex)
BackgroundColorIndex backgroundColorIndex() const
std::vector< std::shared_ptr< FWParameterSetterBase > > m_setters
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
static std::shared_ptr< FWParameterSetterBase > makeSetterFor(FWParameterBase *)
virtual void populateController(ViewerParameterGUI &) const
void promptForSaveImageTo(TGFrame *) const
sigc::signal< void > colorsHaveChanged_
FWViewType::EType typeId() const