GuiCompositeFrameBase Class Reference

#include <GuiBase.h>

Inheritance diagram for GuiCompositeFrameBase:
GuiBase GuiBox GuiFrame GuiGroup GuiMainWindow GuiTab Display GuiHBox GuiMultiEntry GuiSlider GuiVBox PageDisplay RegistryGui AWindow

List of all members.

Public Member Functions

 GuiCompositeFrameBase ()
virtual ~GuiCompositeFrameBase ()
virtual void Add (GuiBase &f)
virtual void Remove (GuiBase &f)
virtual void Show (GuiBase &f)
virtual void Hide (GuiBase &f)
GuiBase::ChildrenList GetChildrenList ()

Detailed Description

Definition at line 78 of file GuiBase.h.


Constructor & Destructor Documentation

GuiCompositeFrameBase::GuiCompositeFrameBase (  )  [inline]

Definition at line 81 of file GuiBase.h.

00081 {}

virtual GuiCompositeFrameBase::~GuiCompositeFrameBase (  )  [inline, virtual]

Definition at line 82 of file GuiBase.h.

00082 {}


Member Function Documentation

void GuiCompositeFrameBase::Add ( GuiBase f  )  [virtual]

Reimplemented in GuiTab.

Definition at line 116 of file GuiBase.cxx.

References GuiBase::AddObject(), GuiBase::fChildren, GuiBase::GetFrame(), and GuiBase::GetLayoutHints().

Referenced by add_button(), add_canvas(), add_it(), add_spawner(), PageDisplay::AddButton(), PageDisplay::AddEntry(), PageDisplay::AddPage(), AWindow::AWindow(), build_table(), NueDisplayModule::BuildDisplay(), ParticleDisplay::BuildDisplay(), PageDisplay::BuildGUI(), TridPageDisplay::BuildGUI(), EVD::Digittext(), Display::Display(), GfxCfg::GuiConfig(), GuiSlider::GuiSlider(), handler_menu(), EventInfoPage::Init(), CanvasPage::Init(), SelectionInfoPage::Init(), TridPage::Init(), main(), PageDisplay::MakeDigitText(), PageDisplay::MakeMCText(), PageDisplay::MakeMCTree(), PageDisplay::MakeMCVectors(), PageDisplay::MakePmtPixels(), PageDisplay::MakeTimeHist(), EVD::MCtext(), EVD::MCTreetext(), TridPageDisplay::MySpawnSinglePage(), EVD::Recotext(), RegistryDialog::RegistryDialog(), RegistryGui::RegistryGui(), RunSnarlEntry::RunSnarlEntry(), RegistryGui::SetPossiblesMenu(), RegistryGui::SetRegistry(), TridPageDisplay::SetupMenus(), PageDisplay::SetupMenus(), PageDisplay::SetupSliders(), TridAnimator::ShowConfigFrame(), spawn_mydisplay(), spawn_text_window(), CheezyPage::SpawnConfigurator(), Mint::SpawnDisplay(), TestMCTree::SpawnMCTree(), PageDisplay::SpawnSinglePage(), and TridSetup().

00117 {
00118     fChildren.push_back(&child);
00119     TGCompositeFrame* cf = dynamic_cast<TGCompositeFrame*>(this->GetFrame());
00120     if (!cf) { 
00121         cerr << "GuiCompositeFrameBase: can't cast this to TGCompositeFrame\n";
00122         return;
00123     }
00124 
00125     TGLayoutHints* loh = new TGLayoutHints(child.GetLayoutHints());
00126     this->AddObject(loh);
00127     cf->AddFrame(child.GetFrame(),loh);
00128 }

GuiBase::ChildrenList GuiCompositeFrameBase::GetChildrenList (  )  [inline]

Definition at line 87 of file GuiBase.h.

References GuiBase::fChildren.

00087 { return fChildren; }

void GuiCompositeFrameBase::Hide ( GuiBase f  )  [virtual]

Definition at line 159 of file GuiBase.cxx.

Referenced by hide_it().

00160 {
00161     TGFrame* f = dynamic_cast<TGFrame*>(&child);
00162     TGCompositeFrame* cf = dynamic_cast<TGCompositeFrame*>(this);
00163 
00164     if (f && cf) cf->HideFrame(f);
00165 }

void GuiCompositeFrameBase::Remove ( GuiBase f  )  [virtual]

Definition at line 130 of file GuiBase.cxx.

References GuiBase::fChildren, find(), and it.

Referenced by EVD::Digittext(), EVD::MCtext(), EVD::MCTreetext(), EVD::Recotext(), and remove_it().

00131 {
00132     ChildrenList::iterator it = find(fChildren.begin(),fChildren.end(),&child);
00133     if (it == fChildren.end()) {
00134         cerr << "GuiCompositeFrameBase: can't remove child I don't have\n";
00135         return;
00136     }
00137 
00138     
00139     
00140     TGFrame* f = dynamic_cast<TGFrame*>(&child);
00141     TGCompositeFrame* cf = dynamic_cast<TGCompositeFrame*>(this);
00142 
00143     if (f && cf) {
00144         cf->HideFrame(f);
00145         cf->RemoveFrame(f);
00146         fChildren.erase(it);
00147     }
00148     else {
00149         cerr << "GuiCompositeFrameBase: failed to remove child\n";
00150     }
00151 }

void GuiCompositeFrameBase::Show ( GuiBase f  )  [virtual]

Definition at line 152 of file GuiBase.cxx.

Referenced by add_it(), TridPage::Init(), RegistryGui::SetPossiblesMenu(), and show_it().

00153 {
00154     TGFrame* f = dynamic_cast<TGFrame*>(&child);
00155     TGCompositeFrame* cf = dynamic_cast<TGCompositeFrame*>(this);
00156 
00157     if (f && cf) cf->ShowFrame(f);
00158 }


The documentation for this class was generated from the following files:

Generated on 14 Dec 2017 for loon by  doxygen 1.6.1