replaced by stubs files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,97 +1,119 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: choice.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created: 01/02/97
|
||||
// Id:
|
||||
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
|
||||
// Purpose: wxChoice
|
||||
// Author: AUTHOR
|
||||
// Modified by:
|
||||
// Created: ??/??/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) AUTHOR
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "choice.h"
|
||||
#endif
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/choice.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxChoice
|
||||
//-----------------------------------------------------------------------------
|
||||
#if !USE_SHARED_LIBRARY
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoice,wxControl)
|
||||
|
||||
wxChoice::wxChoice(void)
|
||||
bool wxChoice::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
int n, const wxString choices[],
|
||||
long style,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
};
|
||||
SetName(name);
|
||||
SetValidator(validator);
|
||||
m_noStrings = n;
|
||||
m_windowStyle = style;
|
||||
|
||||
wxChoice::wxChoice( wxWindow *parent, wxWindowID id,
|
||||
const wxPoint &pos, const wxSize &size,
|
||||
int n, const wxString choices[],
|
||||
long style, const wxString &name )
|
||||
{
|
||||
Create( parent, id, pos, size, n, choices, style, name );
|
||||
};
|
||||
if (parent) parent->AddChild(this);
|
||||
|
||||
bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
||||
const wxPoint &pos, const wxSize &size,
|
||||
int n, const wxString choices[],
|
||||
long style, const wxString &name )
|
||||
{
|
||||
return TRUE;
|
||||
};
|
||||
|
||||
void wxChoice::Append( const wxString &WXUNUSED(item) )
|
||||
{
|
||||
};
|
||||
|
||||
void wxChoice::Clear(void)
|
||||
{
|
||||
};
|
||||
if ( id == -1 )
|
||||
m_windowId = (int)NewControlId();
|
||||
else
|
||||
m_windowId = id;
|
||||
|
||||
int wxChoice::FindString( const wxString &WXUNUSED(string) ) const
|
||||
{
|
||||
return -1;
|
||||
};
|
||||
// TODO: create choice control
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int wxChoice::GetColumns(void) const
|
||||
void wxChoice::Append(const wxString& item)
|
||||
{
|
||||
return 1;
|
||||
};
|
||||
// TODO
|
||||
m_noStrings ++;
|
||||
}
|
||||
|
||||
int wxChoice::GetSelection(void)
|
||||
void wxChoice::Delete(int n)
|
||||
{
|
||||
return -1;
|
||||
};
|
||||
// TODO
|
||||
m_noStrings --;
|
||||
}
|
||||
|
||||
wxString wxChoice::GetString( int WXUNUSED(n) ) const
|
||||
void wxChoice::Clear()
|
||||
{
|
||||
return "";
|
||||
};
|
||||
// TODO
|
||||
m_noStrings = 0;
|
||||
}
|
||||
|
||||
wxString wxChoice::GetStringSelection(void) const
|
||||
int wxChoice::GetSelection() const
|
||||
{
|
||||
return "";
|
||||
};
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
int wxChoice::Number(void) const
|
||||
void wxChoice::SetSelection(int n)
|
||||
{
|
||||
return 0;
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxChoice::SetColumns( int WXUNUSED(n) )
|
||||
int wxChoice::FindString(const wxString& s) const
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wxChoice::SetSelection( int WXUNUSED(n) )
|
||||
wxString wxChoice::GetString(int n) const
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
return wxString("");
|
||||
}
|
||||
|
||||
void wxChoice::SetStringSelection( const wxString &string )
|
||||
void wxChoice::SetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
{
|
||||
int n = FindString( string );
|
||||
if (n != -1) SetSelection( n );
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
wxString wxChoice::GetStringSelection () const
|
||||
{
|
||||
int sel = GetSelection ();
|
||||
if (sel > -1)
|
||||
return wxString(this->GetString (sel));
|
||||
else
|
||||
return wxString("");
|
||||
}
|
||||
|
||||
bool wxChoice::SetStringSelection (const wxString& s)
|
||||
{
|
||||
int sel = FindString (s);
|
||||
if (sel > -1)
|
||||
{
|
||||
SetSelection (sel);
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void wxChoice::Command(wxCommandEvent & event)
|
||||
{
|
||||
SetSelection (event.GetInt());
|
||||
ProcessCommand (event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user