NCBI C++ ToolKit
|
Search Toolkit Book for CLargeSpinControl
#include <gui/widgets/edit/large_spin_ctrl.hpp>
Public Types | |
enum | EArea { kNone , kBtnUp = 1000 , kBtnDn } |
Public Member Functions | |
CLargeSpinControl (wxWindow *parent, wxWindowID id, const wxPoint &pos) | |
void | Create (wxWindow *parent, wxWindowID id, const wxPoint &pos) |
void | UseImageSet (int set) |
wxSize | DoGetBestSize () const |
void | OnPaint (wxPaintEvent &event) |
void | OnMouseMove (wxMouseEvent &event) |
void | OnMouseLeave (wxMouseEvent &event) |
void | OnLeftDown (wxMouseEvent &event) |
void | OnLeftUp (wxMouseEvent &event) |
Static Public Attributes | |
static const int | kWidth = 34 |
static const int | kHeight = 17 |
Protected Member Functions | |
EArea | x_HitTest (int x, int y) |
void | x_DrawButton (wxDC &dc, int w, int h, wxBitmap &img, bool highlight, bool clicked) |
Protected Attributes | |
wxBitmap | m_OffScreen |
wxBitmap | m_ArrUp |
wxBitmap | m_ArrDn |
wxBitmap | m_PlusUp |
wxBitmap | m_PlusDown |
int | m_ImageSet |
EArea | m_Highlight |
EArea | m_Clicking |
Definition at line 46 of file large_spin_ctrl.hpp.
Enumerator | |
---|---|
kNone | |
kBtnUp | |
kBtnDn |
Definition at line 62 of file large_spin_ctrl.hpp.
CLargeSpinControl::CLargeSpinControl | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos | ||
) |
Definition at line 61 of file large_spin_ctrl.cpp.
References Create().
void CLargeSpinControl::Create | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos | ||
) |
Definition at line 69 of file large_spin_ctrl.cpp.
References kHeight, kWidth, and wxT.
Referenced by CLargeSpinControl().
wxSize CLargeSpinControl::DoGetBestSize | ( | ) | const |
Definition at line 79 of file large_spin_ctrl.cpp.
void CLargeSpinControl::OnLeftDown | ( | wxMouseEvent & | event | ) |
Definition at line 154 of file large_spin_ctrl.cpp.
References m_Clicking, and x_HitTest().
void CLargeSpinControl::OnLeftUp | ( | wxMouseEvent & | event | ) |
Definition at line 163 of file large_spin_ctrl.cpp.
References kNone, m_Clicking, and m_ImageSet.
void CLargeSpinControl::OnMouseLeave | ( | wxMouseEvent & | event | ) |
Definition at line 145 of file large_spin_ctrl.cpp.
References kNone, m_Clicking, and m_Highlight.
void CLargeSpinControl::OnMouseMove | ( | wxMouseEvent & | event | ) |
Definition at line 132 of file large_spin_ctrl.cpp.
References kNone, m_Clicking, m_Highlight, and x_HitTest().
void CLargeSpinControl::OnPaint | ( | wxPaintEvent & | event | ) |
Definition at line 84 of file large_spin_ctrl.cpp.
References kBtnDn, kBtnUp, kHeight, kWidth, m_ArrDn, m_ArrUp, m_Clicking, m_Highlight, m_ImageSet, m_OffScreen, m_PlusDown, m_PlusUp, and x_DrawButton().
void CLargeSpinControl::UseImageSet | ( | int | set | ) |
Definition at line 74 of file large_spin_ctrl.cpp.
References m_ImageSet.
Referenced by CSingleAuthorPanel::CreateControls(), CLocationListCtrl::x_AddEmptyRow(), and CLocationListCtrl::x_AddRow().
|
protected |
Definition at line 109 of file large_spin_ctrl.cpp.
Referenced by OnPaint().
|
protected |
Definition at line 174 of file large_spin_ctrl.cpp.
References kBtnDn, kBtnUp, kHeight, kNone, and kWidth.
Referenced by OnLeftDown(), and OnMouseMove().
Definition at line 70 of file large_spin_ctrl.hpp.
Referenced by Create(), CSingleAuthorPanel::CreateControls(), DoGetBestSize(), OnPaint(), and x_HitTest().
Definition at line 69 of file large_spin_ctrl.hpp.
Referenced by Create(), CSingleAuthorPanel::CreateControls(), DoGetBestSize(), OnPaint(), and x_HitTest().
|
protected |
Definition at line 78 of file large_spin_ctrl.hpp.
Referenced by OnPaint().
|
protected |
Definition at line 77 of file large_spin_ctrl.hpp.
Referenced by OnPaint().
|
protected |
Definition at line 83 of file large_spin_ctrl.hpp.
Referenced by OnLeftDown(), OnLeftUp(), OnMouseLeave(), OnMouseMove(), and OnPaint().
|
protected |
Definition at line 82 of file large_spin_ctrl.hpp.
Referenced by OnMouseLeave(), OnMouseMove(), and OnPaint().
|
protected |
Definition at line 81 of file large_spin_ctrl.hpp.
Referenced by OnLeftUp(), OnPaint(), and UseImageSet().
|
protected |
Definition at line 76 of file large_spin_ctrl.hpp.
Referenced by OnPaint().
|
protected |
Definition at line 80 of file large_spin_ctrl.hpp.
Referenced by OnPaint().
|
protected |
Definition at line 79 of file large_spin_ctrl.hpp.
Referenced by OnPaint().