Make wxPGProperty an abstract class

wxPGProperty is intended to be only a base class for property classes and therefore shouldn't be instantiated directly.
This commit is contained in:
Artur Wieczorek
2019-06-24 23:17:33 +02:00
parent 315ff49136
commit 8c0a210a75
3 changed files with 46 additions and 41 deletions

View File

@@ -979,14 +979,6 @@ class WXDLLIMPEXP_PROPGRID wxPGProperty : public wxObject
public:
typedef wxUint32 FlagType;
// Default constructor.
wxPGProperty();
// Constructor.
// All non-abstract property classes should have a constructor with
// the same first two arguments as this one.
wxPGProperty( const wxString& label, const wxString& name );
// Virtual destructor.
// It is customary for derived properties to implement this.
virtual ~wxPGProperty();
@@ -1897,6 +1889,13 @@ public:
protected:
// Ctors are ptotected because wxPGProperty is only a base class
// for all property classes and shouldn't be instantiated directly.
wxPGProperty();
// All non-abstract property classes should have a constructor with
// the same first two arguments as this one.
wxPGProperty(const wxString& label, const wxString& name);
// Sets property cell in fashion that reduces number of exclusive
// copies of cell data. Used when setting, for instance, same
// background colour for a number of properties.