16 #include <boost/bind.hpp>
24 #include "TEveWindow.h"
46 TGTransientFrame(gClient->GetDefaultRoot(),p, w, h),
51 m_changeBackground(0),
52 m_colorManager(iCMgr),
58 SetCleanup(kDeepCleanup);
61 TGHorizontalFrame* viewFrame =
new TGHorizontalFrame(
this);
62 m_viewLabel =
new TGLabel(viewFrame,
"No view selected");
65 TGFont* defaultFont = gClient->GetFontPool()->GetFont(
m_viewLabel->GetDefaultFontStruct());
66 m_viewLabel->SetTextFont(gClient->GetFontPool()->GetFont(defaultFont->GetFontAttributes().fFamily, 14, defaultFont->GetFontAttributes().fWeight + 2, defaultFont->GetFontAttributes().fSlant));
76 viewFrame->AddFrame(
m_viewLabel,
new TGLayoutHints(kLHintsExpandX));
77 AddFrame(viewFrame,
new TGLayoutHints(kLHintsExpandX, 2, 2, 0, 0));
89 AddFrame(
new TGHorizontal3DLine(
this),
new TGLayoutHints(kLHintsExpandX, 0, 0, 5, 5));
91 AddFrame(
m_paramGUI,
new TGLayoutHints(kLHintsExpandX|kLHintsExpandY));
93 SetWindowName(
"View Controller");
136 Resize(GetDefaultSize());
140 CenterOnParent(kTRUE, TGTransientFrame::kTopRight);
157 TGWindow::MapWindow();
164 TGWindow::UnmapWindow();
198 m_selectedTabName(
"Style")
200 SetCleanup(kDeepCleanup);
216 assert(GetList()->GetSize() == 1);
217 TGFrameElement *el = (TGFrameElement*) GetList()->First();
218 TGFrame*
f = el->fFrame;
233 m_tab =
new TGTab(
this);
234 AddFrame(
m_tab,
new TGLayoutHints(kLHintsExpandX |kLHintsExpandY ));
237 if (!
m_tab->GetTabContainer(name))
251 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
253 TGFrame* pframe = ptr->build(parent);
254 parent->AddFrame(pframe,
new TGLayoutHints(kLHintsExpandX));
258 pframe->MapSubwindows();
260 parent->MapSubwindows();
263 parent->Resize(parent->GetDefaultSize());
274 TGHorizontal3DLine*
s =
new TGHorizontal3DLine(
m_tab->GetCurrentContainer());
275 m_tab->GetCurrentContainer()->AddFrame(s,
new TGLayoutHints(kLHintsExpandX,4 ,4, 2, 2));
284 return m_tab->GetCurrentContainer();
291 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
292 parent->AddFrame(x,
new TGLayoutHints(kLHintsExpandX,4 ,4, 2, 2) );
294 parent->MapSubwindows();
297 parent->Resize(parent->GetDefaultSize());
307 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
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
virtual void populateController(ViewerParameterGUI &) const
void promptForSaveImageTo(TGFrame *) const
sigc::signal< void > colorsHaveChanged_
FWViewType::EType typeId() const