#include <CmsShowViewPopup.h>
Public Member Functions | |
void | addFrameToContainer (TGCompositeFrame *) |
ViewerParameterGUI & | addParam (const FWParameterBase *) |
TGCompositeFrame * | getTabContainer () |
void | populateComplete () |
ViewerParameterGUI & | requestTab (const char *) |
void | reset () |
ViewerParameterGUI & | separator () |
ViewerParameterGUI (const TGFrame *) | |
virtual | ~ViewerParameterGUI () |
Private Attributes | |
std::string | m_selectedTabName |
std::vector< boost::shared_ptr < FWParameterSetterBase > > | m_setters |
TGTab * | m_tab |
Definition at line 49 of file CmsShowViewPopup.h.
ViewerParameterGUI::ViewerParameterGUI | ( | const TGFrame * | p | ) |
Definition at line 184 of file CmsShowViewPopup.cc.
: TGCompositeFrame(p), m_tab(0), m_selectedTabName("Style") { SetCleanup(kDeepCleanup); }
virtual ViewerParameterGUI::~ViewerParameterGUI | ( | ) | [inline, virtual] |
Definition at line 53 of file CmsShowViewPopup.h.
{}
void ViewerParameterGUI::addFrameToContainer | ( | TGCompositeFrame * | x | ) |
Definition at line 267 of file CmsShowViewPopup.cc.
References m_tab, and dbtoconf::parent.
Referenced by FWEveView::populateController().
ViewerParameterGUI & ViewerParameterGUI::addParam | ( | const FWParameterBase * | param | ) |
Definition at line 226 of file CmsShowViewPopup.cc.
References m_setters, m_tab, FWParameterSetterBase::makeSetterFor(), and dbtoconf::parent.
Referenced by FWTriggerTableView::populateController(), and FWRPZView::populateController().
{ boost::shared_ptr<FWParameterSetterBase> ptr( FWParameterSetterBase::makeSetterFor((FWParameterBase*)param) ); ptr->attach((FWParameterBase*)param, this); TGCompositeFrame* parent = m_tab->GetCurrentContainer(); TGFrame* pframe = ptr->build(parent); parent->AddFrame(pframe, new TGLayoutHints(kLHintsExpandX)); m_setters.push_back(ptr); pframe->MapWindow(); pframe->MapSubwindows(); pframe->Layout(); parent->MapSubwindows(); parent->Layout(); m_tab->Layout(); parent->Resize(parent->GetDefaultSize()); return *this; }
TGCompositeFrame * ViewerParameterGUI::getTabContainer | ( | ) |
Definition at line 260 of file CmsShowViewPopup.cc.
References m_tab.
Referenced by FW3DViewBase::populateController(), FWEveView::populateController(), FWTriggerTableView::populateController(), and FWRPZView::populateController().
void ViewerParameterGUI::populateComplete | ( | ) |
Definition at line 281 of file CmsShowViewPopup.cc.
References m_selectedTabName, m_tab, and x.
Referenced by CmsShowViewPopup::reset().
{ if (m_tab) { bool x = m_tab->SetTab(m_selectedTabName.c_str(), false); if (!x) m_tab->SetTab("Style"); } }
ViewerParameterGUI & ViewerParameterGUI::requestTab | ( | const char * | name | ) |
Definition at line 208 of file CmsShowViewPopup.cc.
References m_tab.
Referenced by FWLegoViewBase::populateController(), FW3DViewBase::populateController(), FWEveView::populateController(), FWTriggerTableView::populateController(), and FWRPZView::populateController().
void ViewerParameterGUI::reset | ( | void | ) |
Definition at line 193 of file CmsShowViewPopup.cc.
References m_selectedTabName, m_setters, and m_tab.
Referenced by CmsShowViewPopup::reset().
{ // remember selected tab if (m_tab) m_selectedTabName = m_tab->GetCurrentTab()->GetString(); else m_selectedTabName = "Style"; m_setters.clear(); if (m_tab) RemoveFrame(m_tab); m_tab = 0; }
ViewerParameterGUI & ViewerParameterGUI::separator | ( | ) |
Definition at line 250 of file CmsShowViewPopup.cc.
References m_tab, and asciidump::s.
Referenced by FW3DViewBase::populateController().
std::string ViewerParameterGUI::m_selectedTabName [private] |
Definition at line 67 of file CmsShowViewPopup.h.
Referenced by populateComplete(), and reset().
std::vector<boost::shared_ptr<FWParameterSetterBase> > ViewerParameterGUI::m_setters [private] |
Definition at line 69 of file CmsShowViewPopup.h.
Referenced by addParam(), and reset().
TGTab* ViewerParameterGUI::m_tab [private] |
Definition at line 66 of file CmsShowViewPopup.h.
Referenced by addFrameToContainer(), addParam(), getTabContainer(), populateComplete(), requestTab(), reset(), and separator().