mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Remove obsolete DLG_ENTRY_FLOAT and DLG_ENTRY_INT
This commit is contained in:
parent
422cd9d40f
commit
7bf02bca91
2 changed files with 0 additions and 17 deletions
|
@ -119,7 +119,6 @@ void Dialog::AddModalButton( GtkWidget *widget, int ret ) {
|
||||||
void Dialog::UpdateData( bool retrieve ){
|
void Dialog::UpdateData( bool retrieve ){
|
||||||
DLG_DATA *data;
|
DLG_DATA *data;
|
||||||
GSList *lst;
|
GSList *lst;
|
||||||
char buf[32];
|
|
||||||
|
|
||||||
if ( retrieve ) {
|
if ( retrieve ) {
|
||||||
for ( lst = m_pDataList; lst != NULL; lst = g_slist_next( lst ) )
|
for ( lst = m_pDataList; lst != NULL; lst = g_slist_next( lst ) )
|
||||||
|
@ -151,12 +150,6 @@ void Dialog::UpdateData( bool retrieve ){
|
||||||
txt = gtk_entry_get_text( GTK_ENTRY( data->object ) );
|
txt = gtk_entry_get_text( GTK_ENTRY( data->object ) );
|
||||||
*str = txt;
|
*str = txt;
|
||||||
} break;
|
} break;
|
||||||
case DLG_ENTRY_FLOAT:
|
|
||||||
*(float*)data->buffer = atof( gtk_entry_get_text( GTK_ENTRY( data->object ) ) );
|
|
||||||
break;
|
|
||||||
case DLG_ENTRY_INT:
|
|
||||||
*(int*)data->buffer = atoi( gtk_entry_get_text( GTK_ENTRY( data->object ) ) );
|
|
||||||
break;
|
|
||||||
case DLG_SPIN_FLOAT:
|
case DLG_SPIN_FLOAT:
|
||||||
*(float*)data->buffer = gtk_spin_button_get_value( GTK_SPIN_BUTTON( data->object ) );
|
*(float*)data->buffer = gtk_spin_button_get_value( GTK_SPIN_BUTTON( data->object ) );
|
||||||
break;
|
break;
|
||||||
|
@ -198,14 +191,6 @@ void Dialog::UpdateData( bool retrieve ){
|
||||||
const char *txt = str->GetBuffer();
|
const char *txt = str->GetBuffer();
|
||||||
gtk_entry_set_text( GTK_ENTRY( data->object ), txt );
|
gtk_entry_set_text( GTK_ENTRY( data->object ), txt );
|
||||||
} break;
|
} break;
|
||||||
case DLG_ENTRY_FLOAT:
|
|
||||||
sprintf( buf, "%g", ( *(float*)data->buffer ) );
|
|
||||||
gtk_entry_set_text( GTK_ENTRY( data->object ), buf );
|
|
||||||
break;
|
|
||||||
case DLG_ENTRY_INT:
|
|
||||||
sprintf( buf, "%d", ( *(int*)data->buffer ) );
|
|
||||||
gtk_entry_set_text( GTK_ENTRY( data->object ), buf );
|
|
||||||
break;
|
|
||||||
case DLG_SPIN_FLOAT:
|
case DLG_SPIN_FLOAT:
|
||||||
gtk_spin_button_set_value( GTK_SPIN_BUTTON( data->object ), ( *(float*)data->buffer ) );
|
gtk_spin_button_set_value( GTK_SPIN_BUTTON( data->object ), ( *(float*)data->buffer ) );
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -31,8 +31,6 @@ typedef enum
|
||||||
DLG_CHECK_BOOL,
|
DLG_CHECK_BOOL,
|
||||||
DLG_RADIO_INT,
|
DLG_RADIO_INT,
|
||||||
DLG_ENTRY_TEXT,
|
DLG_ENTRY_TEXT,
|
||||||
DLG_ENTRY_FLOAT,
|
|
||||||
DLG_ENTRY_INT,
|
|
||||||
DLG_SPIN_FLOAT,
|
DLG_SPIN_FLOAT,
|
||||||
DLG_SPIN_INT,
|
DLG_SPIN_INT,
|
||||||
DLG_ADJ_INT,
|
DLG_ADJ_INT,
|
||||||
|
|
Loading…
Reference in a new issue