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