X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea5af9c5356676a5c4d81b4d4915ad32ca3c9c6e..6df26ddbf7eb563e66bee2313e71d1c0241b351a:/samples/propgrid/propgrid.h?ds=sidebyside diff --git a/samples/propgrid/propgrid.h b/samples/propgrid/propgrid.h index bec86c7991..fb051d3978 100644 --- a/samples/propgrid/propgrid.h +++ b/samples/propgrid/propgrid.h @@ -72,12 +72,13 @@ class wxVectorProperty : public wxPGProperty public: wxVectorProperty( const wxString& label = wxPG_LABEL, - const wxString& name = wxPG_LABEL, - const wxVector3f& value = wxVector3f() ); + const wxString& name = wxPG_LABEL, + const wxVector3f& value = wxVector3f() ); virtual ~wxVectorProperty(); - virtual void ChildChanged( wxVariant& thisValue, - int childIndex, wxVariant& childValue ) const; + virtual wxVariant ChildChanged( wxVariant& thisValue, + int childIndex, + wxVariant& childValue ) const; virtual void RefreshChildren(); protected: @@ -108,8 +109,9 @@ public: const wxTriangle& value = wxTriangle() ); virtual ~wxTriangleProperty(); - virtual void ChildChanged( wxVariant& thisValue, - int childIndex, wxVariant& childValue ) const; + virtual wxVariant ChildChanged( wxVariant& thisValue, + int childIndex, + wxVariant& childValue ) const; virtual void RefreshChildren(); protected: @@ -128,7 +130,7 @@ class FormMain : public wxFrame { public: FormMain(const wxString& title, const wxPoint& pos, const wxSize& size ); - ~FormMain(); + ~FormMain(); wxPropertyGridManager* m_pPropGridManager; wxPropertyGrid* m_propGrid; @@ -137,12 +139,17 @@ public: wxWindow* m_panel; wxBoxSizer* m_topSizer; +#if wxUSE_LOGWINDOW + wxLogWindow* m_logWindow; +#endif + wxPGEditor* m_pSampleMultiButtonEditor; wxPGChoices m_combinedFlags; wxMenuItem* m_itemCatColours; wxMenuItem* m_itemFreeze; wxMenuItem* m_itemEnable; + wxMenuItem* m_itemVetoDragging; wxVariant m_storedValues; @@ -150,6 +157,7 @@ public: void CreateGrid( int style, int extraStyle ); + void FinalizeFramePosition(); // These are used in CreateGrid(), and in tests to compose // grids for testing purposes. @@ -177,9 +185,13 @@ public: void OnContextMenu( wxContextMenuEvent& event ); void OnEnableDisable( wxCommandEvent& event ); - void OnHideShow( wxCommandEvent& event ); + void OnSetReadOnly( wxCommandEvent& event ); + void OnHide( wxCommandEvent& event ); + void OnSetBackgroundColour( wxCommandEvent& event ); void OnClearModifyStatusClick( wxCommandEvent& event ); void OnFreezeClick( wxCommandEvent& event ); + void OnEnableLabelEditing( wxCommandEvent& event ); + void OnShowHeader( wxCommandEvent& event ); void OnDumpList( wxCommandEvent& event ); void OnCatColours( wxCommandEvent& event ); void OnSetColumns( wxCommandEvent& event ); @@ -226,6 +238,11 @@ public: void OnPropertyGridKeyEvent( wxKeyEvent& event ); void OnPropertyGridItemCollapse( wxPropertyGridEvent& event ); void OnPropertyGridItemExpand( wxPropertyGridEvent& event ); + void OnPropertyGridLabelEditBegin( wxPropertyGridEvent& event ); + void OnPropertyGridLabelEditEnding( wxPropertyGridEvent& event ); + void OnPropertyGridColBeginDrag( wxPropertyGridEvent& event ); + void OnPropertyGridColDragging( wxPropertyGridEvent& event ); + void OnPropertyGridColEndDrag( wxPropertyGridEvent& event ); void OnAbout( wxCommandEvent& event );