#if wxUSE_RADIOBOX
+#include "wx/radiobox.h"
+
#ifndef WX_PRECOMP
#include "wx/bitmap.h"
#include "wx/brush.h"
- #include "wx/radiobox.h"
#include "wx/settings.h"
#include "wx/log.h"
+ #include "wx/radiobut.h"
#endif
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#endif // wxUSE_TOOLTIPS
-#include "wx/radiobut.h"
-
// TODO: wxCONSTRUCTOR
#if 0 // wxUSE_EXTENDED_RTTI
WX_DEFINE_FLAGS( wxRadioBoxStyle )
m_size = wxSize(0,0);
}
-int wxRadioBox::GetCount() const
+unsigned int wxRadioBox::GetCount() const
{
return m_radios.GetCount();
}
return false;
int i = 0;
- for ( int j = 0; j < minor; j++ )
+ for ( unsigned int j = 0; j < minor; j++ )
{
- for ( int k = 0; k < GetMajorDim(); k++ )
+ for ( unsigned int k = 0; k < GetMajorDim(); k++ )
{
if(i<n)
{
const bool use_cols = HasFlag(wxRA_SPECIFY_COLS);
- const int n = GetCount();
- int minor = n / GetMajorDim();
+ const unsigned int n = GetCount();
+ unsigned int minor = n / GetMajorDim();
if(n % GetMajorDim() > 0)
minor++;
- int i = 0;
- for ( int j = 0; j < minor; j++ )
+ unsigned int i = 0;
+ for ( unsigned int j = 0; j < minor; j++ )
{
- for ( int k = 0; k < GetMajorDim(); k++ )
+ for ( unsigned int k = 0; k < GetMajorDim(); k++ )
{
if(i<n)
{
return GetPosition();
}
-void wxRadioBox::SetString(int item, const wxString& label)
+void wxRadioBox::SetString(unsigned int item, const wxString& label)
{
wxRadioButton *btn = GetRadioButton(item);
if(btn)
}
// Find string for position
-wxString wxRadioBox::GetString(int item) const
+wxString wxRadioBox::GetString(unsigned int item) const
{
wxRadioButton *btn = GetRadioButton(item);
if(btn)
// Enable all subcontrols
bool wxRadioBox::Enable(bool enable)
{
- for(int i=0; i<GetCount(); i++)
+ for(unsigned int i=0; i<GetCount(); i++)
Enable(i, enable);
return true;
}
// Enable a specific button
-bool wxRadioBox::Enable(int item, bool enable)
+bool wxRadioBox::Enable(unsigned int item, bool enable)
{
wxRadioButton *btn = GetRadioButton(item);
if(btn)
bool wxRadioBox::Show(bool show)
{
- for(int i=0; i<GetCount(); i++)
+ for(unsigned int i=0; i<GetCount(); i++)
Show(i, show);
return true;
}
// Show a specific button
-bool wxRadioBox::Show(int item, bool show)
+bool wxRadioBox::Show(unsigned int item, bool show)
{
wxRadioButton *btn = GetRadioButton(item);
if(btn)