Use enum instead of macro to represent flag used in wxPGPropertyGridInterface and wxPGProperty methods.

Use enums to represent all flags.
This commit is contained in:
Artur Wieczorek
2016-07-08 19:47:24 +02:00
parent 4f1e3b7172
commit 04ba48e685

View File

@@ -319,6 +319,8 @@ WX_DEFINE_TYPEARRAY_WITH_DECL_PTR(wxObject*, wxArrayPGObject,
enum wxPG_GETPROPERTYVALUES_FLAGS enum wxPG_GETPROPERTYVALUES_FLAGS
{ {
/** Flags for wxPropertyGrid::SetPropertyAttribute() etc */
wxPG_DONT_RECURSE = 0x00000000,
/** Flags for wxPropertyGridInterface::GetPropertyValues */ /** Flags for wxPropertyGridInterface::GetPropertyValues */
wxPG_KEEP_STRUCTURE = 0x00000010, wxPG_KEEP_STRUCTURE = 0x00000010,
@@ -339,12 +341,8 @@ wxPG_FORCE = 0x00000100,
Sorting done by wxPG_AUTO_SORT option uses this. Sorting done by wxPG_AUTO_SORT option uses this.
*/ */
wxPG_SORT_TOP_LEVEL_ONLY = 0x00000200 wxPG_SORT_TOP_LEVEL_ONLY = 0x00000200
}; };
/** Flags for wxPropertyGrid::SetPropertyAttribute() etc */
#define wxPG_DONT_RECURSE 0x00000000
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// Misc. argument flags. // Misc. argument flags.