Use enum instead of macros to represent wxPropertyGrid::DoSelectProperty flags.

This commit is contained in:
Artur Wieczorek
2015-07-16 21:04:25 +02:00
parent 4588acb21b
commit 403dd5673f

View File

@@ -591,27 +591,28 @@ enum wxPG_KEYBOARD_ACTIONS
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// wxPropertyGrid::DoSelectProperty flags (selFlags) // wxPropertyGrid::DoSelectProperty flags (selFlags)
enum wxPG_SELECT_PROPERTY_FLAGS
{
// Focuses to created editor // Focuses to created editor
#define wxPG_SEL_FOCUS 0x0001 wxPG_SEL_FOCUS = 0x0001,
// Forces deletion and recreation of editor // Forces deletion and recreation of editor
#define wxPG_SEL_FORCE 0x0002 wxPG_SEL_FORCE = 0x0002,
// For example, doesn't cause EnsureVisible // For example, doesn't cause EnsureVisible
#define wxPG_SEL_NONVISIBLE 0x0004 wxPG_SEL_NONVISIBLE = 0x0004,
// Do not validate editor's value before selecting // Do not validate editor's value before selecting
#define wxPG_SEL_NOVALIDATE 0x0008 wxPG_SEL_NOVALIDATE = 0x0008,
// Property being deselected is about to be deleted // Property being deselected is about to be deleted
#define wxPG_SEL_DELETING 0x0010 wxPG_SEL_DELETING = 0x0010,
// Property's values was set to unspecified by the user // Property's values was set to unspecified by the user
#define wxPG_SEL_SETUNSPEC 0x0020 wxPG_SEL_SETUNSPEC = 0x0020,
// Property's event handler changed the value // Property's event handler changed the value
#define wxPG_SEL_DIALOGVAL 0x0040 wxPG_SEL_DIALOGVAL = 0x0040,
// Set to disable sending of wxEVT_PG_SELECTED event // Set to disable sending of wxEVT_PG_SELECTED event
#define wxPG_SEL_DONT_SEND_EVENT 0x0080 wxPG_SEL_DONT_SEND_EVENT = 0x0080,
// Don't make any graphics updates // Don't make any graphics updates
#define wxPG_SEL_NO_REFRESH 0x0100 wxPG_SEL_NO_REFRESH = 0x0100
};
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------