#include <TGProgressBar.h>
Inheritance diagram for TGProgressBar:
Public Types | |
enum | EBarType |
enum | EFillType |
enum | |
enum | EBarType |
enum | EFillType |
enum | |
Public Member Functions | |
TGProgressBar (const TGWindow *p, UInt_t w, UInt_t h, Pixel_t back=GetWhitePixel(), Pixel_t barcolor=GetDefaultSelectedBackground(), GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t options=kDoubleBorder|kSunkenFrame) | |
virtual | ~TGProgressBar () |
Float_t | GetMin () const |
Float_t | GetMax () const |
Float_t | GetPosition () const |
EFillType | GetFillType () const |
EBarType | GetBarType () const |
Bool_t | GetShowPos () const |
TString | GetFormat () const |
const char * | GetValueFormat () const |
Bool_t | UsePercent () const |
Pixel_t | GetBarColor () const |
GContext_t | GetNormGC () const |
FontStruct_t | GetFontStruct () const |
void | SetPosition (Float_t pos) |
void | SetRange (Float_t min, Float_t max) |
void | Increment (Float_t inc) |
void | SetBarType (EBarType type) |
void | SetFillType (EFillType type) |
virtual void | Percent (Bool_t on) |
virtual void | ShowPos (Bool_t on) |
virtual void | Format (const char *format="%.2f") |
void | SetMin (Float_t min) |
void | SetMax (Float_t max) |
virtual void | SetBarColor (Pixel_t color) |
void | SetBarColor (const char *color="blue") |
virtual void | Reset () |
virtual void | SetForegroundColor (Pixel_t pixel) |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
TGProgressBar (const TGWindow *p, UInt_t w, UInt_t h, Pixel_t back=GetWhitePixel(), Pixel_t barcolor=GetDefaultSelectedBackground(), GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t options=kDoubleBorder|kSunkenFrame) | |
virtual | ~TGProgressBar () |
Float_t | GetMin () const |
Float_t | GetMax () const |
Float_t | GetPosition () const |
EFillType | GetFillType () const |
EBarType | GetBarType () const |
Bool_t | GetShowPos () const |
TString | GetFormat () const |
const char * | GetValueFormat () const |
Bool_t | UsePercent () const |
Pixel_t | GetBarColor () const |
GContext_t | GetNormGC () const |
FontStruct_t | GetFontStruct () const |
void | SetPosition (Float_t pos) |
void | SetRange (Float_t min, Float_t max) |
void | Increment (Float_t inc) |
void | SetBarType (EBarType type) |
void | SetFillType (EFillType type) |
virtual void | Percent (Bool_t on) |
virtual void | ShowPos (Bool_t on) |
virtual void | Format (const char *format="%.2f") |
void | SetMin (Float_t min) |
void | SetMax (Float_t max) |
virtual void | SetBarColor (Pixel_t color) |
void | SetBarColor (const char *color="blue") |
virtual void | Reset () |
virtual void | SetForegroundColor (Pixel_t pixel) |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
Static Public Member Functions | |
static FontStruct_t | GetDefaultFontStruct () |
static const TGGC & | GetDefaultGC () |
static FontStruct_t | GetDefaultFontStruct () |
static const TGGC & | GetDefaultGC () |
Protected Member Functions | |
virtual void | DoRedraw ()=0 |
virtual void | DoRedraw ()=0 |
Protected Attributes | |
Float_t | fMin |
Float_t | fMax |
Float_t | fPos |
Int_t | fPosPix |
Int_t | fBarWidth |
EFillType | fFillType |
EBarType | fBarType |
TString | fFormat |
Bool_t | fShowPos |
Bool_t | fPercent |
Bool_t | fDrawBar |
TGGC | fBarColorGC |
GContext_t | fNormGC |
FontStruct_t | fFontStruct |
Static Protected Attributes | |
static const TGFont * | fgDefaultFont |
static TGGC * | fgDefaultGC |
static const TGFont * | fgDefaultFont |
static TGGC * | fgDefaultGC |
Definition at line 33 of file TGProgressBar.h.
Definition at line 36 of file TGProgressBar.h.
Definition at line 37 of file TGProgressBar.h.
anonymous enum |
Definition at line 38 of file TGProgressBar.h.
Definition at line 36 of file TGProgressBar.h.
Definition at line 37 of file TGProgressBar.h.
anonymous enum |
Definition at line 38 of file TGProgressBar.h.
TGProgressBar::TGProgressBar | ( | const TGWindow * | p, | |
UInt_t | w, | |||
UInt_t | h, | |||
Pixel_t | back = GetWhitePixel() , |
|||
Pixel_t | barcolor = GetDefaultSelectedBackground() , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | options = kDoubleBorder|kSunkenFrame | |||
) |
virtual TGProgressBar::~TGProgressBar | ( | ) | [inline, virtual] |
Definition at line 72 of file TGProgressBar.h.
TGProgressBar::TGProgressBar | ( | const TGWindow * | p, | |
UInt_t | w, | |||
UInt_t | h, | |||
Pixel_t | back = GetWhitePixel() , |
|||
Pixel_t | barcolor = GetDefaultSelectedBackground() , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | options = kDoubleBorder|kSunkenFrame | |||
) |
virtual TGProgressBar::~TGProgressBar | ( | ) | [inline, virtual] |
Definition at line 72 of file TGProgressBar.h.
virtual void TGProgressBar::DoRedraw | ( | ) | [protected, pure virtual] |
FontStruct_t TGProgressBar::GetDefaultFontStruct | ( | ) | [static] |
Definition at line 185 of file TGProgressBar.cxx.
References fgDefaultFont, gClient, TGResourcePool::GetDefaultFont(), TGFont::GetFontStruct(), and TGClient::GetResourcePool().
Referenced by G__G__Gui1_265_0_2(), and G__setup_memfuncTGProgressBar().
const TGGC & TGProgressBar::GetDefaultGC | ( | ) | [static] |
Definition at line 195 of file TGProgressBar.cxx.
References fgDefaultGC, gClient, TGResourcePool::GetFrameGC(), and TGClient::GetResourcePool().
Referenced by G__G__Gui1_265_0_3(), and G__setup_memfuncTGProgressBar().
Float_t TGProgressBar::GetMin | ( | ) | const [inline] |
Float_t TGProgressBar::GetMax | ( | ) | const [inline] |
Float_t TGProgressBar::GetPosition | ( | ) | const [inline] |
EFillType TGProgressBar::GetFillType | ( | ) | const [inline] |
Definition at line 77 of file TGProgressBar.h.
References fFillType.
Referenced by TGHProgressBar::SavePrimitive(), and TGVProgressBar::SavePrimitive().
EBarType TGProgressBar::GetBarType | ( | ) | const [inline] |
Bool_t TGProgressBar::GetShowPos | ( | ) | const [inline] |
Definition at line 79 of file TGProgressBar.h.
References fShowPos.
Referenced by TGHProgressBar::SavePrimitive().
TString TGProgressBar::GetFormat | ( | ) | const [inline] |
Definition at line 80 of file TGProgressBar.h.
References fFormat.
Referenced by TGHProgressBar::SavePrimitive().
const char* TGProgressBar::GetValueFormat | ( | ) | const [inline] |
Bool_t TGProgressBar::UsePercent | ( | ) | const [inline] |
Definition at line 82 of file TGProgressBar.h.
References fPercent.
Referenced by TGHProgressBar::SavePrimitive().
Pixel_t TGProgressBar::GetBarColor | ( | ) | const [inline] |
Definition at line 83 of file TGProgressBar.h.
References fBarColorGC, and TGGC::GetForeground().
Referenced by TGuiBldDragManager::ChangeBarColor().
GContext_t TGProgressBar::GetNormGC | ( | ) | const [inline] |
Definition at line 84 of file TGProgressBar.h.
References fNormGC.
Referenced by TGuiBldDragManager::ChangeTextColor().
FontStruct_t TGProgressBar::GetFontStruct | ( | ) | const [inline] |
void TGProgressBar::SetPosition | ( | Float_t | pos | ) |
Definition at line 90 of file TGProgressBar.cxx.
References DoRedraw(), fDrawBar, fMax, fMin, fPos, and kTRUE.
Referenced by TTreeViewer::BuildInterface(), TTreeViewer::ExecuteDraw(), TTreeViewer::HandleTimer(), TSessionQueryFrame::Progress(), TProofProgressDialog::Progress(), TProofStartupDialog::Progress(), TSessionQueryFrame::ProgressLocal(), ProgressbarWindow::SetValues(), TSessionViewer::StartupMessage(), and TSessionQueryFrame::UpdateInfos().
Definition at line 64 of file TGProgressBar.cxx.
References DoRedraw(), TObject::Error(), fMax, fMin, fPos, kFALSE, and kTRUE.
void TGProgressBar::Increment | ( | Float_t | inc | ) |
Definition at line 108 of file TGProgressBar.cxx.
References DoRedraw(), fDrawBar, fMax, fPos, and kTRUE.
Referenced by TestProgress::DoGo(), and TestProgress::ProcessMessage().
void TGProgressBar::SetBarType | ( | EBarType | type | ) |
Definition at line 144 of file TGProgressBar.cxx.
References fBarType, TGObject::fClient, and TGClient::NeedRedraw().
void TGProgressBar::SetFillType | ( | EFillType | type | ) |
Definition at line 134 of file TGProgressBar.cxx.
References TGObject::fClient, fFillType, and TGClient::NeedRedraw().
Referenced by TTreeViewer::BuildInterface(), ProgressbarWindow::ProgressbarWindow(), and TestProgress::TestProgress().
virtual void TGProgressBar::Percent | ( | Bool_t | on | ) | [inline, virtual] |
Definition at line 92 of file TGProgressBar.h.
References TGObject::fClient, fPercent, and TGClient::NeedRedraw().
virtual void TGProgressBar::ShowPos | ( | Bool_t | on | ) | [inline, virtual] |
Definition at line 93 of file TGProgressBar.h.
References TGObject::fClient, fShowPos, and TGClient::NeedRedraw().
void TGProgressBar::Format | ( | const char * | format = "%.2f" |
) | [virtual] |
Definition at line 175 of file TGProgressBar.cxx.
References TGObject::fClient, fFormat, and TGClient::NeedRedraw().
void TGProgressBar::SetMin | ( | Float_t | min | ) | [inline] |
void TGProgressBar::SetMax | ( | Float_t | max | ) | [inline] |
virtual void TGProgressBar::SetBarColor | ( | Pixel_t | color | ) | [virtual] |
Referenced by TSessionViewer::Build(), TSessionQueryFrame::Build(), TTreeViewer::BuildInterface(), TestProgress::DoGo(), TProofProgressDialog::IndicateStop(), TSessionQueryFrame::IndicateStop(), TestProgress::ProcessMessage(), TProofProgressDialog::Progress(), ProgressbarWindow::ProgressbarWindow(), TSessionQueryFrame::ProgressLocal(), TSessionQueryFrame::ResetProgressDialog(), TProofProgressDialog::ResetProgressDialog(), ProgressbarWindow::SetValues(), TestProgress::TestProgress(), and TSessionQueryFrame::UpdateInfos().
void TGProgressBar::SetBarColor | ( | const char * | color = "blue" |
) |
Definition at line 164 of file TGProgressBar.cxx.
References fBarColorGC, TGObject::fClient, TGClient::GetColorByName(), TGClient::NeedRedraw(), and TGGC::SetForeground().
void TGProgressBar::Reset | ( | ) | [virtual] |
Definition at line 124 of file TGProgressBar.cxx.
References TGObject::fClient, fPos, and TGClient::NeedRedraw().
Referenced by TestProgress::DoGo(), TestProgress::ProcessMessage(), TSessionQueryFrame::Progress(), TSessionQueryFrame::ProgressLocal(), TSessionQueryFrame::ResetProgressDialog(), TProofProgressDialog::ResetProgressDialog(), ProgressbarWindow::SetValues(), and TSessionQueryFrame::UpdateInfos().
void TGProgressBar::SetForegroundColor | ( | Pixel_t | pixel | ) | [virtual] |
Reimplemented from TGFrame.
Definition at line 205 of file TGProgressBar.cxx.
References TGObject::fClient, TGGCPool::FindGC(), fNormGC, gClient, TGGC::GetGC(), TGResourcePool::GetGCPool(), TGClient::GetResourcePool(), TGClient::NeedRedraw(), and TGGC::SetForeground().
void TGProgressBar::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGFrame.
Definition at line 398 of file TGProgressBar.cxx.
References fBarColorGC, fBarType, fMax, fMin, fPos, TGFrame::GetBackground(), TGFrame::GetDefaultFrameBackground(), TGFrame::GetDefaultSelectedBackground(), TGGC::GetForeground(), TGWindow::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGFrame::GetWhitePixel(), kDoubleBorder, kFancy, kOwnBackground, kStandard, kSunkenFrame, TColor::PixelAsHexString(), and TGFrame::SaveUserColor().
Referenced by TGHProgressBar::SavePrimitive(), and TGVProgressBar::SavePrimitive().
virtual void TGProgressBar::DoRedraw | ( | ) | [protected, pure virtual] |
Reimplemented from TGFrame.
static FontStruct_t TGProgressBar::GetDefaultFontStruct | ( | ) | [static] |
static const TGGC& TGProgressBar::GetDefaultGC | ( | ) | [static] |
Float_t TGProgressBar::GetMin | ( | ) | const [inline] |
Float_t TGProgressBar::GetMax | ( | ) | const [inline] |
Float_t TGProgressBar::GetPosition | ( | ) | const [inline] |
EFillType TGProgressBar::GetFillType | ( | ) | const [inline] |
EBarType TGProgressBar::GetBarType | ( | ) | const [inline] |
Bool_t TGProgressBar::GetShowPos | ( | ) | const [inline] |
TString TGProgressBar::GetFormat | ( | ) | const [inline] |
const char* TGProgressBar::GetValueFormat | ( | ) | const [inline] |
Bool_t TGProgressBar::UsePercent | ( | ) | const [inline] |
Pixel_t TGProgressBar::GetBarColor | ( | ) | const [inline] |
GContext_t TGProgressBar::GetNormGC | ( | ) | const [inline] |
FontStruct_t TGProgressBar::GetFontStruct | ( | ) | const [inline] |
void TGProgressBar::SetPosition | ( | Float_t | pos | ) |
void TGProgressBar::Increment | ( | Float_t | inc | ) |
void TGProgressBar::SetBarType | ( | EBarType | type | ) |
void TGProgressBar::SetFillType | ( | EFillType | type | ) |
virtual void TGProgressBar::Percent | ( | Bool_t | on | ) | [inline, virtual] |
Definition at line 92 of file TGProgressBar.h.
References TGObject::fClient, fPercent, and TGClient::NeedRedraw().
virtual void TGProgressBar::ShowPos | ( | Bool_t | on | ) | [inline, virtual] |
Definition at line 93 of file TGProgressBar.h.
References TGObject::fClient, fShowPos, and TGClient::NeedRedraw().
virtual void TGProgressBar::Format | ( | const char * | format = "%.2f" |
) | [virtual] |
void TGProgressBar::SetMin | ( | Float_t | min | ) | [inline] |
void TGProgressBar::SetMax | ( | Float_t | max | ) | [inline] |
virtual void TGProgressBar::SetBarColor | ( | Pixel_t | color | ) | [virtual] |
void TGProgressBar::SetBarColor | ( | const char * | color = "blue" |
) |
virtual void TGProgressBar::Reset | ( | ) | [virtual] |
virtual void TGProgressBar::SetForegroundColor | ( | Pixel_t | pixel | ) | [virtual] |
Reimplemented from TGFrame.
virtual void TGProgressBar::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGFrame.
Float_t TGProgressBar::fMin [protected] |
Definition at line 42 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), GetMin(), SavePrimitive(), SetMin(), SetPosition(), and SetRange().
Float_t TGProgressBar::fMax [protected] |
Definition at line 43 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), GetMax(), Increment(), SavePrimitive(), SetMax(), SetPosition(), and SetRange().
Float_t TGProgressBar::fPos [protected] |
Definition at line 44 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), GetPosition(), Increment(), Reset(), SavePrimitive(), SetPosition(), and SetRange().
Int_t TGProgressBar::fPosPix [protected] |
Definition at line 45 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), and TGHProgressBar::DoRedraw().
Int_t TGProgressBar::fBarWidth [protected] |
Definition at line 46 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), TGVProgressBar::GetDefaultSize(), TGHProgressBar::GetDefaultSize(), TGHProgressBar::SavePrimitive(), TGVProgressBar::SavePrimitive(), TGHProgressBar::TGHProgressBar(), and TGVProgressBar::TGVProgressBar().
EFillType TGProgressBar::fFillType [protected] |
Definition at line 47 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), GetFillType(), and SetFillType().
EBarType TGProgressBar::fBarType [protected] |
Definition at line 48 of file TGProgressBar.h.
Referenced by GetBarType(), TGHProgressBar::SavePrimitive(), SavePrimitive(), TGVProgressBar::SavePrimitive(), SetBarType(), TGHProgressBar::TGHProgressBar(), and TGVProgressBar::TGVProgressBar().
TString TGProgressBar::fFormat [protected] |
Definition at line 49 of file TGProgressBar.h.
Referenced by TGHProgressBar::DoRedraw(), Format(), GetFormat(), GetValueFormat(), and TGHProgressBar::ShowPosition().
Bool_t TGProgressBar::fShowPos [protected] |
Definition at line 50 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), GetShowPos(), ShowPos(), and TGHProgressBar::ShowPosition().
Bool_t TGProgressBar::fPercent [protected] |
Definition at line 51 of file TGProgressBar.h.
Referenced by TGHProgressBar::DoRedraw(), Percent(), TGHProgressBar::ShowPosition(), and UsePercent().
Bool_t TGProgressBar::fDrawBar [protected] |
Definition at line 52 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), Increment(), SetPosition(), and TGVProgressBar::TGVProgressBar().
TGGC TGProgressBar::fBarColorGC [protected] |
Definition at line 53 of file TGProgressBar.h.
Referenced by TGVProgressBar::DoRedraw(), TGHProgressBar::DoRedraw(), GetBarColor(), SavePrimitive(), and SetBarColor().
GContext_t TGProgressBar::fNormGC [protected] |
Definition at line 54 of file TGProgressBar.h.
Referenced by TGHProgressBar::DoRedraw(), GetNormGC(), and SetForegroundColor().
FontStruct_t TGProgressBar::fFontStruct [protected] |
Definition at line 55 of file TGProgressBar.h.
Referenced by TGHProgressBar::DoRedraw(), and GetFontStruct().
const TGFont * TGProgressBar::fgDefaultFont [static, protected] |
TGGC * TGProgressBar::fgDefaultGC [static, protected] |
const TGFont* TGProgressBar::fgDefaultFont [static, protected] |
Definition at line 59 of file TGProgressBar.h.
TGGC* TGProgressBar::fgDefaultGC [static, protected] |
Definition at line 60 of file TGProgressBar.h.