git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3170
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
~wxListBox();
virtual void Append(const wxString& item);
~wxListBox();
virtual void Append(const wxString& item);
- virtual void Append(const wxString& item, char *clientData);
- virtual void Set(int n, const wxString* choices, char **clientData = NULL);
+ virtual void Append(const wxString& item, void *clientData);
+ virtual void Set(int n, const wxString* choices, void **clientData = NULL);
virtual int FindString(const wxString& s) const ;
virtual void Clear();
virtual void SetSelection(int n, bool select = TRUE);
virtual int FindString(const wxString& s) const ;
virtual void Clear();
virtual void SetSelection(int n, bool select = TRUE);
// For single choice list item only
virtual int GetSelection() const ;
virtual void Delete(int n);
// For single choice list item only
virtual int GetSelection() const ;
virtual void Delete(int n);
- virtual char *GetClientData(int n) const ;
+ virtual void *GetClientData(int n) const ;
virtual void *GetClientData() { return wxWindow::GetClientData(); }
virtual void *GetClientData() { return wxWindow::GetClientData(); }
- virtual void SetClientData(int n, char *clientData);
+ virtual void SetClientData(int n, void *clientData);
virtual void SetClientData( void *data ) { wxWindow::SetClientData(data); }
virtual void SetString(int n, const wxString& s);
virtual void SetClientData( void *data ) { wxWindow::SetClientData(data); }
virtual void SetString(int n, const wxString& s);
WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
// Single-line text item
WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
// Single-line text item
-class WXDLLEXPORT wxTextCtrl : public wxControl
+class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase
{
DECLARE_DYNAMIC_CLASS(wxTextCtrl)
{
DECLARE_DYNAMIC_CLASS(wxTextCtrl)
virtual bool IsModified() const;
virtual long XYToPosition(long x, long y) const;
virtual bool IsModified() const;
virtual long XYToPosition(long x, long y) const;
- virtual void PositionToXY(long pos, long *x, long *y) const;
+ virtual bool PositionToXY(long pos, long *x, long *y) const;
virtual void ShowPosition(long pos);
virtual void Clear();
virtual void ShowPosition(long pos);
virtual void Clear();
void wxListMainWindow::EditLabel( long item )
{
wxNode *node = m_lines.Nth( item );
void wxListMainWindow::EditLabel( long item )
{
wxNode *node = m_lines.Nth( item );
- wxCHECK_MSG( node, (wxTextCtrl *)NULL, _T("wrong index in wxListCtrl::Edit()") );
+ wxCHECK_RET( node, _T("wrong index in wxListCtrl::Edit()") );
m_currentEdit = (wxListLineData*) node->Data();
m_currentEdit = (wxListLineData*) node->Data();
// Purpose: GSocket: Motif part
// CVSID: $Id$
// -------------------------------------------------------------------------
// Purpose: GSocket: Motif part
// CVSID: $Id$
// -------------------------------------------------------------------------
+
+#include "wx/setup.h"
+
+#if wxUSE_SOCKETS
+
#include <stdlib.h>
#include <X11/Intrinsic.h>
#include <wx/gsocket.h>
#include <stdlib.h>
#include <X11/Intrinsic.h>
#include <wx/gsocket.h>
void GSocket_DoEvent(unsigned long evt_id)
{
}
void GSocket_DoEvent(unsigned long evt_id)
{
}
+
+#endif // wxUSE_SOCKETS
-void wxListBox::Append(const wxString& item, char *clientData)
+void wxListBox::Append(const wxString& item, void *clientData)
{
int width1, height1;
int width2, height2;
{
int width1, height1;
int width2, height2;
-void wxListBox::Set(int n, const wxString *choices, char** clientData)
+void wxListBox::Set(int n, const wxString *choices, void** clientData)
{
m_clientDataList.Clear();
int width1, height1;
{
m_clientDataList.Clear();
int width1, height1;
XmListDeselectPos ((Widget) m_mainWidget, N + 1);
}
XmListDeselectPos ((Widget) m_mainWidget, N + 1);
}
-char *wxListBox::GetClientData(int N) const
+void *wxListBox::GetClientData(int N) const
{
wxNode *node = m_clientDataList.Find ((long) N);
if (node)
{
wxNode *node = m_clientDataList.Find ((long) N);
if (node)
- return (char *) node->Data ();
+ return (void *) node->Data ();
-void wxListBox::SetClientData(int N, char *Client_data)
+void wxListBox::SetClientData(int N, void *Client_data)
{
wxNode *node = m_clientDataList.Find ((long) N);
if (node)
{
wxNode *node = m_clientDataList.Find ((long) N);
if (node)
-void wxTextCtrl::PositionToXY(long pos, long *x, long *y) const
+bool wxTextCtrl::PositionToXY(long pos, long *x, long *y) const
{
Position xx, yy;
XmTextPosToXY((Widget) m_mainWidget, pos, &xx, &yy);
{
Position xx, yy;
XmTextPosToXY((Widget) m_mainWidget, pos, &xx, &yy);
+ if ( x )
+ *x = xx;
+ if ( y )
+ *y = yy;
+
+ return TRUE;
}
void wxTextCtrl::ShowPosition(long pos)
}
void wxTextCtrl::ShowPosition(long pos)
{
wxCHECK_MSG( parent, FALSE, "can't create wxWindow without parent" );
{
wxCHECK_MSG( parent, FALSE, "can't create wxWindow without parent" );
- CreateBase(parent, id, pos, size, style, name);
+ CreateBase(parent, id, pos, size, style, wxDefaultValidator, name);
* -------------------------------------------------------------------------
*/
* -------------------------------------------------------------------------
*/
+#include "wx/setup.h"
+
+#if wxUSE_SOCKETS
+
#include <assert.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <assert.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include "wx/gsocket.h"
#include "gsockunx.h"
#include "wx/gsocket.h"
#include "gsockunx.h"
+
+#endif // wxUSE_SOCKETS