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

wxSlideBar Class Reference

#include <slidebar.h>

List of all members.

Public Member Functions

 wxSlideBar ()
 wxSlideBar (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("slidebar"))
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("slidebar"))
virtual ~wxSlideBar ()
wxBarHolderAddWindow (wxWindow *pWindow, const wxString &label=wxT(""), unsigned int flags=wxBF_DEFAULT)
void UpdateLayout ()
void SetMode (wxSlideBarMode mode)
wxSlideBarMode GetMode ()
void SetBarLock (bool enable)
bool GetBarLock ()
void OnQueryLayoutInfo (wxQueryLayoutInfoEvent &event)
void OnCalculateLayout (wxCalculateLayoutEvent &event)
void OnSize (wxSizeEvent &event)
void OnContextMenu (wxContextMenuEvent &event)
void OnLockBars (wxCommandEvent &event)
void OnContextItem (wxCommandEvent &event)
virtual void DoGetSize (int *x, int *y) const
virtual wxSize DoGetBestSize () const
bool SaveToStream (wxOutputStream &stream)
bool LoadFromStream (wxInputStream &stream)
bool SaveToXML (const wxString &filename)
bool LoadFromXML (const wxString &filename)
wxBarHolderGetBarHolderAt (wxPoint pt)
wxBarHolderGetBarHolderAt (BarPlacementArray &barPlacementArray, wxPoint pt)
void SwapBarHolders (wxBarHolder *p1, wxBarHolder *p2)
BarPlacementArray & CalcBarPlacement (int width, int *pAreaHeight=NULL)

Private Member Functions

void applyBarPlacement (BarPlacementArray &bpl)
void createContextMenu ()
void deleteContextMenu ()
void refreshBars ()

Private Attributes

BarPlacementArray barPlacementArray_
int areaHeight_
int areaWidth_
wxSlideBarMode mode_
BarHolderList barList_
bool barLock_
wxMenu * pContextMenu_
int contextIdStart_
int contextIdEnd_


Constructor & Destructor Documentation

wxSlideBar::wxSlideBar  )  [inline]
 

Definition at line 43 of file slidebar.h.

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

Definition at line 49 of file slidebar.h.

wxSlideBar::~wxSlideBar  )  [virtual]
 

Definition at line 78 of file slidebar.cpp.

References pContextMenu_.


Member Function Documentation

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

Definition at line 143 of file slidebar.cpp.

References wxBarHolder::AddWindow(), barList_, wxBarHolder::GetLabel(), wxBarHolder::SetSlideBar(), and UpdateLayout().

void wxSlideBar::applyBarPlacement BarPlacementArray &  bpl  )  [private]
 

Definition at line 456 of file slidebar.cpp.

References wxBarPlacement::pBarHolder, and wxBarPlacement::placement.

Referenced by OnCalculateLayout().

BarPlacementArray & wxSlideBar::CalcBarPlacement int  width,
int *  pAreaHeight = NULL
 

Definition at line 273 of file slidebar.cpp.

References barList_, barPlacementArray_, MINIMUM_HEIGHT, mode_, wxBarPlacement::pBarHolder, wxBarPlacement::placement, and wxSLIDE_MODE_SIMPLE.

Referenced by OnCalculateLayout().

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

Definition at line 67 of file slidebar.cpp.

void wxSlideBar::createContextMenu  )  [private]
 

Definition at line 470 of file slidebar.cpp.

References barList_, barLock_, contextIdEnd_, contextIdStart_, wxBarHolder::GetLabel(), IDM_ITEMS, IDM_LOCK_BARS, OnContextItem(), and pContextMenu_.

Referenced by OnContextMenu().

void wxSlideBar::deleteContextMenu  )  [private]
 

Definition at line 510 of file slidebar.cpp.

References contextIdEnd_, contextIdStart_, and pContextMenu_.

Referenced by OnContextMenu().

wxSize wxSlideBar::DoGetBestSize  )  const [virtual]
 

Definition at line 177 of file slidebar.cpp.

void wxSlideBar::DoGetSize int *  x,
int *  y
const [virtual]
 

Definition at line 172 of file slidebar.cpp.

References areaHeight_, and areaWidth_.

wxBarHolder * wxSlideBar::GetBarHolderAt BarPlacementArray &  barPlacementArray,
wxPoint  pt
 

Definition at line 227 of file slidebar.cpp.

References wxBarPlacement::pBarHolder, and wxBarPlacement::placement.

wxBarHolder * wxSlideBar::GetBarHolderAt wxPoint  pt  ) 
 

Definition at line 243 of file slidebar.cpp.

References barList_.

bool wxSlideBar::GetBarLock  ) 
 

Definition at line 139 of file slidebar.cpp.

References barLock_.

Referenced by OnLockBars().

wxSlideBarMode wxSlideBar::GetMode  ) 
 

Definition at line 120 of file slidebar.cpp.

References mode_.

void wxSlideBar::Init  ) 
 

Definition at line 58 of file slidebar.cpp.

References wxSLIDE_MODE_SIMPLE.

bool wxSlideBar::LoadFromStream wxInputStream &  stream  ) 
 

Definition at line 391 of file slidebar.cpp.

References barList_, wxBarHolder::GetLabel(), mode_, wxUtil::ReadString(), SetBarLock(), STREAM_VERSION, and UpdateLayout().

bool wxSlideBar::LoadFromXML const wxString &  filename  ) 
 

Definition at line 450 of file slidebar.cpp.

void wxSlideBar::OnCalculateLayout wxCalculateLayoutEvent &  event  ) 
 

Definition at line 90 of file slidebar.cpp.

References applyBarPlacement(), and CalcBarPlacement().

void wxSlideBar::OnContextItem wxCommandEvent &  event  ) 
 

Definition at line 212 of file slidebar.cpp.

References barList_, IDM_ITEMS, and UpdateLayout().

Referenced by createContextMenu().

void wxSlideBar::OnContextMenu wxContextMenuEvent &  event  ) 
 

Definition at line 198 of file slidebar.cpp.

References createContextMenu(), deleteContextMenu(), and pContextMenu_.

void wxSlideBar::OnLockBars wxCommandEvent &  event  ) 
 

Definition at line 207 of file slidebar.cpp.

References GetBarLock(), and SetBarLock().

void wxSlideBar::OnQueryLayoutInfo wxQueryLayoutInfoEvent &  event  ) 
 

Definition at line 86 of file slidebar.cpp.

void wxSlideBar::OnSize wxSizeEvent &  event  ) 
 

Definition at line 181 of file slidebar.cpp.

References areaHeight_, and areaWidth_.

void wxSlideBar::refreshBars  )  [private]
 

Definition at line 520 of file slidebar.cpp.

References barList_.

bool wxSlideBar::SaveToStream wxOutputStream &  stream  ) 
 

Definition at line 363 of file slidebar.cpp.

References barList_, barLock_, wxBarHolder::GetLabel(), mode_, STREAM_VERSION, and wxUtil::WriteString().

bool wxSlideBar::SaveToXML const wxString &  filename  ) 
 

Definition at line 446 of file slidebar.cpp.

void wxSlideBar::SetBarLock bool  enable  ) 
 

Definition at line 124 of file slidebar.cpp.

References barList_, barLock_, wxBarHolder::ShowGripper(), and UpdateLayout().

Referenced by LoadFromStream(), and OnLockBars().

void wxSlideBar::SetMode wxSlideBarMode  mode  ) 
 

Definition at line 114 of file slidebar.cpp.

References mode_, and UpdateLayout().

void wxSlideBar::SwapBarHolders wxBarHolder p1,
wxBarHolder p2
 

Definition at line 263 of file slidebar.cpp.

References barList_.

void wxSlideBar::UpdateLayout  ) 
 

Definition at line 158 of file slidebar.cpp.

References wxEVT_SLIDEBAR_UPDATE_LAYOUT.

Referenced by AddWindow(), LoadFromStream(), OnContextItem(), SetBarLock(), and SetMode().


Member Data Documentation

int wxSlideBar::areaHeight_ [private]
 

Definition at line 120 of file slidebar.h.

Referenced by DoGetSize(), and OnSize().

int wxSlideBar::areaWidth_ [private]
 

Definition at line 121 of file slidebar.h.

Referenced by DoGetSize(), and OnSize().

BarHolderList wxSlideBar::barList_ [private]
 

Definition at line 123 of file slidebar.h.

Referenced by AddWindow(), CalcBarPlacement(), createContextMenu(), GetBarHolderAt(), LoadFromStream(), OnContextItem(), refreshBars(), SaveToStream(), SetBarLock(), and SwapBarHolders().

bool wxSlideBar::barLock_ [private]
 

Definition at line 124 of file slidebar.h.

Referenced by createContextMenu(), GetBarLock(), SaveToStream(), and SetBarLock().

BarPlacementArray wxSlideBar::barPlacementArray_ [private]
 

Definition at line 119 of file slidebar.h.

Referenced by CalcBarPlacement().

int wxSlideBar::contextIdEnd_ [private]
 

Definition at line 128 of file slidebar.h.

Referenced by createContextMenu(), and deleteContextMenu().

int wxSlideBar::contextIdStart_ [private]
 

Definition at line 127 of file slidebar.h.

Referenced by createContextMenu(), and deleteContextMenu().

wxSlideBarMode wxSlideBar::mode_ [private]
 

Definition at line 122 of file slidebar.h.

Referenced by CalcBarPlacement(), GetMode(), LoadFromStream(), SaveToStream(), and SetMode().

wxMenu* wxSlideBar::pContextMenu_ [private]
 

Definition at line 125 of file slidebar.h.

Referenced by createContextMenu(), deleteContextMenu(), OnContextMenu(), and ~wxSlideBar().


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