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,133 +1,194 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: radiobox.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created: 01/02/97
|
||||
// Id:
|
||||
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
|
||||
// Purpose: wxRadioBox
|
||||
// Author: AUTHOR
|
||||
// Modified by:
|
||||
// Created: ??/??/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) AUTHOR
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "radiobox.h"
|
||||
#endif
|
||||
|
||||
#include "wx/radiobox.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/frame.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// data
|
||||
//-----------------------------------------------------------------------------
|
||||
#if !USE_SHARED_LIBRARY
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
|
||||
#endif
|
||||
|
||||
extern bool g_blockEventsOnDrag;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox,wxControl)
|
||||
|
||||
wxRadioBox::wxRadioBox(void)
|
||||
// Radio box item
|
||||
wxRadioBox::wxRadioBox()
|
||||
{
|
||||
};
|
||||
m_selectedButton = -1;
|
||||
m_noItems = 0;
|
||||
m_noRowsOrCols = 0;
|
||||
m_majorDim = 0 ;
|
||||
}
|
||||
|
||||
wxRadioBox::wxRadioBox( wxWindow *parent, wxWindowID id, const wxString& title,
|
||||
const wxPoint &pos, const wxSize &size,
|
||||
int n, const wxString choices[],
|
||||
int majorDim, long style,
|
||||
const wxString &name )
|
||||
bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
int n, const wxString choices[],
|
||||
int majorDim, long style,
|
||||
const wxValidator& val, const wxString& name)
|
||||
{
|
||||
Create( parent, id, title, pos, size, n, choices, majorDim, style, name );
|
||||
};
|
||||
m_selectedButton = -1;
|
||||
m_noItems = n;
|
||||
|
||||
bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
|
||||
const wxPoint &pos, const wxSize &size,
|
||||
int n, const wxString choices[],
|
||||
int WXUNUSED(majorDim), long style,
|
||||
const wxString &name )
|
||||
SetName(name);
|
||||
SetValidator(val);
|
||||
|
||||
parent->AddChild(this);
|
||||
|
||||
m_windowStyle = (long&)style;
|
||||
|
||||
if (id == -1)
|
||||
m_windowId = NewControlId();
|
||||
else
|
||||
m_windowId = id;
|
||||
|
||||
m_noRowsOrCols = majorDim;
|
||||
|
||||
if (majorDim==0)
|
||||
m_majorDim = n ;
|
||||
else
|
||||
m_majorDim = majorDim ;
|
||||
|
||||
|
||||
// TODO create radiobox
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
wxRadioBox::~wxRadioBox()
|
||||
{
|
||||
return TRUE;
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
bool wxRadioBox::Show( bool show )
|
||||
wxString wxRadioBox::GetLabel(int item) const
|
||||
{
|
||||
wxWindow::Show( show );
|
||||
return TRUE;
|
||||
};
|
||||
// TODO
|
||||
return wxString("");
|
||||
}
|
||||
|
||||
int wxRadioBox::FindString( const wxString &s ) const
|
||||
void wxRadioBox::SetLabel(int item, const wxString& label)
|
||||
{
|
||||
return -1;
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxRadioBox::SetSelection( int n )
|
||||
int wxRadioBox::FindString(const wxString& s) const
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
return -1;
|
||||
}
|
||||
|
||||
int wxRadioBox::GetSelection(void) const
|
||||
void wxRadioBox::SetSelection(int n)
|
||||
{
|
||||
return -1;
|
||||
};
|
||||
if ((n < 0) || (n >= m_noItems))
|
||||
return;
|
||||
// TODO
|
||||
|
||||
wxString wxRadioBox::GetString( int n ) const
|
||||
m_selectedButton = n;
|
||||
}
|
||||
|
||||
// Get single selection, for single choice list items
|
||||
int wxRadioBox::GetSelection() const
|
||||
{
|
||||
};
|
||||
return m_selectedButton;
|
||||
}
|
||||
|
||||
wxString wxRadioBox::GetLabel(void) const
|
||||
// Find string for position
|
||||
wxString wxRadioBox::GetString(int n) const
|
||||
{
|
||||
return wxControl::GetLabel();
|
||||
};
|
||||
// TODO
|
||||
return wxString("");
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( const wxString& WXUNUSED(label) )
|
||||
void wxRadioBox::SetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int WXUNUSED(item), const wxString& WXUNUSED(label) )
|
||||
void wxRadioBox::GetSize(int *width, int *height) const
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int WXUNUSED(item), wxBitmap *WXUNUSED(bitmap) )
|
||||
void wxRadioBox::GetPosition(int *x, int *y) const
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
wxString wxRadioBox::GetLabel( int WXUNUSED(item) ) const
|
||||
wxString wxRadioBox::GetLabel() const
|
||||
{
|
||||
return "";
|
||||
};
|
||||
// TODO
|
||||
return wxString("");
|
||||
}
|
||||
|
||||
void wxRadioBox::Enable( bool WXUNUSED(enable) )
|
||||
void wxRadioBox::SetLabel(const wxString& label)
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxRadioBox::Enable( int WXUNUSED(item), bool WXUNUSED(enable) )
|
||||
void wxRadioBox::SetFocus()
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxRadioBox::Show( int WXUNUSED(item), bool WXUNUSED(show) )
|
||||
bool wxRadioBox::Show(bool show)
|
||||
{
|
||||
};
|
||||
// TODO
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
wxString wxRadioBox::GetStringSelection(void) const
|
||||
// Enable a specific button
|
||||
void wxRadioBox::Enable(int item, bool enable)
|
||||
{
|
||||
return "";
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
bool wxRadioBox::SetStringSelection( const wxString&s )
|
||||
// Enable all controls
|
||||
void wxRadioBox::Enable(bool enable)
|
||||
{
|
||||
return TRUE;
|
||||
};
|
||||
wxControl::Enable(enable);
|
||||
|
||||
int wxRadioBox::Number(void) const
|
||||
// TODO
|
||||
}
|
||||
|
||||
// Show a specific button
|
||||
void wxRadioBox::Show(int item, bool show)
|
||||
{
|
||||
return 0;
|
||||
};
|
||||
// TODO
|
||||
}
|
||||
|
||||
int wxRadioBox::GetNumberOfRowsOrCols(void) const
|
||||
// For single selection items only
|
||||
wxString wxRadioBox::GetStringSelection () const
|
||||
{
|
||||
return 1;
|
||||
};
|
||||
int sel = GetSelection ();
|
||||
if (sel > -1)
|
||||
return this->GetString (sel);
|
||||
else
|
||||
return wxString("");
|
||||
}
|
||||
|
||||
void wxRadioBox::SetNumberOfRowsOrCols( int WXUNUSED(n) )
|
||||
bool wxRadioBox::SetStringSelection (const wxString& s)
|
||||
{
|
||||
};
|
||||
int sel = FindString (s);
|
||||
if (sel > -1)
|
||||
{
|
||||
SetSelection (sel);
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void wxRadioBox::Command (wxCommandEvent & event)
|
||||
{
|
||||
SetSelection (event.m_commandInt);
|
||||
ProcessCommand (event);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user