#include <slidebar.h>
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 () |
| wxBarHolder * | AddWindow (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) |
| wxBarHolder * | GetBarHolderAt (wxPoint pt) |
| wxBarHolder * | GetBarHolderAt (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_ |
|
|
Definition at line 43 of file slidebar.h. |
|
||||||||||||||||||||||||||||
|
Definition at line 49 of file slidebar.h. |
|
|
Definition at line 78 of file slidebar.cpp. References pContextMenu_. |
|
||||||||||||||||
|
Definition at line 143 of file slidebar.cpp. References wxBarHolder::AddWindow(), barList_, wxBarHolder::GetLabel(), wxBarHolder::SetSlideBar(), and UpdateLayout(). |
|
|
Definition at line 456 of file slidebar.cpp. References wxBarPlacement::pBarHolder, and wxBarPlacement::placement. Referenced by OnCalculateLayout(). |
|
||||||||||||
|
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(). |
|
||||||||||||||||||||||||||||
|
Definition at line 67 of file slidebar.cpp. |
|
|
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(). |
|
|
Definition at line 510 of file slidebar.cpp. References contextIdEnd_, contextIdStart_, and pContextMenu_. Referenced by OnContextMenu(). |
|
|
Definition at line 177 of file slidebar.cpp. |
|
||||||||||||
|
Definition at line 172 of file slidebar.cpp. References areaHeight_, and areaWidth_. |
|
||||||||||||
|
Definition at line 227 of file slidebar.cpp. References wxBarPlacement::pBarHolder, and wxBarPlacement::placement. |
|
|
Definition at line 243 of file slidebar.cpp. References barList_. |
|
|
Definition at line 139 of file slidebar.cpp. References barLock_. Referenced by OnLockBars(). |
|
|
Definition at line 120 of file slidebar.cpp. References mode_. |
|
|
Definition at line 58 of file slidebar.cpp. References wxSLIDE_MODE_SIMPLE. |
|
|
Definition at line 391 of file slidebar.cpp. References barList_, wxBarHolder::GetLabel(), mode_, wxUtil::ReadString(), SetBarLock(), STREAM_VERSION, and UpdateLayout(). |
|
|
Definition at line 450 of file slidebar.cpp. |
|
|
Definition at line 90 of file slidebar.cpp. References applyBarPlacement(), and CalcBarPlacement(). |
|
|
Definition at line 212 of file slidebar.cpp. References barList_, IDM_ITEMS, and UpdateLayout(). Referenced by createContextMenu(). |
|
|
Definition at line 198 of file slidebar.cpp. References createContextMenu(), deleteContextMenu(), and pContextMenu_. |
|
|
Definition at line 207 of file slidebar.cpp. References GetBarLock(), and SetBarLock(). |
|
|
Definition at line 86 of file slidebar.cpp. |
|
|
Definition at line 181 of file slidebar.cpp. References areaHeight_, and areaWidth_. |
|
|
Definition at line 520 of file slidebar.cpp. References barList_. |
|
|
Definition at line 363 of file slidebar.cpp. References barList_, barLock_, wxBarHolder::GetLabel(), mode_, STREAM_VERSION, and wxUtil::WriteString(). |
|
|
Definition at line 446 of file slidebar.cpp. |
|
|
Definition at line 124 of file slidebar.cpp. References barList_, barLock_, wxBarHolder::ShowGripper(), and UpdateLayout(). Referenced by LoadFromStream(), and OnLockBars(). |
|
|
Definition at line 114 of file slidebar.cpp. References mode_, and UpdateLayout(). |
|
||||||||||||
|
Definition at line 263 of file slidebar.cpp. References barList_. |
|
|
Definition at line 158 of file slidebar.cpp. References wxEVT_SLIDEBAR_UPDATE_LAYOUT. Referenced by AddWindow(), LoadFromStream(), OnContextItem(), SetBarLock(), and SetMode(). |
|
|
Definition at line 120 of file slidebar.h. Referenced by DoGetSize(), and OnSize(). |
|
|
Definition at line 121 of file slidebar.h. Referenced by DoGetSize(), and OnSize(). |
|
|
Definition at line 123 of file slidebar.h. Referenced by AddWindow(), CalcBarPlacement(), createContextMenu(), GetBarHolderAt(), LoadFromStream(), OnContextItem(), refreshBars(), SaveToStream(), SetBarLock(), and SwapBarHolders(). |
|
|
Definition at line 124 of file slidebar.h. Referenced by createContextMenu(), GetBarLock(), SaveToStream(), and SetBarLock(). |
|
|
Definition at line 119 of file slidebar.h. Referenced by CalcBarPlacement(). |
|
|
Definition at line 128 of file slidebar.h. Referenced by createContextMenu(), and deleteContextMenu(). |
|
|
Definition at line 127 of file slidebar.h. Referenced by createContextMenu(), and deleteContextMenu(). |
|
|
Definition at line 122 of file slidebar.h. Referenced by CalcBarPlacement(), GetMode(), LoadFromStream(), SaveToStream(), and SetMode(). |
|
|
Definition at line 125 of file slidebar.h. Referenced by createContextMenu(), deleteContextMenu(), OnContextMenu(), and ~wxSlideBar(). |
1.4.2