GuiTab Class Reference

#include <GuiTab.h>

Inheritance diagram for GuiTab:
GuiCompositeFrameBase GuiBase

List of all members.

Public Member Functions

 GuiTab (TGWindow &parent)
virtual ~GuiTab ()
GuiFrameAdd (const char *tab_title)
GuiBase::ChildrenList GuisAt (int id)
 Return the widget at tab index "id".

Public Attributes

SigC::Signal1< void, int > selected
 Emitted when a tab is clicked. Arg is tab index.

Private Member Functions

void Selected (int id)
void Add (GuiBase &)

Private Attributes

std::vector< GuiFrame * > fFrameVector

Detailed Description

Id
GuiTab.h,v 1.5 2005/07/21 20:26:36 bv Exp

Definition at line 28 of file GuiTab.h.


Constructor & Destructor Documentation

GuiTab::GuiTab ( TGWindow &  parent  ) 

Definition at line 7 of file GuiTab.cxx.

References GuiBase::SetLayoutHints().

00008     : TGTab(&parent,1,1)
00009 {
00010     this->SetLayoutHints(kLHintsExpandX|kLHintsExpandY);
00011 }

GuiTab::~GuiTab (  )  [virtual]

Definition at line 13 of file GuiTab.cxx.

00014 {
00015 }


Member Function Documentation

void GuiTab::Add ( GuiBase  )  [inline, private, virtual]

Reimplemented from GuiCompositeFrameBase.

Definition at line 53 of file GuiTab.h.

00053 {}; // don't use

GuiFrame * GuiTab::Add ( const char *  tab_title  ) 

Returned GuiFrame is used like: GuiFrame* frame = gui_tab.Add("blah"); GuiBlah* blah = new GuiBlah(*frame->GetFrame(),...); frame->Add(*blah);

Definition at line 17 of file GuiTab.cxx.

References GuiBase::fChildren, and fFrameVector.

Referenced by add_canvas(), and PageDisplay::AddPage().

00018 {
00019     GuiFrame* frame = manage(new GuiFrame(this->TGTab::AddTab(tab_title)));
00020     fChildren.push_back(frame);
00021     fFrameVector.push_back(frame);
00022     return frame;
00023 }

GuiBase::ChildrenList GuiTab::GuisAt ( int  id  ) 

Return the widget at tab index "id".

Definition at line 31 of file GuiTab.cxx.

References fFrameVector.

Referenced by tab_chirp().

00032 {
00033     int siz = fFrameVector.size();
00034     if (id < 0 || id >= siz) {
00035         cerr << "GuiTab::GuisAt: id=" << id << " siz=" << siz << endl;
00036         return GuiBase::ChildrenList();
00037     }
00038 
00039     return fFrameVector[id]->GetChildrenList();
00040 }

void GuiTab::Selected ( int  id  )  [private]

Useful methods provided by TGTab: Int_t GetCurrent() const;

Definition at line 25 of file GuiTab.cxx.

References selected.

00026 {
00027     this->TGTab::Selected(id);
00028     this->selected.emit(id);
00029 }


Member Data Documentation

std::vector<GuiFrame*> GuiTab::fFrameVector [private]

Definition at line 53 of file GuiTab.h.

Referenced by Add(), and GuisAt().

SigC::Signal1<void,int> GuiTab::selected

Emitted when a tab is clicked. Arg is tab index.

Definition at line 43 of file GuiTab.h.

Referenced by add_canvas(), PageDisplay::BuildGUI(), TridPageDisplay::BuildGUI(), and Selected().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1