git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2173
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int wxSpinButton::GetMin() const
{
int wxSpinButton::GetMin() const
{
- wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+ wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
return (int)ceil(m_adjust->lower);
}
int wxSpinButton::GetMax() const
{
return (int)ceil(m_adjust->lower);
}
int wxSpinButton::GetMax() const
{
- wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+ wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
return (int)ceil(m_adjust->upper);
}
int wxSpinButton::GetValue() const
{
return (int)ceil(m_adjust->upper);
}
int wxSpinButton::GetValue() const
{
- wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+ wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
return (int)ceil(m_adjust->value);
}
void wxSpinButton::SetValue( int value )
{
return (int)ceil(m_adjust->value);
}
void wxSpinButton::SetValue( int value )
{
- wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+ wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
float fpos = (float)value;
m_oldPos = fpos;
float fpos = (float)value;
m_oldPos = fpos;
void wxSpinButton::SetRange(int minVal, int maxVal)
{
void wxSpinButton::SetRange(int minVal, int maxVal)
{
- wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+ wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
float fmin = (float)minVal;
float fmax = (float)maxVal;
float fmin = (float)minVal;
float fmax = (float)maxVal;
void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
{
void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
{
- wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+ wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
m_width = 16;
gtk_widget_set_usize( m_widget, m_width, m_height );
m_width = 16;
gtk_widget_set_usize( m_widget, m_width, m_height );
wxScrollEvent(commandType, id)
{
}
wxScrollEvent(commandType, id)
{
}
- m_widget = gtk_frame_new(m_label);
+ m_widget = gtk_frame_new(m_label.mbc_str());
m_parent->AddChild( this );
m_parent->AddChild( this );
{
wxControl::SetLabel( label );
GtkFrame *frame = GTK_FRAME( m_widget );
{
wxControl::SetLabel( label );
GtkFrame *frame = GTK_FRAME( m_widget );
- gtk_frame_set_label( frame, GetLabel() );
+ gtk_frame_set_label( frame, GetLabel().mbc_str() );
}
void wxStaticBox::ApplyWidgetStyle()
}
void wxStaticBox::ApplyWidgetStyle()
SetWidgetStyle();
gtk_widget_set_style( m_widget, m_widgetStyle );
}
SetWidgetStyle();
gtk_widget_set_style( m_widget, m_widgetStyle );
}
// because the label is not yet created and because SetLabel() has a side
// effect of changing the control size which might not be desirable
wxControl::SetLabel(label);
// because the label is not yet created and because SetLabel() has a side
// effect of changing the control size which might not be desirable
wxControl::SetLabel(label);
- m_widget = gtk_label_new( m_label );
+ m_widget = gtk_label_new( m_label.mbc_str() );
GtkJustification justify;
if ( style & wxALIGN_CENTER )
GtkJustification justify;
if ( style & wxALIGN_CENTER )
{
wxControl::SetLabel(label);
{
wxControl::SetLabel(label);
- gtk_label_set( GTK_LABEL(m_widget), m_label );
+ gtk_label_set( GTK_LABEL(m_widget), m_label.mbc_str() );
// adjust the label size to the new label
// adjust the label size to the new label
int wxSpinButton::GetMin() const
{
int wxSpinButton::GetMin() const
{
- wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+ wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
return (int)ceil(m_adjust->lower);
}
int wxSpinButton::GetMax() const
{
return (int)ceil(m_adjust->lower);
}
int wxSpinButton::GetMax() const
{
- wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+ wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
return (int)ceil(m_adjust->upper);
}
int wxSpinButton::GetValue() const
{
return (int)ceil(m_adjust->upper);
}
int wxSpinButton::GetValue() const
{
- wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+ wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
return (int)ceil(m_adjust->value);
}
void wxSpinButton::SetValue( int value )
{
return (int)ceil(m_adjust->value);
}
void wxSpinButton::SetValue( int value )
{
- wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+ wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
float fpos = (float)value;
m_oldPos = fpos;
float fpos = (float)value;
m_oldPos = fpos;
void wxSpinButton::SetRange(int minVal, int maxVal)
{
void wxSpinButton::SetRange(int minVal, int maxVal)
{
- wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+ wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
float fmin = (float)minVal;
float fmax = (float)maxVal;
float fmin = (float)minVal;
float fmax = (float)maxVal;
void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
{
void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
{
- wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+ wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
m_width = 16;
gtk_widget_set_usize( m_widget, m_width, m_height );
m_width = 16;
gtk_widget_set_usize( m_widget, m_width, m_height );
wxScrollEvent(commandType, id)
{
}
wxScrollEvent(commandType, id)
{
}
- m_widget = gtk_frame_new(m_label);
+ m_widget = gtk_frame_new(m_label.mbc_str());
m_parent->AddChild( this );
m_parent->AddChild( this );
{
wxControl::SetLabel( label );
GtkFrame *frame = GTK_FRAME( m_widget );
{
wxControl::SetLabel( label );
GtkFrame *frame = GTK_FRAME( m_widget );
- gtk_frame_set_label( frame, GetLabel() );
+ gtk_frame_set_label( frame, GetLabel().mbc_str() );
}
void wxStaticBox::ApplyWidgetStyle()
}
void wxStaticBox::ApplyWidgetStyle()
SetWidgetStyle();
gtk_widget_set_style( m_widget, m_widgetStyle );
}
SetWidgetStyle();
gtk_widget_set_style( m_widget, m_widgetStyle );
}
// because the label is not yet created and because SetLabel() has a side
// effect of changing the control size which might not be desirable
wxControl::SetLabel(label);
// because the label is not yet created and because SetLabel() has a side
// effect of changing the control size which might not be desirable
wxControl::SetLabel(label);
- m_widget = gtk_label_new( m_label );
+ m_widget = gtk_label_new( m_label.mbc_str() );
GtkJustification justify;
if ( style & wxALIGN_CENTER )
GtkJustification justify;
if ( style & wxALIGN_CENTER )
{
wxControl::SetLabel(label);
{
wxControl::SetLabel(label);
- gtk_label_set( GTK_LABEL(m_widget), m_label );
+ gtk_label_set( GTK_LABEL(m_widget), m_label.mbc_str() );
// adjust the label size to the new label
// adjust the label size to the new label