added SetString(), deprecated SetLabel()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,16 +92,16 @@ static gint gtk_radiobox_keypress_callback( GtkWidget *widget, GdkEventKey *gdk_
|
||||
(gdk_event->keyval == GDK_Left))
|
||||
{
|
||||
if (node == rb->m_boxes.First())
|
||||
node = rb->m_boxes.Last();
|
||||
else
|
||||
node = node->Previous();
|
||||
node = rb->m_boxes.Last();
|
||||
else
|
||||
node = node->Previous();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (node == rb->m_boxes.Last())
|
||||
node = rb->m_boxes.First();
|
||||
else
|
||||
node = node->Next();
|
||||
node = rb->m_boxes.First();
|
||||
else
|
||||
node = node->Next();
|
||||
}
|
||||
|
||||
GtkWidget *button = (GtkWidget*) node->Data();
|
||||
@@ -526,7 +526,7 @@ void wxRadioBox::SetLabel( const wxString& label )
|
||||
gtk_frame_set_label( GTK_FRAME(m_widget), wxControl::GetLabel().mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
void wxRadioBox::SetString( int item, const wxString& label )
|
||||
{
|
||||
wxCHECK_RET( m_widget != NULL, wxT("invalid radiobox") );
|
||||
|
||||
@@ -540,11 +540,6 @@ void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
gtk_label_set( g_label, label.mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int WXUNUSED(item), wxBitmap *WXUNUSED(bitmap) )
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxRadioBox::SetLabel not implemented."));
|
||||
}
|
||||
|
||||
bool wxRadioBox::Enable( bool enable )
|
||||
{
|
||||
if ( !wxControl::Enable( enable ) )
|
||||
@@ -624,7 +619,7 @@ bool wxRadioBox::SetStringSelection( const wxString &s )
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int wxRadioBox::Number() const
|
||||
int wxRadioBox::GetCount() const
|
||||
{
|
||||
return m_boxes.Number();
|
||||
}
|
||||
@@ -647,7 +642,7 @@ void wxRadioBox::GtkDisableEvents()
|
||||
gtk_signal_disconnect_by_func( GTK_OBJECT(node->Data()),
|
||||
GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this );
|
||||
|
||||
node = node->Next();
|
||||
node = node->Next();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -659,7 +654,7 @@ void wxRadioBox::GtkEnableEvents()
|
||||
gtk_signal_connect( GTK_OBJECT(node->Data()), "clicked",
|
||||
GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this );
|
||||
|
||||
node = node->Next();
|
||||
node = node->Next();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -92,16 +92,16 @@ static gint gtk_radiobox_keypress_callback( GtkWidget *widget, GdkEventKey *gdk_
|
||||
(gdk_event->keyval == GDK_Left))
|
||||
{
|
||||
if (node == rb->m_boxes.First())
|
||||
node = rb->m_boxes.Last();
|
||||
else
|
||||
node = node->Previous();
|
||||
node = rb->m_boxes.Last();
|
||||
else
|
||||
node = node->Previous();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (node == rb->m_boxes.Last())
|
||||
node = rb->m_boxes.First();
|
||||
else
|
||||
node = node->Next();
|
||||
node = rb->m_boxes.First();
|
||||
else
|
||||
node = node->Next();
|
||||
}
|
||||
|
||||
GtkWidget *button = (GtkWidget*) node->Data();
|
||||
@@ -526,7 +526,7 @@ void wxRadioBox::SetLabel( const wxString& label )
|
||||
gtk_frame_set_label( GTK_FRAME(m_widget), wxControl::GetLabel().mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
void wxRadioBox::SetString( int item, const wxString& label )
|
||||
{
|
||||
wxCHECK_RET( m_widget != NULL, wxT("invalid radiobox") );
|
||||
|
||||
@@ -540,11 +540,6 @@ void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
gtk_label_set( g_label, label.mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int WXUNUSED(item), wxBitmap *WXUNUSED(bitmap) )
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxRadioBox::SetLabel not implemented."));
|
||||
}
|
||||
|
||||
bool wxRadioBox::Enable( bool enable )
|
||||
{
|
||||
if ( !wxControl::Enable( enable ) )
|
||||
@@ -624,7 +619,7 @@ bool wxRadioBox::SetStringSelection( const wxString &s )
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int wxRadioBox::Number() const
|
||||
int wxRadioBox::GetCount() const
|
||||
{
|
||||
return m_boxes.Number();
|
||||
}
|
||||
@@ -647,7 +642,7 @@ void wxRadioBox::GtkDisableEvents()
|
||||
gtk_signal_disconnect_by_func( GTK_OBJECT(node->Data()),
|
||||
GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this );
|
||||
|
||||
node = node->Next();
|
||||
node = node->Next();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -659,7 +654,7 @@ void wxRadioBox::GtkEnableEvents()
|
||||
gtk_signal_connect( GTK_OBJECT(node->Data()), "clicked",
|
||||
GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this );
|
||||
|
||||
node = node->Next();
|
||||
node = node->Next();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user