little tweaks to match recent CVS changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-07-06 21:01:33 +00:00
parent d447660794
commit 705b61cce0
5 changed files with 38 additions and 6 deletions

View File

@@ -114,7 +114,8 @@
%rename(SHUTDOWN_REBOOT) wxSHUTDOWN_REBOOT;
%rename(Shutdown) wxShutdown;
%rename(Sleep) wxSleep;
%rename(Usleep) wxUsleep;
%rename(MilliSleep) wxMilliSleep;
%rename(MicroSleep) wxMicroSleep;
%rename(EnableTopLevelWindows) wxEnableTopLevelWindows;
%rename(StripMenuCodes) wxStripMenuCodes;
%rename(GetEmailAddress) wxGetEmailAddress;

View File

@@ -80,7 +80,10 @@ bool wxShutdown(wxShutdownFlags wFlags);
void wxSleep(int secs);
void wxUsleep(unsigned long milliseconds);
void wxMilliSleep(unsigned long milliseconds);
void wxMicroSleep(unsigned long microseconds);
%pythoncode { Usleep = MilliSleep }
void wxEnableTopLevelWindows(bool enable);
wxString wxStripMenuCodes(const wxString& in);

View File

@@ -178,7 +178,7 @@ public:
// sends a size event to the window using its current size -- this has an
// effect of refreshing the window layout
//
virtual void SendSizeEvent() { }
virtual void SendSizeEvent();
// menu bar functions
@@ -286,8 +286,8 @@ public:
// the modal dialogs have a return code - usually the id of the last
// pressed button
void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
int GetReturnCode() const { return m_returnCode; }
void SetReturnCode(int returnCode);
int GetReturnCode() const;
// splits text up at newlines and places the
// lines into a vertical wxBoxSizer
@@ -311,6 +311,11 @@ public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
%pythoncode {
def SendSizeEvent(self):
self.ProcessEvent(wx.SizeEvent((-1,-1)))
}
};
//---------------------------------------------------------------------------

View File

@@ -874,6 +874,28 @@ not navigate to the next control.");
DocDeclStr(
void , MoveAfterInTabOrder(wxWindow *win),
"Moves this window in the tab navigation order after the specified
sibling window. This means that when the user presses the TAB key on
that other window, the focus switches to this window.
The default tab order is the same as creation order. This function
and `MoveBeforeInTabOrder` allow to change it after creating all the
windows.
", "");
DocDeclStr(
void , MoveBeforeInTabOrder(wxWindow *win),
"Same as `MoveAfterInTabOrder` except that it inserts this window just
before win instead of putting it right after it.", "");
// parent/children relations

View File

@@ -146,7 +146,8 @@ wxSHUTDOWN_POWEROFF = wx._misc.SHUTDOWN_POWEROFF
wxSHUTDOWN_REBOOT = wx._misc.SHUTDOWN_REBOOT
wxShutdown = wx._misc.Shutdown
wxSleep = wx._misc.Sleep
wxUsleep = wx._misc.Usleep
wxMilliSleep = wx._misc.MilliSleep
wxMicroSleep = wx._misc.MicroSleep
wxEnableTopLevelWindows = wx._misc.EnableTopLevelWindows
wxStripMenuCodes = wx._misc.StripMenuCodes
wxGetEmailAddress = wx._misc.GetEmailAddress