Schedule deprecated wxSTC constants and functions for removal in the future

Insert recently deprecated wxSTC elements in WXWIN_COMPATIBILITY_3_0 blocks
to mark them for removal in a future wx version.
This commit is contained in:
Artur Wieczorek 2017-05-01 13:35:36 +02:00
parent 365f8e6f37
commit e4a1e9a27f
4 changed files with 28 additions and 4 deletions

View File

@ -2476,6 +2476,7 @@ class WXDLLIMPEXP_FWD_CORE wxScrollBar;
#define wxSTC_DEPRECATED_MACRO_VALUE(value,msg) value #define wxSTC_DEPRECATED_MACRO_VALUE(value,msg) value
#endif #endif
#if WXWIN_COMPATIBILITY_3_0
// The wxSTC_INDIC{0,1,2,S}_MASK values are no longer used in Scintilla // The wxSTC_INDIC{0,1,2,S}_MASK values are no longer used in Scintilla
@ -2525,6 +2526,7 @@ class WXDLLIMPEXP_FWD_CORE wxScrollBar;
#define wxSTC_SCVS_NOWRAPLINESTART wxSTC_DEPRECATED_MACRO_VALUE(4, \ #define wxSTC_SCVS_NOWRAPLINESTART wxSTC_DEPRECATED_MACRO_VALUE(4, \
"wxSTC_SCVS_NOWRAPLINESTART is deprecated. Use wxSTC_VS_NOWRAPLINESTART instead.") "wxSTC_SCVS_NOWRAPLINESTART is deprecated. Use wxSTC_VS_NOWRAPLINESTART instead.")
#endif // WXWIN_COMPATIBILITY_3_0
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Commands that can be bound to keystrokes section {{{ // Commands that can be bound to keystrokes section {{{
@ -5397,13 +5399,13 @@ public:
// methods deprecated due to changes in the scintilla library // methods deprecated due to changes in the scintilla library
// --------------------------------------------- // ---------------------------------------------
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG("use UsePopUp(int) instead.") wxDEPRECATED_MSG("use UsePopUp(int) instead.")
void UsePopUp(bool allowPopUp); void UsePopUp(bool allowPopUp);
wxDEPRECATED_MSG("use StartStyling(int start) instead.") wxDEPRECATED_MSG("use StartStyling(int start) instead.")
void StartStyling(int start, int unused); void StartStyling(int start, int unused);
#endif // WXWIN_COMPATIBILITY_3_0
static wxVersionInfo GetLibraryVersionInfo(); static wxVersionInfo GetLibraryVersionInfo();
@ -5596,8 +5598,10 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CHARADDED, wxStyledTextEven
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, wxStyledTextEvent );
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG( "Don't handle wxEVT_STC_KEY. It's never generated." ) \ wxDEPRECATED_MSG( "Don't handle wxEVT_STC_KEY. It's never generated." ) \
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_KEY, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_KEY, wxStyledTextEvent );
#endif // WXWIN_COMPATIBILITY_3_0
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, wxStyledTextEvent );
@ -5606,8 +5610,10 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGINCLICK, wxStyledTextEv
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, wxStyledTextEvent );
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG( "Don't handle wxEVT_STC_URIDROPPED. It's never generated." ) \ wxDEPRECATED_MSG( "Don't handle wxEVT_STC_URIDROPPED. It's never generated." ) \
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, wxStyledTextEvent );
#endif // WXWIN_COMPATIBILITY_3_0
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, wxStyledTextEvent );
@ -5636,7 +5642,9 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGIN_RIGHT_CLICK, wxStyle
wxEVT_STC_SAVEPOINTREACHED, wxEVT_STC_SAVEPOINTREACHED,
wxEVT_STC_SAVEPOINTLEFT, wxEVT_STC_SAVEPOINTLEFT,
wxEVT_STC_ROMODIFYATTEMPT, wxEVT_STC_ROMODIFYATTEMPT,
#if WXWIN_COMPATIBILITY_3_0
wxEVT_STC_KEY, // deprecated wxEVT_STC_KEY, // deprecated
#endif // WXWIN_COMPATIBILITY_3_0
wxEVT_STC_DOUBLECLICK, wxEVT_STC_DOUBLECLICK,
wxEVT_STC_UPDATEUI, wxEVT_STC_UPDATEUI,
wxEVT_STC_MODIFIED, wxEVT_STC_MODIFIED,
@ -5645,7 +5653,9 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGIN_RIGHT_CLICK, wxStyle
wxEVT_STC_NEEDSHOWN, wxEVT_STC_NEEDSHOWN,
wxEVT_STC_PAINTED, wxEVT_STC_PAINTED,
wxEVT_STC_USERLISTSELECTION, wxEVT_STC_USERLISTSELECTION,
#if WXWIN_COMPATIBILITY_3_0
wxEVT_STC_URIDROPPED, // deprecated wxEVT_STC_URIDROPPED, // deprecated
#endif // WXWIN_COMPATIBILITY_3_0
wxEVT_STC_DWELLSTART, wxEVT_STC_DWELLSTART,
wxEVT_STC_DWELLEND, wxEVT_STC_DWELLEND,
wxEVT_STC_START_DRAG, wxEVT_STC_START_DRAG,

View File

@ -5147,6 +5147,7 @@ void wxStyledTextCtrl::AppendTextRaw(const char* text, int length)
SendMsg(SCI_APPENDTEXT, length, (sptr_t)text); SendMsg(SCI_APPENDTEXT, length, (sptr_t)text);
} }
#if WXWIN_COMPATIBILITY_3_0
// Deprecated since Scintilla 3.7.2 // Deprecated since Scintilla 3.7.2
void wxStyledTextCtrl::UsePopUp(bool allowPopUp) void wxStyledTextCtrl::UsePopUp(bool allowPopUp)
{ {
@ -5160,6 +5161,7 @@ void wxStyledTextCtrl::StartStyling(int start, int unused)
SendMsg(SCI_STARTSTYLING, start, unused); SendMsg(SCI_STARTSTYLING, start, unused);
} }
#endif // WXWIN_COMPATIBILITY_3_0
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Event handlers // Event handlers

View File

@ -662,6 +662,7 @@ void wxStyledTextCtrl::AppendTextRaw(const char* text, int length)
SendMsg(SCI_APPENDTEXT, length, (sptr_t)text); SendMsg(SCI_APPENDTEXT, length, (sptr_t)text);
} }
#if WXWIN_COMPATIBILITY_3_0
// Deprecated since Scintilla 3.7.2 // Deprecated since Scintilla 3.7.2
void wxStyledTextCtrl::UsePopUp(bool allowPopUp) void wxStyledTextCtrl::UsePopUp(bool allowPopUp)
{ {
@ -675,6 +676,7 @@ void wxStyledTextCtrl::StartStyling(int start, int unused)
SendMsg(SCI_STARTSTYLING, start, unused); SendMsg(SCI_STARTSTYLING, start, unused);
} }
#endif // WXWIN_COMPATIBILITY_3_0
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Event handlers // Event handlers

View File

@ -72,6 +72,7 @@ class WXDLLIMPEXP_FWD_CORE wxScrollBar;
#define wxSTC_DEPRECATED_MACRO_VALUE(value,msg) value #define wxSTC_DEPRECATED_MACRO_VALUE(value,msg) value
#endif #endif
#if WXWIN_COMPATIBILITY_3_0
// The wxSTC_INDIC{0,1,2,S}_MASK values are no longer used in Scintilla // The wxSTC_INDIC{0,1,2,S}_MASK values are no longer used in Scintilla
@ -121,6 +122,7 @@ class WXDLLIMPEXP_FWD_CORE wxScrollBar;
#define wxSTC_SCVS_NOWRAPLINESTART wxSTC_DEPRECATED_MACRO_VALUE(4, \ #define wxSTC_SCVS_NOWRAPLINESTART wxSTC_DEPRECATED_MACRO_VALUE(4, \
"wxSTC_SCVS_NOWRAPLINESTART is deprecated. Use wxSTC_VS_NOWRAPLINESTART instead.") "wxSTC_SCVS_NOWRAPLINESTART is deprecated. Use wxSTC_VS_NOWRAPLINESTART instead.")
#endif // WXWIN_COMPATIBILITY_3_0
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Commands that can be bound to keystrokes section {{{ // Commands that can be bound to keystrokes section {{{
@ -520,13 +522,13 @@ public:
// methods deprecated due to changes in the scintilla library // methods deprecated due to changes in the scintilla library
// --------------------------------------------- // ---------------------------------------------
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG("use UsePopUp(int) instead.") wxDEPRECATED_MSG("use UsePopUp(int) instead.")
void UsePopUp(bool allowPopUp); void UsePopUp(bool allowPopUp);
wxDEPRECATED_MSG("use StartStyling(int start) instead.") wxDEPRECATED_MSG("use StartStyling(int start) instead.")
void StartStyling(int start, int unused); void StartStyling(int start, int unused);
#endif // WXWIN_COMPATIBILITY_3_0
static wxVersionInfo GetLibraryVersionInfo(); static wxVersionInfo GetLibraryVersionInfo();
@ -719,8 +721,10 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CHARADDED, wxStyledTextEven
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, wxStyledTextEvent );
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG( "Don't handle wxEVT_STC_KEY. It's never generated." ) \ wxDEPRECATED_MSG( "Don't handle wxEVT_STC_KEY. It's never generated." ) \
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_KEY, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_KEY, wxStyledTextEvent );
#endif // WXWIN_COMPATIBILITY_3_0
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, wxStyledTextEvent );
@ -729,8 +733,10 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGINCLICK, wxStyledTextEv
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, wxStyledTextEvent );
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG( "Don't handle wxEVT_STC_URIDROPPED. It's never generated." ) \ wxDEPRECATED_MSG( "Don't handle wxEVT_STC_URIDROPPED. It's never generated." ) \
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, wxStyledTextEvent );
#endif // WXWIN_COMPATIBILITY_3_0
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, wxStyledTextEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, wxStyledTextEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, wxStyledTextEvent );
@ -759,7 +765,9 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGIN_RIGHT_CLICK, wxStyle
wxEVT_STC_SAVEPOINTREACHED, wxEVT_STC_SAVEPOINTREACHED,
wxEVT_STC_SAVEPOINTLEFT, wxEVT_STC_SAVEPOINTLEFT,
wxEVT_STC_ROMODIFYATTEMPT, wxEVT_STC_ROMODIFYATTEMPT,
#if WXWIN_COMPATIBILITY_3_0
wxEVT_STC_KEY, // deprecated wxEVT_STC_KEY, // deprecated
#endif // WXWIN_COMPATIBILITY_3_0
wxEVT_STC_DOUBLECLICK, wxEVT_STC_DOUBLECLICK,
wxEVT_STC_UPDATEUI, wxEVT_STC_UPDATEUI,
wxEVT_STC_MODIFIED, wxEVT_STC_MODIFIED,
@ -768,7 +776,9 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGIN_RIGHT_CLICK, wxStyle
wxEVT_STC_NEEDSHOWN, wxEVT_STC_NEEDSHOWN,
wxEVT_STC_PAINTED, wxEVT_STC_PAINTED,
wxEVT_STC_USERLISTSELECTION, wxEVT_STC_USERLISTSELECTION,
#if WXWIN_COMPATIBILITY_3_0
wxEVT_STC_URIDROPPED, // deprecated wxEVT_STC_URIDROPPED, // deprecated
#endif // WXWIN_COMPATIBILITY_3_0
wxEVT_STC_DWELLSTART, wxEVT_STC_DWELLSTART,
wxEVT_STC_DWELLEND, wxEVT_STC_DWELLEND,
wxEVT_STC_START_DRAG, wxEVT_STC_START_DRAG,