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:
@@ -2476,6 +2476,7 @@ class WXDLLIMPEXP_FWD_CORE wxScrollBar;
|
||||
#define wxSTC_DEPRECATED_MACRO_VALUE(value,msg) value
|
||||
#endif
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
// 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, \
|
||||
"wxSTC_SCVS_NOWRAPLINESTART is deprecated. Use wxSTC_VS_NOWRAPLINESTART instead.")
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Commands that can be bound to keystrokes section {{{
|
||||
@@ -5397,13 +5399,13 @@ public:
|
||||
|
||||
// methods deprecated due to changes in the scintilla library
|
||||
// ---------------------------------------------
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxDEPRECATED_MSG("use UsePopUp(int) instead.")
|
||||
void UsePopUp(bool allowPopUp);
|
||||
|
||||
wxDEPRECATED_MSG("use StartStyling(int start) instead.")
|
||||
void StartStyling(int start, int unused);
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
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_SAVEPOINTLEFT, 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." ) \
|
||||
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_UPDATEUI, 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_PAINTED, 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." ) \
|
||||
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_DWELLEND, 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_SAVEPOINTLEFT,
|
||||
wxEVT_STC_ROMODIFYATTEMPT,
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_KEY, // deprecated
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_DOUBLECLICK,
|
||||
wxEVT_STC_UPDATEUI,
|
||||
wxEVT_STC_MODIFIED,
|
||||
@@ -5645,7 +5653,9 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGIN_RIGHT_CLICK, wxStyle
|
||||
wxEVT_STC_NEEDSHOWN,
|
||||
wxEVT_STC_PAINTED,
|
||||
wxEVT_STC_USERLISTSELECTION,
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_URIDROPPED, // deprecated
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_DWELLSTART,
|
||||
wxEVT_STC_DWELLEND,
|
||||
wxEVT_STC_START_DRAG,
|
||||
|
@@ -5147,6 +5147,7 @@ void wxStyledTextCtrl::AppendTextRaw(const char* text, int length)
|
||||
SendMsg(SCI_APPENDTEXT, length, (sptr_t)text);
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
// Deprecated since Scintilla 3.7.2
|
||||
void wxStyledTextCtrl::UsePopUp(bool allowPopUp)
|
||||
{
|
||||
@@ -5160,6 +5161,7 @@ void wxStyledTextCtrl::StartStyling(int start, int unused)
|
||||
|
||||
SendMsg(SCI_STARTSTYLING, start, unused);
|
||||
}
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Event handlers
|
||||
|
@@ -662,6 +662,7 @@ void wxStyledTextCtrl::AppendTextRaw(const char* text, int length)
|
||||
SendMsg(SCI_APPENDTEXT, length, (sptr_t)text);
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
// Deprecated since Scintilla 3.7.2
|
||||
void wxStyledTextCtrl::UsePopUp(bool allowPopUp)
|
||||
{
|
||||
@@ -675,6 +676,7 @@ void wxStyledTextCtrl::StartStyling(int start, int unused)
|
||||
|
||||
SendMsg(SCI_STARTSTYLING, start, unused);
|
||||
}
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Event handlers
|
||||
|
@@ -72,6 +72,7 @@ class WXDLLIMPEXP_FWD_CORE wxScrollBar;
|
||||
#define wxSTC_DEPRECATED_MACRO_VALUE(value,msg) value
|
||||
#endif
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
// 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, \
|
||||
"wxSTC_SCVS_NOWRAPLINESTART is deprecated. Use wxSTC_VS_NOWRAPLINESTART instead.")
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Commands that can be bound to keystrokes section {{{
|
||||
@@ -520,13 +522,13 @@ public:
|
||||
|
||||
// methods deprecated due to changes in the scintilla library
|
||||
// ---------------------------------------------
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxDEPRECATED_MSG("use UsePopUp(int) instead.")
|
||||
void UsePopUp(bool allowPopUp);
|
||||
|
||||
wxDEPRECATED_MSG("use StartStyling(int start) instead.")
|
||||
void StartStyling(int start, int unused);
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
|
||||
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_SAVEPOINTLEFT, 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." ) \
|
||||
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_UPDATEUI, 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_PAINTED, 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." ) \
|
||||
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_DWELLEND, 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_SAVEPOINTLEFT,
|
||||
wxEVT_STC_ROMODIFYATTEMPT,
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_KEY, // deprecated
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_DOUBLECLICK,
|
||||
wxEVT_STC_UPDATEUI,
|
||||
wxEVT_STC_MODIFIED,
|
||||
@@ -768,7 +776,9 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGIN_RIGHT_CLICK, wxStyle
|
||||
wxEVT_STC_NEEDSHOWN,
|
||||
wxEVT_STC_PAINTED,
|
||||
wxEVT_STC_USERLISTSELECTION,
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_URIDROPPED, // deprecated
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
wxEVT_STC_DWELLSTART,
|
||||
wxEVT_STC_DWELLEND,
|
||||
wxEVT_STC_START_DRAG,
|
||||
|
Reference in New Issue
Block a user