15 #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");
135 Resize(GetDefaultSize());
139 CenterOnParent(kTRUE, TGTransientFrame::kTopRight);
156 TGWindow::MapWindow();
163 TGWindow::UnmapWindow();
197 m_selectedTabName(
"Style")
199 SetCleanup(kDeepCleanup);
215 assert(GetList()->GetSize() == 1);
216 TGFrameElement *el = (TGFrameElement*) GetList()->First();
217 TGFrame*
f = el->fFrame;
232 m_tab =
new TGTab(
this);
233 AddFrame(
m_tab,
new TGLayoutHints(kLHintsExpandX |kLHintsExpandY ));
236 if (!
m_tab->GetTabContainer(name))
250 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
252 TGFrame* pframe = ptr->build(parent);
253 parent->AddFrame(pframe,
new TGLayoutHints(kLHintsExpandX));
257 pframe->MapSubwindows();
259 parent->MapSubwindows();
262 parent->Resize(parent->GetDefaultSize());
273 TGHorizontal3DLine*
s =
new TGHorizontal3DLine(
m_tab->GetCurrentContainer());
274 m_tab->GetCurrentContainer()->AddFrame(s,
new TGLayoutHints(kLHintsExpandX,4 ,4, 2, 2));
283 return m_tab->GetCurrentContainer();
290 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
291 parent->AddFrame(x,
new TGLayoutHints(kLHintsExpandX,4 ,4, 2, 2) );
293 parent->MapSubwindows();
296 parent->Resize(parent->GetDefaultSize());
306 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)
T x() const
Cartesian x coordinate.
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