Commit Graph

35 Commits

Author SHA1 Message Date
Jaakko Salli
a6353fe8f6 Update editor control font centrally, in wxPropertyGrid::RefreshEditor()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 17:58:32 +00:00
Jaakko Salli
f521bae665 Have wxPGTextCtrlEditor::UpdateControl() update wxTextCtrl font boldness based on property's modified-status
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 18:46:08 +00:00
Jaakko Salli
91c818f829 Fixed various inconsistencies with deleting properties, added wxPGProperty::DeleteChildren()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-20 15:47:05 +00:00
Paul Cornett
a09307abba check for self assignment in operator=
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-16 18:03:08 +00:00
Vadim Zeitlin
18415eb5ca use base class copy ctor in wxPGCell and wxPGChoiceEntry copy ctor implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-10 23:06:44 +00:00
Jaakko Salli
d7e2b52235 Reworked wxPGCell. It is now reference counted, and therefore much more user friendly, and is used internally as basis for most property colour values instead of separate row text and bg colours.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 18:53:37 +00:00
Jaakko Salli
98c0463399 Removed deprecated functions wxPGChoices::HasValue(), HasValues()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-21 15:17:06 +00:00
Jaakko Salli
f275b5dbfd User should no longer be able to modify disabled or read only child properties by editing their parent (wxPG sf bug #2181860)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 17:01:17 +00:00
Jaakko Salli
c82a80e81f wxPGProperty::GenerateComposedValue() -> protected DoGenerateComposedValue(), added simple public GenerateComposedValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 16:46:38 +00:00
Jaakko Salli
1425eca550 Added virtual wxPGProperty::ValueToString(). In derived property classes, now it must be implemented instead of GetValueAsString (assertion failure is raised at run-time if you fail to do so). This change is needed to properly support wxEVT_PG_CHANGING for nested composite string properties. wxPGProperty::GenerateComposedValue() partially updated to support this.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 17:19:50 +00:00
Jaakko Salli
fedaff2f95 Removed unneeded wxPG_INHERITED_PROPFLAGS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 16:13:23 +00:00
Jaakko Salli
2fd4a52415 wxPGProperty::AddChild() can now be used to add normal child properties (previously it was only used to add private children of derived property classes such as wxFontProperty and wxFlagsProperty). However, to allow backwards compatibility, SetParentalStyle(wxPG_PROP_MISC_PARENT) needs to be called before doing so. Also done: merged property initialization code from PrepareToAddItem() and PrepareSubProperties() to InitAfterAdded().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 17:15:59 +00:00
Robert Roebling
1b895132c9 Correct spelling, now use Indices
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 10:52:38 +00:00
Robert Roebling
5acb9127c5 Correct spelling and signature of FixIndexesOfChildren
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 18:07:01 +00:00
Jaakko Salli
68bcfd2c10 Eliminate (or at least reduce) 64-bit build warnings (as described in wxPG sourceforge bug report #2156069)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 12:23:48 +00:00
Jaakko Salli
9b5bafcf38 Removed dysfunctional wxPGPropery::PrepareValueForDialogEditing(); Replaced its functionality with wxPropertyGrid::GetPendingEditedValue(); Added wxPropertyGrid::PerformValidation() flags so it can be called in generic context.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 18:15:10 +00:00
Jaakko Salli
ea5af9c535 Fix RCS-IDs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 18:03:43 +00:00
Jaakko Salli
9e6bebdcac Tweaked wxPGProperty::StringToValue() and IntToValue() docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 17:11:00 +00:00
Jaakko Salli
d8c74d044b Use m_children as it were std::vector
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 15:13:00 +00:00
Jaakko Salli
f7a094e1af Converted various wxArrayPtrVoids to wxVectors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 17:23:27 +00:00
Jaakko Salli
b96a14e334 Removed wxPGProperty:GetArrIndex() in favor of GetIndexInParent()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:04:11 +00:00
Jaakko Salli
0d6e0565c6 Removed redundant wxPGChoices::Set()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:02:46 +00:00
Jaakko Salli
47ea393a24 Removed redundant wxPGProperty::SetChoices()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:00:49 +00:00
Jaakko Salli
bb6720bb9e Document revisioning (including more wx-like formatting and internal function removal)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-23 17:37:27 +00:00
Jaakko Salli
40924780ea Remove doc references to 'common value' (which is unfinished feature)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-23 15:35:32 +00:00
Jaakko Salli
939d936402 Moved wxPGChoices m_choices member from various property classes to base wxPGProperty. This allows any property to have choices without subclassing and therefore work with Choice and ComboBox editors. Also removed redundant choice manipulation functions from wxPropertyGridinterface (ie. now use ones in wxPGProperty).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 16:57:33 +00:00
Jaakko Salli
573cdf43af Removed wxPGProperty class overview docs from actual header file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:15:36 +00:00
Jaakko Salli
15cbcd00da Fixed typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:11:49 +00:00
Jaakko Salli
e999688506 Removed unused commented-out define
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:09:29 +00:00
Jaakko Salli
5b69ffcb68 Removed #ifndef DOXYGEN
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:08:22 +00:00
Jaakko Salli
f4bc1aa27c wxUSE_PROPGRID is now recognized by source and header files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 15:00:00 +00:00
Jaakko Salli
0372d42ea5 Eliminated C++ RTTI (typeid etc) use. Eliminated wxPGVariantData (default default value for new types is now Null variant). Re-created variantdata creator macros based on those found in variant.h. Using DECLARE/IMPLEMENT_VARIANT_OBJECT whenever possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 15:55:53 +00:00
Jaakko Salli
d665918bd2 wxVariant list used to translate between list of property child values and composite value string now maps values by names instead of labels. Naturally this means properties can no longer have empty name (this change allows using identical labels under same parent property. Ported from wxpropgrid SVN trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 13:14:32 +00:00
Vadim Zeitlin
99774d589d check the item index inside Item() itself instead of checking it inside some callers of this function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 00:04:23 +00:00
Vadim Zeitlin
1c4293cb91 added wxPropertyGrid from Jaakko Salli (#9934)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-12 20:57:41 +00:00