Various little tweaks to get up to date with CVS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-07-29 21:49:25 +00:00
parent b253fb5cea
commit 6aaca5bac6
10 changed files with 72 additions and 23 deletions

View File

@ -52,8 +52,7 @@ if 'wxMSW' in PlatformInfo:
import wx._core
__docfilter__ = wx._core.__DocFilter(globals())
__all__ += [name for name in dir(wx._core)
if not (name.startswith('__') and name.endswith('__'))]
__all__ += [name for name in dir(wx._core) if not name.startswith('_')]

View File

@ -201,6 +201,7 @@ enum {
wxFD_FILE_MUST_EXIST,
wxFD_MULTIPLE,
wxFD_CHANGE_DIR,
wxFD_PREVIEW,
wxFD_DEFAULT_STYLE,
};
@ -458,7 +459,7 @@ public:
DocDeclStr(
int , GetSelection(),
"Get the index of teh currently selected item.", "");
"Get the index of the currently selected item.", "");
DocDeclStr(
wxString , GetStringSelection(),

View File

@ -67,6 +67,22 @@ __init__ as a plain old wx.Control is not very useful.", "");
"Do the 2nd phase and create the GUI control.", "");
DocDeclStr(
int , GetAlignment() const,
"Get the control alignment (left/right/centre, top/bottom/centre)", "");
DocDeclStr(
static wxString , GetLabelText(const wxString& label),
"Get the string without mnemonic characters ('&')", "");
DocDeclStr(
wxString , GetLabelText() const,
"Get just the text of the label, without mnemonic characters ('&')", "");
DocDeclStr(
void , Command(wxCommandEvent& event),
"Simulates the effect of the user issuing a command to the item.

View File

@ -599,6 +599,8 @@ enum {
wxID_HELP_COMMANDS,
wxID_HELP_PROCEDURES,
wxID_HELP_CONTEXT,
wxID_HELP_INDEX,
wxID_HELP_SEARCH,
wxID_CLOSE_ALL,
wxID_PREFERENCES,

View File

@ -176,6 +176,11 @@ than the corresponding dimensions of the size.", "");
"Decrements this object so that both of its dimensions are not greater
than the corresponding dimensions of the size.", "");
DocDeclStr(
void , Scale(float xscale, float yscale),
"Scales the dimensions of this object by the given factors.", "");
DocDeclStr(
void, Set(int w, int h),
"Set both width and height.", "");

View File

@ -106,6 +106,13 @@ public:
// current is NULL?
static void DontCreateOnDemand();
// log the count of repeating messages instead of logging the messages
// multiple times
static void SetRepetitionCounting(bool bRepetCounting = true);
// gets duplicate counting status
static bool GetRepetitionCounting();
// trace mask (see wxTraceXXX constants for details)
static void SetTraceMask(wxTraceMask ulMask);

View File

@ -68,6 +68,16 @@ The value passed to this function must be >= 1.", "");
int , GetTextCtrlProportion() const,
"Returns the proportion between the text control and the picker.", "");
DocDeclStr(
void , SetPickerCtrlProportion(int prop),
"Sets the proportion value of the picker.", "");
DocDeclStr(
int , GetPickerCtrlProportion() const,
"Gets the proportion value of the picker.", "");
DocDeclStr(
bool , IsTextCtrlGrowable() const,
"", "");

View File

@ -174,6 +174,25 @@ public:
virtual bool SetTransparent(byte alpha);
virtual bool CanSetTransparent();
DocDeclStr(
virtual wxWindow *, GetDefaultItem() const,
"Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.", "");
DocDeclStr(
virtual wxWindow *, SetDefaultItem(wxWindow * child),
"Set this child as default, return the old default.", "");
DocDeclStr(
virtual void , SetTmpDefaultItem(wxWindow * win),
"Set this child as temporary default", "");
DocDeclStr(
virtual wxWindow *, GetTmpDefaultItem() const,
"Return the temporary default item, which can be None.", "");
};

View File

@ -862,25 +862,6 @@ it.", "");
DocDeclStr(
virtual wxWindow *, GetDefaultItem() const,
"Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.", "");
DocDeclStr(
virtual wxWindow *, SetDefaultItem(wxWindow * child),
"Set this child as default, return the old default.", "");
DocDeclStr(
virtual void , SetTmpDefaultItem(wxWindow * win),
"Set this child as temporary default", "");
DocDeclStr(
virtual wxWindow *, GetTmpDefaultItem() const,
"Return the temporary default item, which can be None.", "");
DocDeclAStr(
virtual bool , Navigate(int flags = wxNavigationKeyEvent::IsForward),
@ -1626,7 +1607,10 @@ mouse cursor will be used.", "");
bool PopupMenu(wxMenu *menu, const wxPoint& pos=wxDefaultPosition);
DocDeclStr(
virtual bool , HasMultiplePages() const,
"", "");
%extend {
DocStr(GetHandle,

View File

@ -1804,6 +1804,12 @@ public:
wxString GetRowLabelValue( int row );
wxString GetColLabelValue( int col );
wxColour GetGridLineColour();
virtual wxPen GetDefaultGridLinePen();
virtual wxPen GetRowGridLinePen(int row);
virtual wxPen GetColGridLinePen(int col);
wxColour GetCellHighlightColour();
int GetCellHighlightPenWidth();
int GetCellHighlightROPenWidth();