TGMdiTitleBar Class Reference

#include <TGMdiDecorFrame.h>

Inheritance diagram for TGMdiTitleBar:

TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

virtual ~TGMdiTitleBar ()
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleDoubleClick (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
void SetTitleBarColors (UInt_t fore, UInt_t back, TGFont *f)
TGMdiButtonsGetButtons () const
TGMdiTitleIconGetWinIcon () const
TGLabelGetWinName () const
Int_t GetX0 ()
Int_t GetY0 ()
Bool_t IsLeftButPressed ()
Bool_t IsRightButPressed ()
Bool_t IsMidButPressed ()
void SetX0 (Int_t x0)
void SetY0 (Int_t y0)
void SetLeftButPressed (Bool_t press=kTRUE)
void SetRightButPressed (Bool_t press=kTRUE)
void SetMidButPressed (Bool_t press=kTRUE)
virtual ~TGMdiTitleBar ()
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleDoubleClick (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
void SetTitleBarColors (UInt_t fore, UInt_t back, TGFont *f)
TGMdiButtonsGetButtons () const
TGMdiTitleIconGetWinIcon () const
TGLabelGetWinName () const
Int_t GetX0 ()
Int_t GetY0 ()
Bool_t IsLeftButPressed ()
Bool_t IsRightButPressed ()
Bool_t IsMidButPressed ()
void SetX0 (Int_t x0)
void SetY0 (Int_t y0)
void SetLeftButPressed (Bool_t press=kTRUE)
void SetRightButPressed (Bool_t press=kTRUE)
void SetMidButPressed (Bool_t press=kTRUE)

Protected Member Functions

 TGMdiTitleBar (const TGWindow *p, const TGWindow *mdiwin, const char *name="Untitled")
void LayoutButtons (UInt_t buttonmask, Bool_t isMinimized, Bool_t isMaximized)
void AddFrames (TGMdiTitleIcon *icon, TGMdiButtons *buttons)
void RemoveFrames (TGMdiTitleIcon *icon, TGMdiButtons *buttons)
 TGMdiTitleBar (const TGWindow *p, const TGWindow *mdiwin, const char *name="Untitled")
void LayoutButtons (UInt_t buttonmask, Bool_t isMinimized, Bool_t isMaximized)
void AddFrames (TGMdiTitleIcon *icon, TGMdiButtons *buttons)
void RemoveFrames (TGMdiTitleIcon *icon, TGMdiButtons *buttons)

Protected Attributes

const TGWindowfMdiWin
TGMdiButtonsfButtons
TGMdiTitleIconfWinIcon
TGLabelfWinName
TGCompositeFramefLFrame
TGCompositeFramefMFrame
TGCompositeFramefRFrame
TGLayoutHintsfLHint
TGLayoutHintsfLeftHint
TGLayoutHintsfMiddleHint
TGLayoutHintsfRightHint
Int_t fX0
Int_t fY0
Bool_t fLeftButPressed
Bool_t fRightButPressed
Bool_t fMidButPressed
const TGWindowfMdiWin
TGMdiButtonsfButtons
TGMdiTitleIconfWinIcon
TGLabelfWinName
TGCompositeFramefLFrame
TGLayoutHintsfLHint

Friends

class TGMdiDecorFrame
class TGMdiMainFrame

Detailed Description

Definition at line 201 of file TGMdiDecorFrame.h.


Constructor & Destructor Documentation

TGMdiTitleBar::TGMdiTitleBar ( const TGWindow p,
const TGWindow mdiwin,
const char *  name = "Untitled" 
) [protected]

Definition at line 335 of file TGMdiDecorFrame.cxx.

References TGCompositeFrame::AddFrame(), TGFrame::AddInput(), fButtons, TGObject::fClient, TGWindow::fEditDisabled, fLeftButPressed, fLeftHint, fLFrame, fLHint, fMdiWin, fMFrame, fMidButPressed, fMiddleHint, fRFrame, fRightButPressed, fRightHint, fWinIcon, fWinName, TGClient::GetPicture(), kButtonMotionMask, kButtonPressMask, kButtonReleaseMask, kFALSE, kHorizontalFrame, kLHintsCenterY, kLHintsExpandX, kLHintsLeft, kLHintsNormal, kLHintsRight, kTextLeft, kTRUE, TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), TGLabel::SetTextJustify(), TGWindow::SetWindowName(), and TGCompositeFrame::TGCompositeFrame().

TGMdiTitleBar::~TGMdiTitleBar (  )  [virtual]

Definition at line 383 of file TGMdiDecorFrame.cxx.

References fLeftHint, fLHint, fMiddleHint, fRightHint, and TGCompositeFrame::MustCleanup().

TGMdiTitleBar::TGMdiTitleBar ( const TGWindow p,
const TGWindow mdiwin,
const char *  name = "Untitled" 
) [protected]

virtual TGMdiTitleBar::~TGMdiTitleBar (  )  [virtual]


Member Function Documentation

void TGMdiTitleBar::LayoutButtons ( UInt_t  buttonmask,
Bool_t  isMinimized,
Bool_t  isMaximized 
) [protected]

Definition at line 396 of file TGMdiDecorFrame.cxx.

References TGPopupMenu::DisableEntry(), TGPopupMenu::EnableEntry(), fButtons, fLFrame, fWinIcon, TGMdiButtons::GetButton(), TGMdiTitleIcon::GetPopup(), TGCompositeFrame::HideFrame(), kMdiClose, kMdiHelp, kMdiMaximize, kMdiMenu, kMdiMinimize, kMdiMove, kMdiRestore, kMdiSize, TGCompositeFrame::Layout(), and TGCompositeFrame::ShowFrame().

Referenced by TGMdiMainFrame::Maximize(), TGMdiMainFrame::Minimize(), TGMdiMainFrame::Restore(), and TGMdiDecorFrame::SetMdiButtons().

void TGMdiTitleBar::AddFrames ( TGMdiTitleIcon icon,
TGMdiButtons buttons 
) [protected]

Definition at line 582 of file TGMdiDecorFrame.cxx.

References TGCompositeFrame::AddFrame(), fLFrame, fLHint, fRFrame, TGFrame::ReparentWindow(), and TGCompositeFrame::ShowFrame().

Referenced by TGMdiMainFrame::Restore().

void TGMdiTitleBar::RemoveFrames ( TGMdiTitleIcon icon,
TGMdiButtons buttons 
) [protected]

Definition at line 596 of file TGMdiDecorFrame.cxx.

References fLFrame, fRFrame, and TGCompositeFrame::RemoveFrame().

Referenced by TGMdiMainFrame::Maximize().

Bool_t TGMdiTitleBar::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 493 of file TGMdiDecorFrame.cxx.

References TGPopupMenu::EndMenu(), Event_t::fCode, TGObject::fId, fLeftButPressed, fMdiWin, fMidButPressed, TGWindow::fParent, fRightButPressed, Event_t::fType, Event_t::fX, fX0, Event_t::fY, fY0, TGCompositeFrame::GetFrameFromPoint(), TGObject::GetId(), TGMdiTitleIcon::GetPopup(), GetWinIcon(), gVirtualX, kButton1, kButton2, kButton3, kButtonPress, kC_MDI, kFALSE, kMDI_CURRENT, kMove, kPointer, kTRUE, MK_MSG(), TGFrame::SendMessage(), and TGCompositeFrame::TranslateCoordinates().

Bool_t TGMdiTitleBar::HandleDoubleClick ( Event_t event  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 482 of file TGMdiDecorFrame.cxx.

References Event_t::fCode, fMdiWin, TGWindow::fParent, Event_t::fType, TGObject::GetId(), kButton1, kButtonPress, kC_MDI, kMDI_MAXIMIZE, kTRUE, MK_MSG(), and TGFrame::SendMessage().

Bool_t TGMdiTitleBar::HandleMotion ( Event_t event  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 566 of file TGMdiDecorFrame.cxx.

References TGObject::fId, fLeftButPressed, TGWindow::fParent, Event_t::fWindow, Event_t::fX, fX0, Event_t::fY, fY0, kTRUE, x, and y.

Bool_t TGMdiTitleBar::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 547 of file TGMdiDecorFrame.cxx.

References fMdiWin, TGWindow::fParent, GET_MSG(), GET_SUBMSG(), TGObject::GetId(), kC_COMMAND, kC_MDI, kCM_BUTTON, kCM_MENU, kTRUE, MK_MSG(), and TGFrame::SendMessage().

void TGMdiTitleBar::SetTitleBarColors ( UInt_t  fore,
UInt_t  back,
TGFont f 
)

Definition at line 459 of file TGMdiDecorFrame.cxx.

References TGMdiTitleIcon::DoRedraw(), fButtons, TGObject::fClient, fMFrame, fWinIcon, fWinName, TGClient::GetFont(), TNamed::GetName(), kFALSE, TGCompositeFrame::Layout(), TGClient::NeedRedraw(), TGFrame::SetBackgroundColor(), TGLabel::SetTextColor(), and TGLabel::SetTextFont().

Referenced by TGMdiMainFrame::CirculateDown(), TGMdiMainFrame::CirculateUp(), TGMdiMainFrame::Restore(), and TGMdiMainFrame::SetCurrent().

TGMdiButtons* TGMdiTitleBar::GetButtons (  )  const [inline]

Definition at line 233 of file TGMdiDecorFrame.h.

References fButtons.

Referenced by TGMdiMainFrame::CirculateDown(), TGMdiMainFrame::CirculateUp(), TGMdiMainFrame::Maximize(), TGMdiMainFrame::Restore(), and TGMdiMainFrame::SetCurrent().

TGMdiTitleIcon* TGMdiTitleBar::GetWinIcon (  )  const [inline]

Definition at line 234 of file TGMdiDecorFrame.h.

References fWinIcon.

Referenced by TGMdiMainFrame::CirculateDown(), TGMdiMainFrame::CirculateUp(), TGMdiDecorFrame::GetWindowIcon(), HandleButton(), TGMdiDecorFrame::HandleButton(), TGMdiMainFrame::Maximize(), TGMdiMainFrame::Restore(), TGMdiMainFrame::SetCurrent(), and TGMdiDecorFrame::SetWindowIcon().

TGLabel* TGMdiTitleBar::GetWinName (  )  const [inline]

Definition at line 235 of file TGMdiDecorFrame.h.

References fWinName.

Referenced by TGMdiDecorFrame::GetWindowName(), and TGMdiDecorFrame::SetWindowName().

Int_t TGMdiTitleBar::GetX0 (  )  [inline]

Definition at line 236 of file TGMdiDecorFrame.h.

References fX0.

Int_t TGMdiTitleBar::GetY0 (  )  [inline]

Definition at line 237 of file TGMdiDecorFrame.h.

References fY0.

Bool_t TGMdiTitleBar::IsLeftButPressed (  )  [inline]

Definition at line 238 of file TGMdiDecorFrame.h.

References fLeftButPressed.

Bool_t TGMdiTitleBar::IsRightButPressed (  )  [inline]

Definition at line 239 of file TGMdiDecorFrame.h.

References fRightButPressed.

Bool_t TGMdiTitleBar::IsMidButPressed (  )  [inline]

Definition at line 240 of file TGMdiDecorFrame.h.

References fMidButPressed.

void TGMdiTitleBar::SetX0 ( Int_t  x0  )  [inline]

Definition at line 242 of file TGMdiDecorFrame.h.

References fX0.

Referenced by TGMdiMainFrame::FreeMove().

void TGMdiTitleBar::SetY0 ( Int_t  y0  )  [inline]

Definition at line 243 of file TGMdiDecorFrame.h.

References fY0.

Referenced by TGMdiMainFrame::FreeMove().

void TGMdiTitleBar::SetLeftButPressed ( Bool_t  press = kTRUE  )  [inline]

Definition at line 244 of file TGMdiDecorFrame.h.

References fLeftButPressed.

Referenced by TGMdiMainFrame::FreeMove().

void TGMdiTitleBar::SetRightButPressed ( Bool_t  press = kTRUE  )  [inline]

Definition at line 245 of file TGMdiDecorFrame.h.

References fRightButPressed.

void TGMdiTitleBar::SetMidButPressed ( Bool_t  press = kTRUE  )  [inline]

Definition at line 246 of file TGMdiDecorFrame.h.

References fMidButPressed.

void TGMdiTitleBar::LayoutButtons ( UInt_t  buttonmask,
Bool_t  isMinimized,
Bool_t  isMaximized 
) [protected]

void TGMdiTitleBar::AddFrames ( TGMdiTitleIcon icon,
TGMdiButtons buttons 
) [protected]

void TGMdiTitleBar::RemoveFrames ( TGMdiTitleIcon icon,
TGMdiButtons buttons 
) [protected]

virtual Bool_t TGMdiTitleBar::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual Bool_t TGMdiTitleBar::HandleDoubleClick ( Event_t event  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual Bool_t TGMdiTitleBar::HandleMotion ( Event_t event  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual Bool_t TGMdiTitleBar::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.

void TGMdiTitleBar::SetTitleBarColors ( UInt_t  fore,
UInt_t  back,
TGFont f 
)

TGMdiButtons* TGMdiTitleBar::GetButtons (  )  const [inline]

Definition at line 233 of file TGMdiDecorFrame.h.

References fButtons.

TGMdiTitleIcon* TGMdiTitleBar::GetWinIcon (  )  const [inline]

Definition at line 234 of file TGMdiDecorFrame.h.

References fWinIcon.

TGLabel* TGMdiTitleBar::GetWinName (  )  const [inline]

Definition at line 235 of file TGMdiDecorFrame.h.

References fWinName.

Int_t TGMdiTitleBar::GetX0 (  )  [inline]

Definition at line 236 of file TGMdiDecorFrame.h.

References fX0.

Int_t TGMdiTitleBar::GetY0 (  )  [inline]

Definition at line 237 of file TGMdiDecorFrame.h.

References fY0.

Bool_t TGMdiTitleBar::IsLeftButPressed (  )  [inline]

Definition at line 238 of file TGMdiDecorFrame.h.

References fLeftButPressed.

Bool_t TGMdiTitleBar::IsRightButPressed (  )  [inline]

Definition at line 239 of file TGMdiDecorFrame.h.

References fRightButPressed.

Bool_t TGMdiTitleBar::IsMidButPressed (  )  [inline]

Definition at line 240 of file TGMdiDecorFrame.h.

References fMidButPressed.

void TGMdiTitleBar::SetX0 ( Int_t  x0  )  [inline]

Definition at line 242 of file TGMdiDecorFrame.h.

References fX0.

void TGMdiTitleBar::SetY0 ( Int_t  y0  )  [inline]

Definition at line 243 of file TGMdiDecorFrame.h.

References fY0.

void TGMdiTitleBar::SetLeftButPressed ( Bool_t  press = kTRUE  )  [inline]

Definition at line 244 of file TGMdiDecorFrame.h.

References fLeftButPressed.

void TGMdiTitleBar::SetRightButPressed ( Bool_t  press = kTRUE  )  [inline]

Definition at line 245 of file TGMdiDecorFrame.h.

References fRightButPressed.

void TGMdiTitleBar::SetMidButPressed ( Bool_t  press = kTRUE  )  [inline]

Definition at line 246 of file TGMdiDecorFrame.h.

References fMidButPressed.


Friends And Related Function Documentation

TGMdiDecorFrame [friend]

Definition at line 203 of file TGMdiDecorFrame.h.

TGMdiMainFrame [friend]

Definition at line 204 of file TGMdiDecorFrame.h.


Member Data Documentation

const TGWindow* TGMdiTitleBar::fMdiWin [protected]

Definition at line 207 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), HandleDoubleClick(), ProcessMessage(), and TGMdiTitleBar().

TGMdiButtons* TGMdiTitleBar::fButtons [protected]

Definition at line 208 of file TGMdiDecorFrame.h.

Referenced by GetButtons(), LayoutButtons(), SetTitleBarColors(), and TGMdiTitleBar().

TGMdiTitleIcon* TGMdiTitleBar::fWinIcon [protected]

Definition at line 209 of file TGMdiDecorFrame.h.

Referenced by GetWinIcon(), LayoutButtons(), SetTitleBarColors(), and TGMdiTitleBar().

TGLabel* TGMdiTitleBar::fWinName [protected]

Definition at line 210 of file TGMdiDecorFrame.h.

Referenced by GetWinName(), SetTitleBarColors(), and TGMdiTitleBar().

TGCompositeFrame* TGMdiTitleBar::fLFrame [protected]

Definition at line 211 of file TGMdiDecorFrame.h.

Referenced by AddFrames(), LayoutButtons(), RemoveFrames(), and TGMdiTitleBar().

TGCompositeFrame * TGMdiTitleBar::fMFrame [protected]

Definition at line 211 of file TGMdiDecorFrame.h.

Referenced by SetTitleBarColors(), and TGMdiTitleBar().

TGCompositeFrame * TGMdiTitleBar::fRFrame [protected]

Definition at line 211 of file TGMdiDecorFrame.h.

Referenced by AddFrames(), RemoveFrames(), and TGMdiTitleBar().

TGLayoutHints* TGMdiTitleBar::fLHint [protected]

Definition at line 212 of file TGMdiDecorFrame.h.

Referenced by AddFrames(), TGMdiTitleBar(), and ~TGMdiTitleBar().

TGLayoutHints * TGMdiTitleBar::fLeftHint [protected]

Definition at line 212 of file TGMdiDecorFrame.h.

Referenced by TGMdiTitleBar(), and ~TGMdiTitleBar().

TGLayoutHints * TGMdiTitleBar::fMiddleHint [protected]

Definition at line 212 of file TGMdiDecorFrame.h.

Referenced by TGMdiTitleBar(), and ~TGMdiTitleBar().

TGLayoutHints * TGMdiTitleBar::fRightHint [protected]

Definition at line 212 of file TGMdiDecorFrame.h.

Referenced by TGMdiTitleBar(), and ~TGMdiTitleBar().

Int_t TGMdiTitleBar::fX0 [protected]

Definition at line 213 of file TGMdiDecorFrame.h.

Referenced by GetX0(), HandleButton(), HandleMotion(), and SetX0().

Int_t TGMdiTitleBar::fY0 [protected]

Definition at line 213 of file TGMdiDecorFrame.h.

Referenced by GetY0(), HandleButton(), HandleMotion(), and SetY0().

Bool_t TGMdiTitleBar::fLeftButPressed [protected]

Definition at line 214 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), HandleMotion(), IsLeftButPressed(), SetLeftButPressed(), and TGMdiTitleBar().

Bool_t TGMdiTitleBar::fRightButPressed [protected]

Definition at line 214 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), IsRightButPressed(), SetRightButPressed(), and TGMdiTitleBar().

Bool_t TGMdiTitleBar::fMidButPressed [protected]

Definition at line 214 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), IsMidButPressed(), SetMidButPressed(), and TGMdiTitleBar().

const TGWindow* TGMdiTitleBar::fMdiWin [protected]

Definition at line 207 of file TGMdiDecorFrame.h.

TGMdiButtons* TGMdiTitleBar::fButtons [protected]

Definition at line 208 of file TGMdiDecorFrame.h.

TGMdiTitleIcon* TGMdiTitleBar::fWinIcon [protected]

Definition at line 209 of file TGMdiDecorFrame.h.

TGLabel* TGMdiTitleBar::fWinName [protected]

Definition at line 210 of file TGMdiDecorFrame.h.

TGCompositeFrame* TGMdiTitleBar::fLFrame [protected]

Definition at line 211 of file TGMdiDecorFrame.h.

TGLayoutHints* TGMdiTitleBar::fLHint [protected]

Definition at line 212 of file TGMdiDecorFrame.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:21 2011 for ROOT_528-00b_version by  doxygen 1.5.1