#include <TGToolBar.h>
Inheritance diagram for TGToolBar:
Public Member Functions | |
TGToolBar (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kHorizontalFrame, Pixel_t back=GetDefaultFrameBackground()) | |
virtual | ~TGToolBar () |
virtual TGButton * | AddButton (const TGWindow *w, ToolBarData_t *button, Int_t spacing=0) |
virtual TGButton * | AddButton (const TGWindow *w, TGPictureButton *button, Int_t spacing=0) |
virtual void | ChangeIcon (ToolBarData_t *button, const char *new_icon) |
virtual void | Cleanup () |
virtual TGButton * | GetButton (Int_t id) const |
virtual Long_t | GetId (TGButton *button) const |
virtual void | SetId (TGButton *button, Long_t id) |
virtual void | ButtonPressed () |
virtual void | ButtonReleased () |
virtual void | ButtonClicked () |
virtual void | Pressed (Int_t id) |
virtual void | Released (Int_t id) |
virtual void | Clicked (Int_t id) |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
TGToolBar (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kHorizontalFrame, Pixel_t back=GetDefaultFrameBackground()) | |
virtual | ~TGToolBar () |
virtual TGButton * | AddButton (const TGWindow *w, ToolBarData_t *button, Int_t spacing=0) |
virtual TGButton * | AddButton (const TGWindow *w, TGPictureButton *button, Int_t spacing=0) |
virtual void | ChangeIcon (ToolBarData_t *button, const char *new_icon) |
virtual void | Cleanup () |
virtual TGButton * | GetButton (Int_t id) const |
virtual Long_t | GetId (TGButton *button) const |
virtual void | SetId (TGButton *button, Long_t id) |
virtual void | ButtonPressed () |
virtual void | ButtonReleased () |
virtual void | ButtonClicked () |
virtual void | Pressed (Int_t id) |
virtual void | Released (Int_t id) |
virtual void | Clicked (Int_t id) |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
Protected Attributes | |
TList * | fPictures |
TList * | fTrash |
TMap * | fMapOfButtons |
TList * | fPictures |
TList * | fTrash |
TMap * | fMapOfButtons |
Private Member Functions | |
TGToolBar (const TGToolBar &) | |
TGToolBar & | operator= (const TGToolBar &) |
TGToolBar (const TGToolBar &) | |
TGToolBar & | operator= (const TGToolBar &) |
Definition at line 44 of file TGToolBar.h.
TGToolBar::TGToolBar | ( | const TGToolBar & | ) | [private] |
TGToolBar::TGToolBar | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 1 , |
|||
UInt_t | h = 1 , |
|||
UInt_t | options = kHorizontalFrame , |
|||
Pixel_t | back = GetDefaultFrameBackground() | |||
) |
TGToolBar::~TGToolBar | ( | ) | [virtual] |
Definition at line 61 of file TGToolBar.cxx.
References TList::Clear(), TGObject::fClient, fMapOfButtons, fPictures, TGClient::FreePicture(), fTrash, TGCompositeFrame::MustCleanup(), and p.
TGToolBar::TGToolBar | ( | const TGToolBar & | ) | [private] |
TGToolBar::TGToolBar | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 1 , |
|||
UInt_t | h = 1 , |
|||
UInt_t | options = kHorizontalFrame , |
|||
Pixel_t | back = GetDefaultFrameBackground() | |||
) |
virtual TGToolBar::~TGToolBar | ( | ) | [virtual] |
TGButton * TGToolBar::AddButton | ( | const TGWindow * | w, | |
ToolBarData_t * | button, | |||
Int_t | spacing = 0 | |||
) | [virtual] |
Definition at line 85 of file TGToolBar.cxx.
References TMap::Add(), TList::Add(), TGCompositeFrame::AddFrame(), TGButton::AllowStayDown(), TGWidget::Associate(), TQObject::Connect(), TObject::Error(), ToolBarData_t::fButton, TGObject::fClient, ToolBarData_t::fId, fMapOfButtons, fPictures, ToolBarData_t::fPixmap, ToolBarData_t::fStayDown, ToolBarData_t::fTipText, fTrash, TGClient::GetPicture(), kLHintsLeft, kLHintsTop, TGButton::SetToolTipText(), and w.
Referenced by TGTextEditor::Build(), TSessionViewer::Build(), TGRootIDE::Build(), TRootBrowserLite::CreateBrowser(), RootShower::RootShower(), TRootCanvas::ShowToolBar(), and TRootGuiBuilder::TRootGuiBuilder().
TGButton * TGToolBar::AddButton | ( | const TGWindow * | w, | |
TGPictureButton * | button, | |||
Int_t | spacing = 0 | |||
) | [virtual] |
Definition at line 124 of file TGToolBar.cxx.
References TMap::Add(), TList::Add(), TGCompositeFrame::AddFrame(), TGWidget::Associate(), TQObject::Connect(), fMapOfButtons, fPictures, fTrash, TGPictureButton::GetPicture(), kLHintsLeft, kLHintsTop, w, and TGWidget::WidgetId().
void TGToolBar::ChangeIcon | ( | ToolBarData_t * | button, | |
const char * | new_icon | |||
) | [virtual] |
Definition at line 190 of file TGToolBar.cxx.
References TList::Add(), TObject::Error(), ToolBarData_t::fButton, TGObject::fClient, fPictures, and TGClient::GetPicture().
void TGToolBar::Cleanup | ( | ) | [virtual] |
Reimplemented from TGCompositeFrame.
Definition at line 205 of file TGToolBar.cxx.
References TGCompositeFrame::Cleanup(), and fTrash.
Referenced by TRootBrowserLite::~TRootBrowserLite(), and TRootCanvas::~TRootCanvas().
Definition at line 150 of file TGToolBar.cxx.
References fMapOfButtons, and TMap::GetValue().
Referenced by TRootBrowserLite::AddToHistory(), TRootBrowserLite::BrowseTextFile(), TSessionViewer::Build(), TRootBrowserLite::ClearHistory(), TRootGuiBuilder::CloseWindow(), TRootBrowserLite::DisplayDirectory(), TRootGuiBuilder::EnableEditButtons(), TRootGuiBuilder::EnableLassoButtons(), TRootGuiBuilder::EnableSelectedButtons(), TGTextEditor::HandleTimer(), TGRootIDE::HandleTimer(), TRootBrowserLite::HideTextEdit(), TRootBrowserLite::HistoryBackward(), TRootBrowserLite::HistoryForward(), TRootGuiBuilder::IsGrabButtonDown(), TRootGuiBuilder::IsSelectMode(), TSessionViewer::OnListTreeClicked(), RootShower::OnOpenFile(), TRootGuiBuilder::OpenProject(), TGRootIDE::ProcessMessage(), TGTextEditor::ProcessMessage(), RootShower::Produce(), RootShower::RootShower(), TRootGuiBuilder::SaveProject(), TRootBrowserLite::ShowMacroButtons(), TGTextEditor::TGTextEditor(), and TSessionViewer::UpdateListOfProofs().
Definition at line 166 of file TGToolBar.cxx.
References a, TMap::FindObject(), and fMapOfButtons.
Referenced by TRootGuiBuilder::SwitchToolbarButton().
void TGToolBar::ButtonPressed | ( | ) | [virtual] |
Definition at line 220 of file TGToolBar.cxx.
References a, TMap::FindObject(), fMapOfButtons, gTQSender, and Pressed().
void TGToolBar::ButtonReleased | ( | ) | [virtual] |
Definition at line 235 of file TGToolBar.cxx.
References a, TMap::FindObject(), fMapOfButtons, gTQSender, and Released().
void TGToolBar::ButtonClicked | ( | ) | [virtual] |
Definition at line 250 of file TGToolBar.cxx.
References a, Clicked(), TMap::FindObject(), fMapOfButtons, and gTQSender.
virtual void TGToolBar::Pressed | ( | Int_t | id | ) | [inline, virtual] |
Definition at line 74 of file TGToolBar.h.
References TQObject::Emit().
Referenced by ButtonPressed().
virtual void TGToolBar::Released | ( | Int_t | id | ) | [inline, virtual] |
Definition at line 75 of file TGToolBar.h.
References TQObject::Emit().
Referenced by ButtonReleased().
virtual void TGToolBar::Clicked | ( | Int_t | id | ) | [inline, virtual] |
Definition at line 76 of file TGToolBar.h.
References TQObject::Emit().
Referenced by ButtonClicked().
void TGToolBar::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGCompositeFrame.
Definition at line 265 of file TGToolBar.cxx.
References xmlio::Class, TROOT::ClassSaved(), TSystem::ExpandPathName(), TGFrame::fBackground, TGWindow::fParent, TGFrame::GetDefaultFrameBackground(), TGFrame::GetHeight(), TGCompositeFrame::GetList(), TGWindow::GetName(), TGPicture::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGWindow::GetParent(), TGPictureButton::GetPicture(), TGButton::GetState(), TGString::GetString(), TGToolTip::GetText(), TGButton::GetToolTip(), TGFrame::GetWidth(), gROOT, gSystem, i, kButtonDisabled, kButtonDown, kButtonEngaged, TGFrame::SaveUserColor(), and TSystem::UnixPathName().
virtual TGButton* TGToolBar::AddButton | ( | const TGWindow * | w, | |
ToolBarData_t * | button, | |||
Int_t | spacing = 0 | |||
) | [virtual] |
virtual TGButton* TGToolBar::AddButton | ( | const TGWindow * | w, | |
TGPictureButton * | button, | |||
Int_t | spacing = 0 | |||
) | [virtual] |
virtual void TGToolBar::ChangeIcon | ( | ToolBarData_t * | button, | |
const char * | new_icon | |||
) | [virtual] |
virtual void TGToolBar::Cleanup | ( | ) | [virtual] |
Reimplemented from TGCompositeFrame.
virtual void TGToolBar::ButtonPressed | ( | ) | [virtual] |
virtual void TGToolBar::ButtonReleased | ( | ) | [virtual] |
virtual void TGToolBar::ButtonClicked | ( | ) | [virtual] |
virtual void TGToolBar::Pressed | ( | Int_t | id | ) | [inline, virtual] |
virtual void TGToolBar::Released | ( | Int_t | id | ) | [inline, virtual] |
virtual void TGToolBar::Clicked | ( | Int_t | id | ) | [inline, virtual] |
virtual void TGToolBar::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGCompositeFrame.
TList* TGToolBar::fPictures [protected] |
Definition at line 47 of file TGToolBar.h.
Referenced by AddButton(), ChangeIcon(), and ~TGToolBar().
TList* TGToolBar::fTrash [protected] |
TMap* TGToolBar::fMapOfButtons [protected] |
Definition at line 49 of file TGToolBar.h.
Referenced by AddButton(), ButtonClicked(), ButtonPressed(), ButtonReleased(), GetButton(), GetId(), SetId(), and ~TGToolBar().
TList* TGToolBar::fPictures [protected] |
Definition at line 47 of file TGToolBar.h.
TList* TGToolBar::fTrash [protected] |
Definition at line 48 of file TGToolBar.h.
TMap* TGToolBar::fMapOfButtons [protected] |
Definition at line 49 of file TGToolBar.h.