From 0c8392cac2d36d0d211432e71d3b24d3d93c22db Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 8 Aug 2003 21:23:33 +0000 Subject: [PATCH] Added wxRTTI for the new wxVScrolledWindow, wxVListBox, and wxHtmlListBox classes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/htmllbox.h | 1 + include/wx/vlbox.h | 3 ++- include/wx/vscroll.h | 1 + src/generic/htmllbox.cpp | 3 +++ src/generic/vlbox.cpp | 2 ++ src/generic/vscroll.cpp | 2 ++ 6 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/wx/htmllbox.h b/include/wx/htmllbox.h index 49405b94b9..f61360bc53 100644 --- a/include/wx/htmllbox.h +++ b/include/wx/htmllbox.h @@ -25,6 +25,7 @@ class WXDLLIMPEXP_HTML wxHtmlListBoxStyle; class WXDLLIMPEXP_HTML wxHtmlListBox : public wxVListBox { + DECLARE_ABSTRACT_CLASS(wxHtmlListBox) public: // constructors and such // --------------------- diff --git a/include/wx/vlbox.h b/include/wx/vlbox.h index 6b30ac122e..dde8cbf7ca 100644 --- a/include/wx/vlbox.h +++ b/include/wx/vlbox.h @@ -214,7 +214,7 @@ protected: // we implement OnGetLineHeight() in terms of OnMeasureItem() because this // allows us to add borders to the items easily // - // this function is not upposed to be overridden by the derived classes + // this function is not supposed to be overridden by the derived classes virtual wxCoord OnGetLineHeight(size_t line) const; @@ -278,6 +278,7 @@ private: DECLARE_EVENT_TABLE() DECLARE_NO_COPY_CLASS(wxVListBox) + DECLARE_ABSTRACT_CLASS(wxVListBox) }; #endif // _WX_VLBOX_H_ diff --git a/include/wx/vscroll.h b/include/wx/vscroll.h index eb2185bb1c..38f3a9a615 100644 --- a/include/wx/vscroll.h +++ b/include/wx/vscroll.h @@ -196,6 +196,7 @@ private: DECLARE_EVENT_TABLE() DECLARE_NO_COPY_CLASS(wxVScrolledWindow) + DECLARE_ABSTRACT_CLASS(wxVScrolledWindow) }; #endif // _WX_VSCROLL_H_ diff --git a/src/generic/htmllbox.cpp b/src/generic/htmllbox.cpp index 0c5578c11a..0970e8ef91 100644 --- a/src/generic/htmllbox.cpp +++ b/src/generic/htmllbox.cpp @@ -161,6 +161,9 @@ END_EVENT_TABLE() // implementation // ============================================================================ +IMPLEMENT_ABSTRACT_CLASS(wxHtmlListBox, wxVListBox) + + // ---------------------------------------------------------------------------- // wxHtmlListBox creation // ---------------------------------------------------------------------------- diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index fedb4496a4..df023053a3 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -48,6 +48,8 @@ END_EVENT_TABLE() // implementation // ============================================================================ +IMPLEMENT_ABSTRACT_CLASS(wxVListBox, wxVScrolledWindow) + // ---------------------------------------------------------------------------- // wxVListBox creation // ---------------------------------------------------------------------------- diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index fa8bf24b05..abe374f694 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -44,6 +44,8 @@ END_EVENT_TABLE() // implementation // ============================================================================ +IMPLEMENT_ABSTRACT_CLASS(wxVScrolledWindow, wxPanel) + // ---------------------------------------------------------------------------- // initialization // ---------------------------------------------------------------------------- -- 2.45.2