move wxKEY_XXX constants to wx/defs.h from wx/list.h and wx/hash.h to avoid duplicating their declarations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-26 02:15:24 +00:00
parent 4ff9366dc1
commit 248d0a8970
2 changed files with 10 additions and 16 deletions

View File

@@ -1695,6 +1695,16 @@ enum wxBackgroundStyle
wxBG_STYLE_CUSTOM wxBG_STYLE_CUSTOM
}; };
/*
* Key types used by (old style) lists and hashes.
*/
enum wxKeyType
{
wxKEY_NONE,
wxKEY_INTEGER,
wxKEY_STRING
};
/* ---------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------- */
/* standard IDs */ /* standard IDs */
/* ---------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------- */

View File

@@ -60,22 +60,6 @@ typedef wxObjectListNode wxNode;
// //
typedef int (* LINKAGEMODE wxListIterateFunction)(void *current); typedef int (* LINKAGEMODE wxListIterateFunction)(void *current);
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
#if !defined(wxENUM_KEY_TYPE_DEFINED)
#define wxENUM_KEY_TYPE_DEFINED
enum wxKeyType
{
wxKEY_NONE,
wxKEY_INTEGER,
wxKEY_STRING
};
#endif
#if wxUSE_STL #if wxUSE_STL
#define wxLIST_COMPATIBILITY #define wxLIST_COMPATIBILITY