Code::Blocks
SVN r11506
|
#include <switcherdlg.h>
Public Member Functions | |
wxMultiColumnListCtrl (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) | |
wxMultiColumnListCtrl () | |
bool | Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) |
void | SetItems (const wxSwitcherItems &items) |
const wxSwitcherItems & | GetItems () const |
wxSwitcherItems & | GetItems () |
void | SetExtraNavigationKey (int keyCode) |
int | GetExtraNavigationKey () const |
void | SetModifierKey (int modifierKey) |
int | GetModifierKey () const |
void | OnPaint (wxPaintEvent &event) |
void | OnMouseEvent (wxMouseEvent &event) |
void | OnChar (wxKeyEvent &event) |
void | OnKey (wxKeyEvent &event) |
void | OnEraseBackground (wxEraseEvent &event) |
virtual wxSize | DoGetBestSize () const |
void | CalculateLayout () |
void | CalculateLayout (wxDC &dc) |
void | InvalidateLayout () |
void | Init () |
void | GenerateSelectionEvent () |
void | AdvanceToNextSelectableItem (int direction) |
void | SendCloseEvent () |
Protected Attributes | |
wxPoint | m_ptMouse |
Mouse point initialized on Init function. More... | |
wxSwitcherItems | m_items |
wxSize | m_overallSize |
int | m_extraNavigationKey |
int | m_modifierKey |
wxMultiColumnListCtrl A control for displaying several columns (not scrollable)
Definition at line 204 of file switcherdlg.h.
wxMultiColumnListCtrl::wxMultiColumnListCtrl | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 |
||
) |
Definition at line 439 of file switcherdlg.cpp.
References wxSwitcherItem::Init().
|
inline |
Definition at line 209 of file switcherdlg.h.
References wxSwitcherItem::Init(), wxDefaultPosition, and wxDefaultSize.
void wxMultiColumnListCtrl::AdvanceToNextSelectableItem | ( | int | direction | ) |
Definition at line 718 of file switcherdlg.cpp.
References wxSwitcherItem::GetIsGroup().
void wxMultiColumnListCtrl::CalculateLayout | ( | ) |
Definition at line 756 of file switcherdlg.cpp.
void wxMultiColumnListCtrl::CalculateLayout | ( | wxDC & | dc | ) |
Definition at line 762 of file switcherdlg.cpp.
bool wxMultiColumnListCtrl::Create | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 |
||
) |
Definition at line 446 of file switcherdlg.cpp.
|
virtual |
Definition at line 456 of file switcherdlg.cpp.
void wxMultiColumnListCtrl::GenerateSelectionEvent | ( | ) |
Definition at line 747 of file switcherdlg.cpp.
References wxSwitcherItem::GetId().
|
inline |
Definition at line 222 of file switcherdlg.h.
|
inline |
Definition at line 216 of file switcherdlg.h.
|
inline |
Definition at line 217 of file switcherdlg.h.
|
inline |
Definition at line 227 of file switcherdlg.h.
void wxMultiColumnListCtrl::Init | ( | ) |
Definition at line 835 of file switcherdlg.cpp.
References wxSwitcherDialog::OnActivate(), wxSwitcherDialog::OnCloseWindow(), wxSwitcherDialog::OnPaint(), wxSwitcherDialog::OnSelectItem(), wxGetMousePosition(), wxID_ANY, and WXK_CONTROL.
|
inline |
Definition at line 244 of file switcherdlg.h.
References wxSwitcherItem::Init().
void wxMultiColumnListCtrl::OnChar | ( | wxKeyEvent & | event | ) |
Definition at line 564 of file switcherdlg.cpp.
Referenced by wxSwitcherItems::HitTest().
void wxMultiColumnListCtrl::OnEraseBackground | ( | wxEraseEvent & | event | ) |
Definition at line 478 of file switcherdlg.cpp.
Referenced by wxSwitcherItems::HitTest().
void wxMultiColumnListCtrl::OnKey | ( | wxKeyEvent & | event | ) |
Definition at line 568 of file switcherdlg.cpp.
References wxSwitcherItem::GetColPos(), wxKeyEvent::GetKeyCode(), wxSwitcherItem::GetRowPos(), wxKeyboardState::ShiftDown(), wxEVT_KEY_UP, WXK_DOWN, WXK_END, WXK_ESCAPE, WXK_HOME, WXK_LEFT, WXK_NUMPAD_DOWN, WXK_NUMPAD_END, WXK_NUMPAD_ENTER, WXK_NUMPAD_HOME, WXK_NUMPAD_LEFT, WXK_NUMPAD_RIGHT, WXK_NUMPAD_UP, WXK_RETURN, WXK_RIGHT, WXK_TAB, and WXK_UP.
Referenced by wxSwitcherItems::HitTest().
void wxMultiColumnListCtrl::OnMouseEvent | ( | wxMouseEvent & | event | ) |
Definition at line 500 of file switcherdlg.cpp.
References wxMouseEvent::GetButton(), wxMouseEvent::GetPosition(), wxMouseEvent::LeftDown(), wxEVT_MOUSEWHEEL, wxMOUSE_BTN_NONE, wxNOT_FOUND, wxPoint::x, and wxPoint::y.
Referenced by wxSwitcherItems::HitTest().
void wxMultiColumnListCtrl::OnPaint | ( | wxPaintEvent & | event | ) |
Definition at line 483 of file switcherdlg.cpp.
Referenced by wxSwitcherItems::HitTest().
void wxMultiColumnListCtrl::SendCloseEvent | ( | ) |
Definition at line 461 of file switcherdlg.cpp.
References wxCloseEvent::SetCanVeto(), and wxEVT_CLOSE_WINDOW.
|
inline |
Definition at line 221 of file switcherdlg.h.
|
inline |
Definition at line 215 of file switcherdlg.h.
|
inline |
Definition at line 226 of file switcherdlg.h.
|
protected |
Definition at line 263 of file switcherdlg.h.
|
protected |
Definition at line 261 of file switcherdlg.h.
|
protected |
Definition at line 264 of file switcherdlg.h.
|
protected |
Definition at line 262 of file switcherdlg.h.
|
protected |
Mouse point initialized on Init function.
Used because if the mouse is over the dialog when it's opened, it automatically select the item under the mouse pointer. Recording the mouse pointer position when the dialog is opened prevent this : select the item only if the user move the mouse.
Definition at line 260 of file switcherdlg.h.