make access for virtuals match base

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-10-26 06:20:23 +00:00
parent 326a863afc
commit 3c75d8baf9
16 changed files with 65 additions and 68 deletions

View File

@@ -66,9 +66,6 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr);
virtual void DoDeleteOneItem(unsigned int n);
virtual void DoClear();
virtual unsigned int GetCount() const;
virtual int GetSelection() const;
virtual int GetCurrentSelection() const;
@@ -92,6 +89,9 @@ protected:
// common part of all ctors
void Init() { m_lastAcceptedSelection = wxID_NONE; }
virtual void DoDeleteOneItem(unsigned int n);
virtual void DoClear();
virtual int DoInsertItems(const wxArrayStringsAdapter& items,
unsigned int pos,
void **clientData, wxClientDataType type);

View File

@@ -109,17 +109,13 @@ public:
void OnUpdateDelete(wxUpdateUIEvent& event);
void OnUpdateSelectAll(wxUpdateUIEvent& event);
protected:
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
protected:
#if wxUSE_TOOLTIPS
virtual void DoSetToolTip(wxToolTip *tip);
#endif
// this is the overridden wxTextEntry method which should only be called
// when we do have an edit control so it asserts if this is not the case
virtual WXHWND GetEditHWND() const;
// this is the implementation of GetEditHWND() which can also be used when
// we don't have the edit control, it simply returns NULL then
//
@@ -130,6 +126,10 @@ protected:
WXHWND GetEditHWNDIfAvailable() const;
private:
// this is the overridden wxTextEntry method which should only be called
// when we do have an edit control so it asserts if this is not the case
virtual WXHWND GetEditHWND() const;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxComboBox)
DECLARE_EVENT_TABLE()
};

View File

@@ -71,10 +71,10 @@ public:
// default style for the control include WS_TABSTOP if it AcceptsFocus()
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
protected:
// choose the default border for this window
virtual wxBorder GetDefaultBorder() const;
protected:
// return default best size (doesn't really make any sense, override this)
virtual wxSize DoGetBestSize() const;

View File

@@ -77,10 +77,6 @@ public:
virtual ~wxListBox();
// implement base class pure virtuals
virtual void DoClear();
virtual void DoDeleteOneItem(unsigned int n);
virtual unsigned int GetCount() const;
virtual wxString GetString(unsigned int n) const;
virtual void SetString(unsigned int n, const wxString& s);
@@ -137,6 +133,9 @@ public:
virtual bool CanApplyThemeBorder() const { return false; }
protected:
virtual void DoClear();
virtual void DoDeleteOneItem(unsigned int n);
virtual void DoSetSelection(int n, bool select);
virtual int DoInsertItems(const wxArrayStringsAdapter& items,

View File

@@ -71,8 +71,6 @@ public:
// implement base class pure virtuals
// ----------------------------------
virtual bool DoLoadFile(const wxString& file, int fileType);
virtual bool IsModified() const;
virtual void MarkDirty();
virtual void DiscardEdits();
@@ -187,6 +185,8 @@ protected:
// common part of all ctors
void Init();
virtual bool DoLoadFile(const wxString& file, int fileType);
// creates the control of appropriate class (plain or rich edit) with the
// styles corresponding to m_windowStyle
//
@@ -198,10 +198,6 @@ protected:
virtual void DoSetValue(const wxString &value, int flags = 0);
// implement wxTextEntry pure virtual: it implements all the operations for
// the simple EDIT controls
virtual WXHWND GetEditHWND() const { return m_hWnd; }
// return true if this control has a user-set limit on amount of text (i.e.
// the limit is due to a previous call to SetMaxLength() and not built in)
bool HasSpaceLimit(unsigned int *len) const;
@@ -250,12 +246,16 @@ protected:
// text ourselves: we want this to be exactly 1
int m_updatesCount;
private:
virtual void EnableTextChangedEvents(bool enable)
{
m_updatesCount = enable ? -1 : -2;
}
private:
// implement wxTextEntry pure virtual: it implements all the operations for
// the simple EDIT controls
virtual WXHWND GetEditHWND() const { return m_hWnd; }
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTextCtrl)

View File

@@ -60,7 +60,6 @@ public:
virtual void Lower();
virtual bool Show( bool show = true );
virtual void DoEnable( bool enable );
virtual void SetFocus();
virtual void SetFocusFromKbd();
@@ -433,14 +432,6 @@ public:
// check if a native double-buffering applies for this window
virtual bool IsDoubleBuffered() const;
// this allows you to implement standard control borders without
// repeating the code in different classes that are not derived from
// wxControl
virtual wxBorder GetDefaultBorderForControl() const;
// choose the default border for this window
virtual wxBorder GetDefaultBorder() const;
// synthesize a wxEVT_LEAVE_WINDOW event and set m_mouseInWindow to false
void GenerateMouseLeave();
@@ -449,6 +440,13 @@ public:
virtual void OnInternalIdle();
protected:
// this allows you to implement standard control borders without
// repeating the code in different classes that are not derived from
// wxControl
virtual wxBorder GetDefaultBorderForControl() const;
// choose the default border for this window
virtual wxBorder GetDefaultBorder() const;
#if wxUSE_MENUS_NATIVE
virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
@@ -482,6 +480,8 @@ protected:
virtual void DoCaptureMouse();
virtual void DoReleaseMouse();
virtual void DoEnable(bool enable);
// this simply moves/resizes the given HWND which is supposed to be our
// sibling (this is useful for controls which are composite at MSW level
// and for which DoMoveWindow() is not enough)