make wxChoice and wxListBox inherit from wxControlWithItems and not wxControl for all ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#import <Foundation/NSNotification.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase)
|
||||
END_EVENT_TABLE()
|
||||
// WX_IMPLEMENT_COCOA_OWNER(wxChoice,NSButton,NSControl,NSView)
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#import <AppKit/NSTableView.h>
|
||||
#import <AppKit/NSTableColumn.h>
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase)
|
||||
END_EVENT_TABLE()
|
||||
WX_IMPLEMENT_COCOA_OWNER(wxListBox,NSTableView,NSControl,NSView)
|
||||
|
@@ -70,7 +70,7 @@ static void gtk_choice_clicked_callback( GtkWidget *WXUNUSED(widget), wxChoice *
|
||||
// wxChoice
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice,wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
|
||||
wxChoice::wxChoice()
|
||||
{
|
||||
|
@@ -272,7 +272,7 @@ static gboolean gtk_listbox_searchequal_callback(GtkTreeModel* model,
|
||||
// wxListBox
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// construction
|
||||
|
@@ -86,7 +86,7 @@ static void gtk_choice_clicked_callback( GtkWidget *WXUNUSED(widget), wxChoice *
|
||||
// wxChoice
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice,wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
|
||||
wxChoice::wxChoice()
|
||||
{
|
||||
|
@@ -450,7 +450,7 @@ gtk_listbox_realized_callback( GtkWidget *m_widget, wxListBox *win )
|
||||
// wxListBox
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox,wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// construction
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
extern MenuHandle NewUniqueMenu() ;
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
|
||||
|
||||
wxChoice::~wxChoice()
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include "wx/dcclient.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
|
||||
BEGIN_EVENT_TABLE(wxListBox, wxControl)
|
||||
END_EVENT_TABLE()
|
||||
|
@@ -43,7 +43,7 @@
|
||||
#define WIDTH_OVERHEAD_SUBTRACT 40
|
||||
#define HEIGHT_OVERHEAD 15
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
|
||||
void wxChoiceCallback (Widget w, XtPointer clientData,
|
||||
XtPointer ptr);
|
||||
|
@@ -38,7 +38,7 @@
|
||||
#endif
|
||||
#include "wx/motif/private.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
|
||||
static void wxListBoxCallback(Widget w,
|
||||
XtPointer clientData,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "wx/os2/private.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
|
||||
bool wxChoice::Create(
|
||||
wxWindow* pParent
|
||||
|
@@ -38,7 +38,7 @@
|
||||
#include "wx/ownerdrw.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
|
||||
// ============================================================================
|
||||
// list box item declaration and implementation
|
||||
|
@@ -85,7 +85,7 @@ wxEND_HANDLERS_TABLE()
|
||||
|
||||
wxCONSTRUCTOR_4( wxChoice , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size )
|
||||
#else
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
#endif
|
||||
|
||||
// ============================================================================
|
||||
|
@@ -95,7 +95,7 @@ wxEND_HANDLERS_TABLE()
|
||||
|
||||
wxCONSTRUCTOR_4( wxListBox , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size )
|
||||
#else
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
#endif
|
||||
|
||||
// ============================================================================
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#include "wx/arrstr.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
|
||||
|
||||
BEGIN_EVENT_TABLE(wxChoice, wxComboBox)
|
||||
EVT_COMBOBOX(wxID_ANY, wxChoice::OnComboBox)
|
||||
|
@@ -97,7 +97,7 @@ protected:
|
||||
// implementation of wxListBox
|
||||
// ============================================================================
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
|
||||
|
||||
BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase)
|
||||
EVT_SIZE(wxListBox::OnSize)
|
||||
|
Reference in New Issue
Block a user