23 #include "TEveWindow.h" 45 : TGTransientFrame(gClient->GetDefaultRoot(),
p,
w,
h),
49 m_saveImageButton(nullptr),
50 m_changeBackground(nullptr),
51 m_colorManager(iCMgr),
53 m_eveWindow(nullptr) {
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));
215 TGCompositeFrame*
parent =
m_tab->GetCurrentContainer();
217 TGFrame* pframe = ptr->build(
parent);
218 parent->AddFrame(pframe,
new TGLayoutHints(kLHintsExpandX));
222 pframe->MapSubwindows();
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));
261 m_tab->SetTab(
"Style");
ViewerParameterGUI(const TGFrame *)
std::string m_selectedTabName
ViewerParameterGUI & requestTab(const char *)
ViewerParameterGUI & separator()
void addFrameToContainer(TGCompositeFrame *)
void setBackgroundColorIndex(BackgroundColorIndex)
BackgroundColorIndex backgroundColorIndex() const
std::vector< std::shared_ptr< FWParameterSetterBase > > m_setters
virtual void populateController(ViewerParameterGUI &) const
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
static std::shared_ptr< FWParameterSetterBase > makeSetterFor(FWParameterBase *)
void promptForSaveImageTo(TGFrame *) const
FWViewType::EType typeId() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
sigc::signal< void()> colorsHaveChanged_
const std::string & typeName() const