16 #include <boost/bind.hpp>
23 #include "TEveWindow.h"
45 TGTransientFrame(gClient->GetDefaultRoot(),p, w, h),
50 m_changeBackground(0),
51 m_colorManager(iCMgr),
57 SetCleanup(kDeepCleanup);
60 TGHorizontalFrame* viewFrame =
new TGHorizontalFrame(
this);
61 m_viewLabel =
new TGLabel(viewFrame,
"No view selected");
64 TGFont* defaultFont = gClient->GetFontPool()->GetFont(
m_viewLabel->GetDefaultFontStruct());
65 m_viewLabel->SetTextFont(gClient->GetFontPool()->GetFont(defaultFont->GetFontAttributes().fFamily, 14, defaultFont->GetFontAttributes().fWeight + 2, defaultFont->GetFontAttributes().fSlant));
75 viewFrame->AddFrame(
m_viewLabel,
new TGLayoutHints(kLHintsExpandX));
76 AddFrame(viewFrame,
new TGLayoutHints(kLHintsExpandX, 2, 2, 0, 0));
88 AddFrame(
new TGHorizontal3DLine(
this),
new TGLayoutHints(kLHintsExpandX, 0, 0, 5, 5));
90 AddFrame(
m_paramGUI,
new TGLayoutHints(kLHintsExpandX|kLHintsExpandY));
92 SetWindowName(
"View Controller");
128 Resize(GetDefaultSize());
132 CenterOnParent(kTRUE, TGTransientFrame::kTopRight);
146 TGWindow::MapWindow();
153 TGWindow::UnmapWindow();
187 m_selectedTabName(
"Style")
189 SetCleanup(kDeepCleanup);
212 m_tab =
new TGTab(
this);
213 AddFrame(
m_tab,
new TGLayoutHints(kLHintsExpandX));
216 if (!
m_tab->GetTabContainer(name))
230 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
232 TGFrame* pframe = ptr->build(parent);
233 parent->AddFrame(pframe,
new TGLayoutHints(kLHintsExpandX));
237 pframe->MapSubwindows();
239 parent->MapSubwindows();
242 parent->Resize(parent->GetDefaultSize());
253 TGHorizontal3DLine*
s =
new TGHorizontal3DLine(
m_tab->GetCurrentContainer());
254 m_tab->GetCurrentContainer()->AddFrame(s,
new TGLayoutHints(kLHintsExpandX,4 ,4, 2, 2));
263 return m_tab->GetCurrentContainer();
270 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
271 parent->AddFrame(x,
new TGLayoutHints(kLHintsExpandX,4 ,4, 2, 2) );
273 parent->MapSubwindows();
276 parent->Resize(parent->GetDefaultSize());
286 if (!x)
m_tab->SetTab(
"Style");
ViewerParameterGUI(const TGFrame *)
std::string m_selectedTabName
std::vector< boost::shared_ptr< FWParameterSetterBase > > m_setters
ViewerParameterGUI & requestTab(const char *)
ViewerParameterGUI & separator()
const std::string & typeName() const
static boost::shared_ptr< FWParameterSetterBase > makeSetterFor(FWParameterBase *)
void addFrameToContainer(TGCompositeFrame *)
void setBackgroundColorIndex(BackgroundColorIndex)
BackgroundColorIndex backgroundColorIndex() const
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
virtual void populateController(ViewerParameterGUI &) const
void promptForSaveImageTo(TGFrame *) const
sigc::signal< void > colorsHaveChanged_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.