From 25474dcaded8b33e5e21512616b52a3d196d5015 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 27 Aug 2003 08:10:02 +0000 Subject: [PATCH] changed getters for enum to const, GetEventClass to the delegate git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/xti.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/wx/xti.h b/include/wx/xti.h index 274fa55249..6d46979227 100644 --- a/include/wx/xti.h +++ b/include/wx/xti.h @@ -106,24 +106,24 @@ public : // returns true if the member has been found and sets the int value // pointed to accordingly (if ptr != null ) // if not found returns false, value left unchanged - bool HasEnumMemberValue( const wxChar *name , int *value = NULL ) ; + bool HasEnumMemberValue( const wxChar *name , int *value = NULL ) const ; // returns the value of the member, if not found in debug mode an // assert is issued, in release 0 is returned - int GetEnumMemberValue(const wxChar *name ); + int GetEnumMemberValue(const wxChar *name ) const ; // returns the name of the enum member having the passed in value // returns an emtpy string if not found - const wxChar *GetEnumMemberName(int value); + const wxChar *GetEnumMemberName(int value) const ; // returns the number of members in this enum - int GetEnumCount() { return m_count ; } + int GetEnumCount() const { return m_count ; } // returns the value of the nth member - int GetEnumMemberValueByIndex( int n ) ; + int GetEnumMemberValueByIndex( int n ) const ; // returns the value of the nth member - const wxChar *GetEnumMemberNameByIndex( int n ) ; + const wxChar *GetEnumMemberNameByIndex( int n ) const ; private : wxEnumMemberData *m_members; int m_count ; @@ -517,6 +517,7 @@ class WXDLLIMPEXP_BASE wxDelegateTypeInfo : public wxTypeInfo public : wxDelegateTypeInfo( int eventType , wxClassInfo* eventClass , converterToString_t to = NULL , converterFromString_t from = NULL ) ; int GetEventType() const { return m_eventType ; } + const wxClassInfo* GetEventClass() const { return m_eventClass ; } private : const wxClassInfo *m_eventClass; // (extended will merge into classinfo) int m_eventType ; -- 2.45.2