Wrap some deprecation wrappers around newly deprecated items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
%rename(GA_HORIZONTAL) wxGA_HORIZONTAL;
|
||||
%rename(GA_VERTICAL) wxGA_VERTICAL;
|
||||
%rename(GA_SMOOTH) wxGA_SMOOTH;
|
||||
%rename(GA_PROGRESSBAR) wxGA_PROGRESSBAR;
|
||||
%rename(Gauge) wxGauge;
|
||||
%rename(StaticBox) wxStaticBox;
|
||||
%rename(StaticLine) wxStaticLine;
|
||||
@@ -50,7 +49,6 @@
|
||||
%rename(TE_CHARWRAP) wxTE_CHARWRAP;
|
||||
%rename(TE_WORDWRAP) wxTE_WORDWRAP;
|
||||
%rename(TE_BESTWRAP) wxTE_BESTWRAP;
|
||||
%rename(TE_LINEWRAP) wxTE_LINEWRAP;
|
||||
%rename(TE_RICH2) wxTE_RICH2;
|
||||
%rename(TE_CAPITALIZE) wxTE_CAPITALIZE;
|
||||
%rename(TEXT_ALIGNMENT_DEFAULT) wxTEXT_ALIGNMENT_DEFAULT;
|
||||
@@ -111,6 +109,7 @@
|
||||
%rename(BK_LEFT) wxBK_LEFT;
|
||||
%rename(BK_RIGHT) wxBK_RIGHT;
|
||||
%rename(BK_ALIGN_MASK) wxBK_ALIGN_MASK;
|
||||
%rename(BK_BUTTONBAR) wxBK_BUTTONBAR;
|
||||
%rename(BookCtrlBase) wxBookCtrlBase;
|
||||
%rename(BookCtrlBaseEvent) wxBookCtrlBaseEvent;
|
||||
%rename(NB_FIXEDWIDTH) wxNB_FIXEDWIDTH;
|
||||
@@ -249,8 +248,6 @@
|
||||
%rename(TR_FULL_ROW_HIGHLIGHT) wxTR_FULL_ROW_HIGHLIGHT;
|
||||
%rename(TR_DEFAULT_STYLE) wxTR_DEFAULT_STYLE;
|
||||
%rename(TR_TWIST_BUTTONS) wxTR_TWIST_BUTTONS;
|
||||
%rename(TR_MAC_BUTTONS) wxTR_MAC_BUTTONS;
|
||||
%rename(TR_AQUA_BUTTONS) wxTR_AQUA_BUTTONS;
|
||||
%rename(TreeItemIcon_Normal) wxTreeItemIcon_Normal;
|
||||
%rename(TreeItemIcon_Selected) wxTreeItemIcon_Selected;
|
||||
%rename(TreeItemIcon_Expanded) wxTreeItemIcon_Expanded;
|
||||
|
@@ -52,7 +52,8 @@ MustHaveApp(wxEndBusyCursor);
|
||||
void wxEndBusyCursor();
|
||||
|
||||
long wxGetElapsedTime(bool resetTimer = true);
|
||||
|
||||
%pythoncode { GetElapsedTime = wx._deprecated(GetElapsedTime) }
|
||||
|
||||
bool wxIsBusy();
|
||||
wxString wxNow();
|
||||
bool wxShell(const wxString& command = wxPyEmptyString);
|
||||
|
@@ -23,8 +23,8 @@ enum {
|
||||
wxGA_HORIZONTAL,
|
||||
wxGA_VERTICAL,
|
||||
wxGA_SMOOTH,
|
||||
wxGA_PROGRESSBAR // obsolete
|
||||
};
|
||||
%pythoncode { GA_PROGRESSBAR = 0 %# obsolete }
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
@@ -558,9 +558,11 @@ public:
|
||||
|
||||
// get the horizontal and vertical components of the item spacing
|
||||
wxSize GetItemSpacing() const;
|
||||
%pythoncode { GetItemSpacing = wx._deprecated(GetItemSpacing) }
|
||||
|
||||
#ifndef __WXMSW__
|
||||
void SetItemSpacing( int spacing, bool isSmall = false );
|
||||
%pythoncode { SetItemSpacing = wx._deprecated(SetItemSpacing) }
|
||||
#endif
|
||||
|
||||
// Gets the number of selected items in the list control
|
||||
|
@@ -27,7 +27,8 @@ enum {
|
||||
wxBK_BOTTOM,
|
||||
wxBK_LEFT,
|
||||
wxBK_RIGHT,
|
||||
wxBK_ALIGN_MASK
|
||||
wxBK_ALIGN_MASK,
|
||||
wxBK_BUTTONBAR
|
||||
};
|
||||
|
||||
|
||||
@@ -106,10 +107,17 @@ public:
|
||||
// returns true if we have wxCHB_TOP or wxCHB_BOTTOM style
|
||||
bool IsVertical() const;
|
||||
|
||||
// Sets/gets the margin around the controller
|
||||
void SetControlMargin(int margin);
|
||||
int GetControlMargin() const;
|
||||
|
||||
// set/get option to shrink to fit current page
|
||||
void SetFitToCurrentPage(bool fit);
|
||||
bool GetFitToCurrentPage() const;
|
||||
|
||||
// returns the sizer containing the control, if any
|
||||
wxSizer* GetControlSizer() const;
|
||||
|
||||
|
||||
// remove one page from the control and delete it
|
||||
virtual bool DeletePage(size_t n);
|
||||
|
@@ -61,9 +61,6 @@ enum {
|
||||
wxTE_WORDWRAP,
|
||||
wxTE_BESTWRAP,
|
||||
|
||||
// obsolete synonym
|
||||
wxTE_LINEWRAP,
|
||||
|
||||
// force using RichEdit version 2.0 or 3.0 instead of 1.0 (default) for
|
||||
// wxTE_RICH controls - can be used together with or instead of wxTE_RICH
|
||||
wxTE_RICH2,
|
||||
@@ -71,6 +68,9 @@ enum {
|
||||
wxTE_CAPITALIZE,
|
||||
};
|
||||
|
||||
%pythoncode { TE_LINEWRAP = TE_CHARWRAP }
|
||||
|
||||
|
||||
|
||||
enum wxTextAttrAlignment
|
||||
{
|
||||
|
@@ -46,10 +46,13 @@ enum {
|
||||
wxTR_DEFAULT_STYLE,
|
||||
|
||||
wxTR_TWIST_BUTTONS,
|
||||
wxTR_MAC_BUTTONS,
|
||||
wxTR_AQUA_BUTTONS,
|
||||
};
|
||||
|
||||
%pythoncode {
|
||||
%# obsolete
|
||||
TR_MAC_BUTTONS = 0
|
||||
wxTR_AQUA_BUTTONS = 0
|
||||
}
|
||||
|
||||
enum wxTreeItemIcon
|
||||
{
|
||||
|
Reference in New Issue
Block a user