Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

wxBarHolder Class Reference

#include <barholder.h>

Collaboration diagram for wxBarHolder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wxBarHolder ()
 wxBarHolder (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("barholder"))
void Init ()
bool Create (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("barholder"))
virtual ~wxBarHolder ()
void AddWindow (wxWindow *pWindow, const wxString &label=wxT(""), unsigned int flags=wxBF_DEFAULT)
void SetSlideBar (wxSlideBar *pSlideBar)
void ShowGripper (bool state)
void SetHeightOverride (int override)
void SetWidthOverride (int override)
void SetFlags (unsigned int flags)
unsigned int GetFlags ()
wxString GetLabel ()
virtual wxSize DoGetBestSize () const
void UpdateSize ()
void OnErase (wxEraseEvent &event)
void OnPaint (wxPaintEvent &event)
void OnGripBegin (wxMouseEvent &event)
void OnGripEnd (wxMouseEvent &event)
void OnGripMotion (wxMouseEvent &event)

Private Member Functions

wxSize getNonClientSize () const
wxSize getClientBestSize (wxWindow *pClient) const

Private Attributes

wxSlideBarpSlideBar_
wxWindow * pOurBar_
wxGripWindowpGripWindow_
wxString label_
int margin_
int heightOverride_
int widthOverride_
bool showGripper_
unsigned int flags_
wxSize originalSize_
bool moving_

Constructor & Destructor Documentation

wxBarHolder::wxBarHolder  )  [inline]
 

Definition at line 38 of file barholder.h.

wxBarHolder::wxBarHolder wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("barholder")
[inline]
 

Definition at line 43 of file barholder.h.

References Create(), and Init().

wxBarHolder::~wxBarHolder  )  [virtual]
 

Definition at line 68 of file barholder.cpp.


Member Function Documentation

void wxBarHolder::AddWindow wxWindow *  pWindow,
const wxString &  label = wxT(""),
unsigned int  flags = wxBF_DEFAULT
 

Definition at line 71 of file barholder.cpp.

References flags_, getClientBestSize(), label_, originalSize_, pGripWindow_, pOurBar_, wxGripWindow::SetLabel(), and UpdateSize().

Referenced by wxSlideBar::AddWindow().

bool wxBarHolder::Create wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("barholder")
 

Definition at line 52 of file barholder.cpp.

References pGripWindow_, and wxFULL_REPAINT_ON_RESIZE.

Referenced by wxBarHolder().

wxSize wxBarHolder::DoGetBestSize  )  const [virtual]
 

Definition at line 101 of file barholder.cpp.

References getNonClientSize(), GRIP_SIZE, margin_, originalSize_, and showGripper_.

wxSize wxBarHolder::getClientBestSize wxWindow *  pClient  )  const [private]
 

Definition at line 271 of file barholder.cpp.

Referenced by AddWindow().

unsigned int wxBarHolder::GetFlags  ) 
 

Definition at line 178 of file barholder.cpp.

References flags_.

wxString wxBarHolder::GetLabel  ) 
 

Definition at line 182 of file barholder.cpp.

References label_.

Referenced by wxSlideBar::AddWindow(), wxSlideBar::createContextMenu(), wxSlideBar::LoadFromStream(), and wxSlideBar::SaveToStream().

wxSize wxBarHolder::getNonClientSize  )  const [private]
 

Definition at line 264 of file barholder.cpp.

Referenced by DoGetBestSize(), and UpdateSize().

void wxBarHolder::Init  ) 
 

Definition at line 40 of file barholder.cpp.

References wxBF_DEFAULT.

Referenced by wxBarHolder().

void wxBarHolder::OnErase wxEraseEvent &  event  ) 
 

Definition at line 186 of file barholder.cpp.

void wxBarHolder::OnGripBegin wxMouseEvent &  event  ) 
 

Definition at line 205 of file barholder.cpp.

References moving_, and pGripWindow_.

void wxBarHolder::OnGripEnd wxMouseEvent &  event  ) 
 

Definition at line 213 of file barholder.cpp.

References moving_, and pGripWindow_.

void wxBarHolder::OnGripMotion wxMouseEvent &  event  ) 
 

Definition at line 223 of file barholder.cpp.

References moving_, pGripWindow_, and pSlideBar_.

void wxBarHolder::OnPaint wxPaintEvent &  event  ) 
 

Definition at line 189 of file barholder.cpp.

References moving_, and pOurBar_.

void wxBarHolder::SetFlags unsigned int  flags  ) 
 

Definition at line 174 of file barholder.cpp.

References flags_.

void wxBarHolder::SetHeightOverride int  override  ) 
 

Definition at line 166 of file barholder.cpp.

References heightOverride_.

void wxBarHolder::SetSlideBar wxSlideBar pSlideBar  ) 
 

Definition at line 92 of file barholder.cpp.

References pSlideBar_.

Referenced by wxSlideBar::AddWindow().

void wxBarHolder::SetWidthOverride int  override  ) 
 

Definition at line 170 of file barholder.cpp.

References widthOverride_.

void wxBarHolder::ShowGripper bool  state  ) 
 

Definition at line 96 of file barholder.cpp.

References showGripper_, and UpdateSize().

Referenced by wxSlideBar::SetBarLock().

void wxBarHolder::UpdateSize  ) 
 

Definition at line 119 of file barholder.cpp.

References flags_, getNonClientSize(), GRIP_SIZE, heightOverride_, margin_, originalSize_, pGripWindow_, pOurBar_, showGripper_, widthOverride_, wxBF_EXPAND_X, and wxBF_EXPAND_Y.

Referenced by AddWindow(), and ShowGripper().


Member Data Documentation

unsigned int wxBarHolder::flags_ [private]
 

Definition at line 97 of file barholder.h.

Referenced by AddWindow(), GetFlags(), SetFlags(), and UpdateSize().

int wxBarHolder::heightOverride_ [private]
 

Definition at line 94 of file barholder.h.

Referenced by SetHeightOverride(), and UpdateSize().

wxString wxBarHolder::label_ [private]
 

Definition at line 91 of file barholder.h.

Referenced by AddWindow(), and GetLabel().

int wxBarHolder::margin_ [private]
 

Definition at line 93 of file barholder.h.

Referenced by DoGetBestSize(), and UpdateSize().

bool wxBarHolder::moving_ [private]
 

Definition at line 99 of file barholder.h.

Referenced by OnGripBegin(), OnGripEnd(), OnGripMotion(), and OnPaint().

wxSize wxBarHolder::originalSize_ [private]
 

Definition at line 98 of file barholder.h.

Referenced by AddWindow(), DoGetBestSize(), and UpdateSize().

wxGripWindow* wxBarHolder::pGripWindow_ [private]
 

Definition at line 90 of file barholder.h.

Referenced by AddWindow(), Create(), OnGripBegin(), OnGripEnd(), OnGripMotion(), and UpdateSize().

wxWindow* wxBarHolder::pOurBar_ [private]
 

Definition at line 89 of file barholder.h.

Referenced by AddWindow(), OnPaint(), and UpdateSize().

wxSlideBar* wxBarHolder::pSlideBar_ [private]
 

Definition at line 88 of file barholder.h.

Referenced by OnGripMotion(), and SetSlideBar().

bool wxBarHolder::showGripper_ [private]
 

Definition at line 96 of file barholder.h.

Referenced by DoGetBestSize(), ShowGripper(), and UpdateSize().

int wxBarHolder::widthOverride_ [private]
 

Definition at line 95 of file barholder.h.

Referenced by SetWidthOverride(), and UpdateSize().


The documentation for this class was generated from the following files:
Generated on Sat May 14 14:54:39 2005 for wxDockIt by  doxygen 1.4.2