1. more consistency in wxTree/ListEvent methods naming convention:

GetKeyCode() instead of GetCode()
2. wxTreeEvent::GetKeyEvent()::IsAltDown() now works under MSW
3. wxTreeEvent::GetKeyCode() works for alnum keys


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-07-21 14:29:13 +00:00
parent 19caf22926
commit 1944ad7618
5 changed files with 170 additions and 14 deletions

View File

@@ -413,8 +413,8 @@ public:
, m_pointDrag(event.m_pointDrag)
, m_item(event.m_item)
{ }
int GetCode() const { return m_code; }
int GetKeyCode() const { return m_code; }
long GetIndex() const { return m_itemIndex; }
int GetColumn() const { return m_col; }
wxPoint GetPoint() const { return m_pointDrag; }
@@ -429,10 +429,13 @@ public:
long GetCacheFrom() const { return m_oldItemIndex; }
long GetCacheTo() const { return m_itemIndex; }
// these methods don't do anything at all
#if WXWIN_COMPATIBILITY_2_2
// these methods don't do anything at all
long GetOldIndex() const { return 0; }
long GetOldItem() const { return 0; }
// this one is superseded by GetKeyCode()
int GetCode() const { return GetKeyCode(); }
#endif // WXWIN_COMPATIBILITY_2_2
virtual wxEvent *Clone() const { return new wxListEvent(*this); }