#include <GuiTab.h>
Inheritance diagram for GuiTab:

Public Member Functions | |
| GuiTab (TGWindow &parent) | |
| virtual | ~GuiTab () |
| GuiFrame * | Add (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 |
Midad
Contact: bv@bnl.gov
Created on: Mon Nov 12 14:17:39 2001
Definition at line 28 of file GuiTab.h.
|
|
Definition at line 7 of file GuiTab.cxx. References GuiBase::SetLayoutHints(). 00008 : TGTab(&parent,1,1)
00009 {
00010 this->SetLayoutHints(kLHintsExpandX|kLHintsExpandY);
00011 }
|
|
|
Definition at line 13 of file GuiTab.cxx. 00014 {
00015 }
|
|
|
Reimplemented from GuiCompositeFrameBase. Definition at line 53 of file GuiTab.h. 00053 {}; // don't use
|
|
|
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 fFrameVector. Referenced by add_canvas(), PageDisplay::AddPage(), TridPageDisplay::BuildGUI(), and PageDisplay::BuildGUI(). 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 }
|
|
|
Return the widget at tab index "id".
Definition at line 31 of file GuiTab.cxx. References GuiBase::ChildrenList, fFrameVector, and GuiCompositeFrameBase::GetChildrenList(). 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 }
|
|
|
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 }
|
|
|
|
|
|
Emitted when a tab is clicked. Arg is tab index.
Definition at line 43 of file GuiTab.h. Referenced by add_canvas(), TridPageDisplay::BuildGUI(), PageDisplay::BuildGUI(), and Selected(). |
1.3.9.1