switching back to normal accessors, workaround not needed anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,7 +52,7 @@ IMPLEMENT_DYNAMIC_CLASS_XTI(wxButton, wxControl,"wx/button.h")
|
|||||||
WX_BEGIN_PROPERTIES_TABLE(wxButton)
|
WX_BEGIN_PROPERTIES_TABLE(wxButton)
|
||||||
WX_DELEGATE( OnClick , wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEvent )
|
WX_DELEGATE( OnClick , wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEvent )
|
||||||
|
|
||||||
WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
|
WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
|
||||||
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
|
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
|
||||||
WX_END_PROPERTIES_TABLE()
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
|
||||||
|
@@ -53,7 +53,7 @@ IMPLEMENT_DYNAMIC_CLASS_XTI(wxCheckBox, wxControl,"wx/checkbox.h")
|
|||||||
WX_BEGIN_PROPERTIES_TABLE(wxCheckBox)
|
WX_BEGIN_PROPERTIES_TABLE(wxCheckBox)
|
||||||
WX_DELEGATE( OnClick , wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEvent )
|
WX_DELEGATE( OnClick , wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEvent )
|
||||||
|
|
||||||
WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
|
WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
|
||||||
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
|
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
|
||||||
WX_PROPERTY( Value ,bool, SetValue, GetValue, )
|
WX_PROPERTY( Value ,bool, SetValue, GetValue, )
|
||||||
WX_END_PROPERTIES_TABLE()
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
@@ -45,7 +45,7 @@ IMPLEMENT_DYNAMIC_CLASS_XTI(wxChoice, wxControl,"wx/checkbox.h")
|
|||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxChoice)
|
WX_BEGIN_PROPERTIES_TABLE(wxChoice)
|
||||||
// TODO DELEGATES
|
// TODO DELEGATES
|
||||||
WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
|
WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
|
||||||
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
|
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
|
||||||
WX_PROPERTY( Selection ,int, SetSelection, GetSelection, )
|
WX_PROPERTY( Selection ,int, SetSelection, GetSelection, )
|
||||||
WX_END_PROPERTIES_TABLE()
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
@@ -58,7 +58,7 @@ IMPLEMENT_DYNAMIC_CLASS_XTI(wxComboBox, wxControl,"wx/combobox.h")
|
|||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxComboBox)
|
WX_BEGIN_PROPERTIES_TABLE(wxComboBox)
|
||||||
// TODO DELEGATES
|
// TODO DELEGATES
|
||||||
WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
|
WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
|
||||||
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
|
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
|
||||||
WX_PROPERTY( Value ,wxString, SetValue, GetValue, )
|
WX_PROPERTY( Value ,wxString, SetValue, GetValue, )
|
||||||
WX_PROPERTY( Selection ,int, SetSelectionLine, GetSelection, )
|
WX_PROPERTY( Selection ,int, SetSelectionLine, GetSelection, )
|
||||||
|
@@ -67,7 +67,7 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if wxUSE_EXTENDED_RTTI
|
#if wxUSE_EXTENDED_RTTI
|
||||||
IMPLEMENT_DYNAMIC_CLASS_XTI(wxGauge95, wxControl,"wx/gauge.h")
|
IMPLEMENT_DYNAMIC_CLASS_XTI(wxGauge, wxControl,"wx/gauge.h")
|
||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxGauge95)
|
WX_BEGIN_PROPERTIES_TABLE(wxGauge95)
|
||||||
WX_PROPERTY( Value , int , SetValue, GetValue, 0 )
|
WX_PROPERTY( Value , int , SetValue, GetValue, 0 )
|
||||||
|
@@ -52,7 +52,7 @@ IMPLEMENT_DYNAMIC_CLASS_XTI(wxListBox, wxControl,"wx/listbox.h")
|
|||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxListBox)
|
WX_BEGIN_PROPERTIES_TABLE(wxListBox)
|
||||||
// TODO DELEGATES
|
// TODO DELEGATES
|
||||||
WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
|
WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
|
||||||
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
|
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
|
||||||
WX_PROPERTY( Selection ,int, SetSelectionLine, GetSelection, )
|
WX_PROPERTY( Selection ,int, SetSelectionLine, GetSelection, )
|
||||||
WX_END_PROPERTIES_TABLE()
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
@@ -127,6 +127,11 @@ template<> const wxTypeInfo* wxGetTypeInfo( wxNotebookPageInfoList * )
|
|||||||
return &s_typeInfo ;
|
return &s_typeInfo ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<> void wxCollectionToVariantArray( wxNotebookPageInfoList const &theList, wxxVariantArray &value)
|
||||||
|
{
|
||||||
|
wxListCollectionToVariantArray( theList , value ) ;
|
||||||
|
}
|
||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxNotebook)
|
WX_BEGIN_PROPERTIES_TABLE(wxNotebook)
|
||||||
WX_PROPERTY_COLLECTION( PageInfos , wxNotebookPageInfoList , wxNotebookPageInfo* , AddPageInfo , GetPageInfos )
|
WX_PROPERTY_COLLECTION( PageInfos , wxNotebookPageInfoList , wxNotebookPageInfo* , AddPageInfo , GetPageInfos )
|
||||||
/*
|
/*
|
||||||
@@ -158,11 +163,6 @@ WX_END_HANDLERS_TABLE()
|
|||||||
|
|
||||||
WX_CONSTRUCTOR_4( wxNotebookPageInfo , wxNotebookPage* , Page , wxString , Text , bool , Selected , int , ImageId )
|
WX_CONSTRUCTOR_4( wxNotebookPageInfo , wxNotebookPage* , Page , wxString , Text , bool , Selected , int , ImageId )
|
||||||
|
|
||||||
template<> void wxCollectionToVariantArray( wxNotebookPageInfoList const &theList, wxxVariantArray &value)
|
|
||||||
{
|
|
||||||
wxListCollectionToVariantArray( theList , value ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxNotebookPageInfo, wxObject )
|
IMPLEMENT_DYNAMIC_CLASS(wxNotebookPageInfo, wxObject )
|
||||||
|
@@ -53,7 +53,7 @@ IMPLEMENT_DYNAMIC_CLASS_XTI(wxRadioButton, wxControl,"wx/radiobut.h")
|
|||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxRadioButton)
|
WX_BEGIN_PROPERTIES_TABLE(wxRadioButton)
|
||||||
WX_DELEGATE( OnClick , wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEvent )
|
WX_DELEGATE( OnClick , wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEvent )
|
||||||
WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
|
WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
|
||||||
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
|
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
|
||||||
WX_PROPERTY( Value ,bool, SetValue, GetValue, )
|
WX_PROPERTY( Value ,bool, SetValue, GetValue, )
|
||||||
WX_END_PROPERTIES_TABLE()
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
@@ -29,16 +29,23 @@
|
|||||||
#include "wx/scrolbar.h"
|
#include "wx/scrolbar.h"
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
|
#if wxUSE_EXTENDED_RTTI
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS_XTI(wxScrollBar, wxControl,"wx/scrolbar.h")
|
||||||
|
|
||||||
|
WX_BEGIN_PROPERTIES_TABLE(wxScrollBar)
|
||||||
|
WX_PROPERTY( ThumbPosition , int , SetThumbPosition, GetThumbPosition, 0 )
|
||||||
|
WX_PROPERTY( Range , int , SetRange, GetRange, 0 )
|
||||||
|
WX_PROPERTY( ThumbSize , int , SetThumbSize, GetThumbSize, 0 )
|
||||||
|
WX_PROPERTY( PageSize , int , SetPageSize, GetPageSize, 0 )
|
||||||
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
|
||||||
|
WX_BEGIN_HANDLERS_TABLE(wxScrollBar)
|
||||||
|
WX_END_HANDLERS_TABLE()
|
||||||
|
|
||||||
|
WX_CONSTRUCTOR_5( wxScrollBar , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
|
||||||
|
#else
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
|
||||||
|
#endif
|
||||||
/*
|
|
||||||
TODO PROPERTIES
|
|
||||||
value (long,0)
|
|
||||||
thumbsize(long,1)
|
|
||||||
range( long , 10 )
|
|
||||||
pagesize( long , 1)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// Scrollbar
|
// Scrollbar
|
||||||
bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
|
bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
|
||||||
|
@@ -37,20 +37,26 @@
|
|||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxSlider95, wxControl)
|
#if wxUSE_EXTENDED_RTTI
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider95, wxControl,"wx/scrolbar.h")
|
||||||
|
|
||||||
|
WX_BEGIN_PROPERTIES_TABLE(wxSlider95)
|
||||||
|
WX_PROPERTY( Value , int , SetValue, GetValue , 0)
|
||||||
|
WX_PROPERTY( Minimum , int , SetMin, GetMin, 0 )
|
||||||
|
WX_PROPERTY( Maximum , int , SetMax, GetMax, 0 )
|
||||||
|
WX_PROPERTY( PageSize , int , SetPageSize, GetLineSize, 1 )
|
||||||
|
WX_PROPERTY( LineSize , int , SetLineSize, GetLineSize, 1 )
|
||||||
|
WX_PROPERTY( ThumbLength , int , SetThumbLength, GetThumbLength, 1 )
|
||||||
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
|
||||||
|
WX_BEGIN_HANDLERS_TABLE(wxSlider95)
|
||||||
|
WX_END_HANDLERS_TABLE()
|
||||||
|
|
||||||
|
WX_CONSTRUCTOR_8( wxSlider95 , wxWindow* , Parent , wxWindowID , Id , int , Value , int , Minimum , int , Maximum , wxPoint , Position , wxSize , Size , long , WindowStyle )
|
||||||
|
#else
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxSlider95, wxControl)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
TODO PROPERTIES
|
|
||||||
value wxSL_DEFAULT_VALUE
|
|
||||||
min wxSL_DEFAULT_MIN
|
|
||||||
max wxSL_DEFAULT_MAX
|
|
||||||
tickfreq (long , 0 )
|
|
||||||
pagesize ( long )
|
|
||||||
linesize (long)
|
|
||||||
thumg (long)
|
|
||||||
tick (long)
|
|
||||||
selmin / selmax (long)
|
|
||||||
*/
|
|
||||||
// Slider
|
// Slider
|
||||||
wxSlider95::wxSlider95()
|
wxSlider95::wxSlider95()
|
||||||
{
|
{
|
||||||
|
@@ -50,10 +50,11 @@
|
|||||||
// macros
|
// macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if 0 // wxUSE_EXTENDED_RTTI
|
#if wxUSE_EXTENDED_RTTI
|
||||||
IMPLEMENT_DYNAMIC_CLASS_XTI(wxSpinCtrl, wxControl,"wx/spinbut.h")
|
IMPLEMENT_DYNAMIC_CLASS_XTI(wxSpinCtrl, wxControl,"wx/spinbut.h")
|
||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxSpinCtrl)
|
WX_BEGIN_PROPERTIES_TABLE(wxSpinCtrl)
|
||||||
|
WX_PROPERTY( ValueString , wxString , SetValue , GetValue , ) ;
|
||||||
WX_PROPERTY( Value , int , SetValue, GetValue, 0 )
|
WX_PROPERTY( Value , int , SetValue, GetValue, 0 )
|
||||||
WX_PROPERTY( Min , int , SetMin, GetMin, 0 )
|
WX_PROPERTY( Min , int , SetMin, GetMin, 0 )
|
||||||
WX_PROPERTY( Max , int , SetMax, GetMax, 0 )
|
WX_PROPERTY( Max , int , SetMax, GetMax, 0 )
|
||||||
@@ -66,7 +67,7 @@ WX_END_PROPERTIES_TABLE()
|
|||||||
WX_BEGIN_HANDLERS_TABLE(wxSpinCtrl)
|
WX_BEGIN_HANDLERS_TABLE(wxSpinCtrl)
|
||||||
WX_END_HANDLERS_TABLE()
|
WX_END_HANDLERS_TABLE()
|
||||||
|
|
||||||
WX_CONSTRUCTOR_5( wxSpinCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
|
WX_CONSTRUCTOR_6( wxSpinCtrl , wxWindow* , Parent , wxWindowID , Id , wxString , ValueString , wxPoint , Position , wxSize , Size , long , WindowStyle )
|
||||||
#else
|
#else
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
|
||||||
#endif
|
#endif
|
||||||
|
@@ -120,7 +120,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxRichEditModule, wxModule)
|
|||||||
IMPLEMENT_DYNAMIC_CLASS_XTI(wxTextCtrl, wxControl,"wx/textctrl.h")
|
IMPLEMENT_DYNAMIC_CLASS_XTI(wxTextCtrl, wxControl,"wx/textctrl.h")
|
||||||
|
|
||||||
WX_BEGIN_PROPERTIES_TABLE(wxTextCtrl)
|
WX_BEGIN_PROPERTIES_TABLE(wxTextCtrl)
|
||||||
WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
|
WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
|
||||||
WX_PROPERTY( Value , wxString , SetValue, GetValue, wxEmptyString )
|
WX_PROPERTY( Value , wxString , SetValue, GetValue, wxEmptyString )
|
||||||
WX_END_PROPERTIES_TABLE()
|
WX_END_PROPERTIES_TABLE()
|
||||||
|
|
||||||
|
@@ -251,9 +251,9 @@ WX_BEGIN_PROPERTIES_TABLE(wxWindow)
|
|||||||
|
|
||||||
WX_READONLY_PROPERTY( Parent,wxWindow*, GetParent, )
|
WX_READONLY_PROPERTY( Parent,wxWindow*, GetParent, )
|
||||||
WX_PROPERTY( Id,wxWindowID, SetId, GetId, -1 )
|
WX_PROPERTY( Id,wxWindowID, SetId, GetId, -1 )
|
||||||
WX_PROPERTY( Position,wxPoint, SetWindowPosition , GetWindowPosition, wxPoint(-1,-1) ) // pos
|
WX_PROPERTY( Position,wxPoint, SetPosition , GetPosition, wxPoint(-1,-1) ) // pos
|
||||||
WX_PROPERTY( Size,wxSize, SetWindowSize, GetWindowSize, wxSize(-1,-1) ) // size
|
WX_PROPERTY( Size,wxSize, SetSize, GetSize, wxSize(-1,-1) ) // size
|
||||||
WX_PROPERTY( WindowStyle , long , SetWindowStyle , GetWindowStyle , ) // style
|
WX_PROPERTY( WindowStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , ) // style
|
||||||
|
|
||||||
// Then all relations of the object graph
|
// Then all relations of the object graph
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user