//TODO set min size ? done with spaces right now
hbox.pack_start(m_pFileLabel, TRUE, TRUE, 5 );
- gtk_widget_show( m_pFileLabel );
+ m_pFileLabel.show();
w = ui::Button( "Browse..." );
w.connect( "clicked", G_CALLBACK( browse_callback ), ( gpointer ) this );
hbox.pack_start(w, FALSE, FALSE, 5 );
gtk_tooltips_set_tip( pTooltips, w, "Select a file", NULL );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Reload" );
w.connect( "clicked", G_CALLBACK( reload_callback ), ( gpointer ) this );
// gtk_widget_set_sensitive(w,FALSE);
gtk_tooltips_set_tip( pTooltips, w, "Reload current file", NULL );
hbox.pack_start(w, FALSE, FALSE, 5 );
- gtk_widget_show( w );
+ w.show();
- gtk_widget_show( hbox );
- gtk_widget_show( frame );
+ hbox.show();
+ frame.show();
// second row (rendering options)
frame = ui::Frame( "Rendering" );
w = ui::Label( "Vertex alpha:" );
hbox.pack_start(w, FALSE, FALSE, 5 );
- gtk_widget_show( w );
+ w.show();
w = ui::HScale( 0.0, 1.0, 0.01 );
gtk_range_set_value( GTK_RANGE( w ),0.5 );
w.connect( "value-changed", G_CALLBACK( alpha_adjust_callback ), ( gpointer ) this );
hbox.pack_start(w, TRUE, TRUE, 5 );
gtk_tooltips_set_tip( pTooltips, w, "Set image transparancy", NULL );
- gtk_widget_show( w );
+ w.show();
- gtk_widget_show( hbox );
- gtk_widget_show( frame );
+ hbox.show();
+ frame.show();
// Third row (size and position)
frame = ui::Frame( "Size/Position (undefined)" );
m_pPosLabel = gtk_frame_get_label_widget( GTK_FRAME( frame ) );
hbox.pack_start(w, TRUE, FALSE, 5 );
w.connect( "clicked", G_CALLBACK( size_sel_callback ), ( gpointer ) this );
gtk_tooltips_set_tip( pTooltips, w, "Set the size of the image to the bounding rectangle of all selected brushes and entities", NULL );
- gtk_widget_show( w );
+ w.show();
if ( m_vt == XY ) {
w = ui::Button( "from map mins/maxs" );
hbox.pack_start(w, TRUE, FALSE, 2 );
w.connect( "clicked", G_CALLBACK( size_mm_callback ), ( gpointer ) this );
gtk_tooltips_set_tip( pTooltips, w, "Set the size of the image using the mapcoordsmins and mapcoordsmaxs keys of the worldspawn entity", NULL );
- gtk_widget_show( w );
+ w.show();
}
- gtk_widget_show( hbox );
- gtk_widget_show( frame );
+ hbox.show();
+ frame.show();
- gtk_widget_show( m_pWidget );
+ m_pWidget.show();
}
void CBackgroundDialogPage::Append( GtkWidget *notebook ){
gtk_box_pack_start( GTK_BOX( GTK_DIALOG( pDialogWnd )->vbox ), pNotebook, TRUE, TRUE, 0 );
- gtk_widget_show( pNotebook );
+ pNotebook.show();
gtk_widget_realize( pDialogWnd );
}
auto vbox = ui::VBox( FALSE, 10 );
window.add(vbox);
- gtk_widget_show( vbox );
+ vbox.show();
w = ui::Label( lpText );
vbox.pack_start( w, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
w = ui::Widget(gtk_hseparator_new());
vbox.pack_start( w, FALSE, FALSE, 2 );
- gtk_widget_show( w );
+ w.show();
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
if ( type == eMB_OK ) {
w = ui::Button( "Ok" );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
gtk_widget_set_can_default(w, true);
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
ret = eIDOK;
}
else if ( type == eMB_OKCANCEL ) {
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
}
else if ( type == eMB_YESNOCANCEL ) {
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDYES ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "No" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDNO ) );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
}
else /* if (mode == MB_YESNO) */
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDYES ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "No" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDNO ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDNO;
}
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
while ( loop )
auto vbox = ui::VBox( FALSE, 10 );
window.add(vbox);
- gtk_widget_show( vbox );
+ vbox.show();
// ---- vbox ----
auto radio1 = ui::Widget(gtk_radio_button_new_with_label( NULL, "Use Whole Map" ));
vbox.pack_start( radio1, FALSE, FALSE, 2 );
- gtk_widget_show( radio1 );
+ radio1.show();
auto radio2 = ui::Widget(gtk_radio_button_new_with_label( gtk_radio_button_get_group(GTK_RADIO_BUTTON(radio1)), "Use Selected Brushes" ));
vbox.pack_start( radio2, FALSE, FALSE, 2 );
- gtk_widget_show( radio2 );
+ radio2.show();
auto hsep = ui::Widget(gtk_hseparator_new());
vbox.pack_start( hsep, FALSE, FALSE, 2 );
auto check1 = ui::CheckButton( "Include Detail Brushes" );
vbox.pack_start( check1, FALSE, FALSE, 0 );
- gtk_widget_show( check1 );
+ check1.show();
auto check2 = ui::CheckButton( "Select Duplicate Brushes Only" );
vbox.pack_start( check2, FALSE, FALSE, 0 );
- gtk_widget_show( check2 );
+ check2.show();
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ---- ok/cancel buttons
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// ---- /hbox ----
// ---- /vbox ----
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
while ( loop )
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
auto vbox2 = ui::VBox( FALSE, 10 );
hbox.pack_start( vbox2, FALSE, FALSE, 2 );
- gtk_widget_show( vbox2 );
+ vbox2.show();
// ---- vbox2 ----
auto hbox2 = ui::HBox( FALSE, 10 );
vbox2.pack_start( hbox2, FALSE, FALSE, 2 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
// ---- hbox2 ----
auto text1 = ui::Entry( 256 );
gtk_entry_set_text( (GtkEntry*)text1, "3" );
hbox2.pack_start( text1, FALSE, FALSE, 2 );
- gtk_widget_show( text1 );
+ text1.show();
auto l = ui::Label( "Number Of Sides" );
hbox2.pack_start( l, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( l ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( l );
+ l.show();
// ---- /hbox2 ----
hbox2 = ui::HBox( FALSE, 10 );
vbox2.pack_start( hbox2, FALSE, FALSE, 2 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
// ---- hbox2 ----
auto text2 = ui::Entry( 256 );
gtk_entry_set_text( (GtkEntry*)text2, "8" );
hbox2.pack_start( text2, FALSE, FALSE, 2 );
- gtk_widget_show( text2 );
+ text2.show();
l = ui::Label( "Border Width" );
hbox2.pack_start( l, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( l ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( l );
+ l.show();
// ---- /hbox2 ----
vbox2 = ui::VBox( FALSE, 10 );
hbox.pack_start( vbox2, FALSE, FALSE, 2 );
- gtk_widget_show( vbox2 );
+ vbox2.show();
// ---- vbox2 ----
auto check1 = ui::CheckButton( "Use Border" );
vbox2.pack_start( check1, FALSE, FALSE, 0 );
- gtk_widget_show( check1 );
+ check1.show();
auto check2 = ui::CheckButton( "Inverse Polygon" );
vbox2.pack_start( check2, FALSE, FALSE, 0 );
- gtk_widget_show( check2 );
+ check2.show();
auto check3 = ui::CheckButton( "Align Top Edge" );
vbox2.pack_start( check3, FALSE, FALSE, 0 );
- gtk_widget_show( check3 );
+ check3.show();
// ---- /vbox2 ----
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// ---- /hbox ----
// ---- /vbox ----
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
// new vbox
auto vbox = ui::VBox( FALSE, 10 );
window.add(vbox);
- gtk_widget_show( vbox );
+ vbox.show();
auto hbox = ui::HBox( FALSE, 10 );
vbox.add(hbox);
- gtk_widget_show( hbox );
+ hbox.show();
// dunno if you want this text or not ...
ui::Widget w = ui::Label( text );
hbox.pack_start( w, FALSE, FALSE, 0 ); // not entirely sure on all the parameters / what they do ...
- gtk_widget_show( w );
+ w.show();
w = ui::Widget(gtk_hseparator_new());
vbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// ------------------------- // indenting == good way of keeping track of lines :)
// new hbox
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto textStairHeight = ui::Entry( 256 );
hbox.pack_start( textStairHeight, FALSE, FALSE, 1 );
- gtk_widget_show( textStairHeight );
+ textStairHeight.show();
w = ui::Label( "Stair Height" );
hbox.pack_start( w, FALSE, FALSE, 1 );
- gtk_widget_show( w );
+ w.show();
// ------------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Direction:" );
hbox.pack_start( w, FALSE, FALSE, 5 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
// radio buttons confuse me ...
// but this _looks_ right
auto radioNorth = ui::Widget(gtk_radio_button_new_with_label( NULL, "North" ));
hbox.pack_start( radioNorth, FALSE, FALSE, 3 );
- gtk_widget_show( radioNorth );
+ radioNorth.show();
radioDirection = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radioNorth ) );
auto radioSouth = ui::Widget(gtk_radio_button_new_with_label( radioDirection, "South" ));
hbox.pack_start( radioSouth, FALSE, FALSE, 2 );
- gtk_widget_show( radioSouth );
+ radioSouth.show();
radioDirection = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radioSouth ) );
auto radioEast = ui::Widget(gtk_radio_button_new_with_label( radioDirection, "East" ));
hbox.pack_start( radioEast, FALSE, FALSE, 1 );
- gtk_widget_show( radioEast );
+ radioEast.show();
radioDirection = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radioEast ) );
auto radioWest = ui::Widget(gtk_radio_button_new_with_label( radioDirection, "West" ));
hbox.pack_start( radioWest, FALSE, FALSE, 0 );
- gtk_widget_show( radioWest );
+ radioWest.show();
// --------------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Style:" );
hbox.pack_start( w, FALSE, FALSE, 5 );
- gtk_widget_show( w );
+ w.show();
// --------------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto radioOldStyle = ui::Widget(gtk_radio_button_new_with_label( NULL, "Original" ));
hbox.pack_start( radioOldStyle, FALSE, FALSE, 0 );
- gtk_widget_show( radioOldStyle );
+ radioOldStyle.show();
radioStyle = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radioOldStyle ) );
auto radioBobStyle = ui::Widget(gtk_radio_button_new_with_label( radioStyle, "Bob's Style" ));
hbox.pack_start( radioBobStyle, FALSE, FALSE, 0 );
- gtk_widget_show( radioBobStyle );
+ radioBobStyle.show();
radioStyle = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radioBobStyle ) );
auto radioCornerStyle = ui::Widget(gtk_radio_button_new_with_label( radioStyle, "Corner Style" ));
hbox.pack_start( radioCornerStyle, FALSE, FALSE, 0 );
- gtk_widget_show( radioCornerStyle );
+ radioCornerStyle.show();
// err, the q3r has an if or something so you need bob style checked before this
// is "ungreyed out" but you'll need to do that, as i suck :)
auto checkUseDetail = ui::CheckButton( "Use Detail Brushes" );
hbox.pack_start( checkUseDetail, FALSE, FALSE, 0 );
- gtk_widget_show( checkUseDetail );
+ checkUseDetail.show();
// --------------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto textMainTex = ui::Entry( 512 );
gtk_entry_set_text( GTK_ENTRY( textMainTex ), rs->mainTexture );
hbox.pack_start( textMainTex, FALSE, FALSE, 0 );
- gtk_widget_show( textMainTex );
+ textMainTex.show();
w = ui::Label( "Main Texture" );
hbox.pack_start( w, FALSE, FALSE, 1 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto textRiserTex = ui::Entry( 512 );
hbox.pack_start( textRiserTex, FALSE, FALSE, 0 );
- gtk_widget_show( textRiserTex );
+ textRiserTex.show();
w = ui::Label( "Riser Texture" );
hbox.pack_start( w, FALSE, FALSE, 1 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
w = ui::Widget(gtk_hseparator_new());
vbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "OK" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// +djbob: need our "little" modal loop mars :P
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
auto vbox = ui::VBox( FALSE, 10 );
window.add(vbox);
- gtk_widget_show( vbox );
+ vbox.show();
// -------------------------- //
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto textFrontBackTex = ui::Entry( 512 );
gtk_entry_set_text( GTK_ENTRY( textFrontBackTex ), rs->mainTexture );
hbox.pack_start( textFrontBackTex, FALSE, FALSE, 0 );
- gtk_widget_show( textFrontBackTex );
+ textFrontBackTex.show();
ui::Widget w = ui::Label( "Door Front/Back Texture" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// ------------------------ //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto textTrimTex = ui::Entry( 512 );
hbox.pack_start( textTrimTex, FALSE, FALSE, 0 );
- gtk_widget_show( textTrimTex );
+ textTrimTex.show();
w = ui::Label( "Door Trim Texture" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// ----------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
// sp: horizontally ????
// djbob: yes mars, u can spell :]
auto checkScaleMainH = ui::CheckButton( "Scale Main Texture Horizontally" );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( checkScaleMainH ), TRUE );
hbox.pack_start( checkScaleMainH, FALSE, FALSE, 0 );
- gtk_widget_show( checkScaleMainH );
+ checkScaleMainH.show();
auto checkScaleTrimH = ui::CheckButton( "Scale Trim Texture Horizontally" );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( checkScaleTrimH ), TRUE );
hbox.pack_start( checkScaleTrimH, FALSE, FALSE, 0 );
- gtk_widget_show( checkScaleTrimH );
+ checkScaleTrimH.show();
// ---------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto checkScaleMainV = ui::CheckButton( "Scale Main Texture Vertically" );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( checkScaleMainV ), TRUE );
hbox.pack_start( checkScaleMainV, FALSE, FALSE, 0 );
- gtk_widget_show( checkScaleMainV );
+ checkScaleMainV.show();
auto checkScaleTrimV = ui::CheckButton( "Scale Trim Texture Vertically" );
hbox.pack_start( checkScaleTrimV, FALSE, FALSE, 0 );
- gtk_widget_show( checkScaleTrimV );
+ checkScaleTrimV.show();
// --------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
// djbob: lists added
auto comboMain = ui::ComboBox(GTK_COMBO_BOX(gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL(listMainTextures))));
gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(comboMain), 0);
hbox.pack_start( comboMain, FALSE, FALSE, 0 );
- gtk_widget_show( comboMain );
+ comboMain.show();
tw1.one = textFrontBackTex;
tw1.two = comboMain;
auto buttonSetMain = ui::Button( "Set As Main Texture" );
buttonSetMain.connect( "clicked", G_CALLBACK( dialog_button_callback_settex ), &tw1 );
hbox.pack_start( buttonSetMain, FALSE, FALSE, 0 );
- gtk_widget_show( buttonSetMain );
+ buttonSetMain.show();
// ------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto comboTrim = ui::ComboBox(GTK_COMBO_BOX(gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL(listTrimTextures))));
gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(comboMain), 0);
hbox.pack_start( comboTrim, FALSE, FALSE, 0 );
- gtk_widget_show( comboTrim );
+ comboTrim.show();
tw2.one = textTrimTex;
tw2.two = comboTrim;
auto buttonSetTrim = ui::Button( "Set As Trim Texture" );
buttonSetTrim.connect( "clicked", G_CALLBACK( dialog_button_callback_settex ), &tw2 );
hbox.pack_start( buttonSetTrim, FALSE, FALSE, 0 );
- gtk_widget_show( buttonSetTrim );
+ buttonSetTrim.show();
// ------------------ //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Orientation" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// argh more radio buttons!
auto radioNS = ui::Widget(gtk_radio_button_new_with_label( NULL, "North - South" ));
hbox.pack_start( radioNS, FALSE, FALSE, 0 );
- gtk_widget_show( radioNS );
+ radioNS.show();
radioOrientation = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radioNS ) );
auto radioEW = ui::Widget(gtk_radio_button_new_with_label( radioOrientation, "East - West" ));
hbox.pack_start( radioEW, FALSE, FALSE, 0 );
- gtk_widget_show( radioEW );
+ radioEW.show();
// ----------------- //
w = ui::Widget(gtk_hseparator_new());
vbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// ----------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "OK" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// ----------------- //
//+djbob
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
while ( loop )
auto vbox = ui::VBox( FALSE, 10 );
window.add(vbox);
- gtk_widget_show( vbox );
+ vbox.show();
// ---- vbox ----
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
auto text1 = ui::Entry( 256 );
gtk_entry_set_text( text1, "25" );
hbox.pack_start( text1, FALSE, FALSE, 2 );
- gtk_widget_show( text1 );
+ text1.show();
w = ui::Label( "Number Of Points" );
hbox.pack_start( w, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
// ---- /hbox ----
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
auto text2 = ui::Entry( 256 );
gtk_entry_set_text( text2, "3" );
hbox.pack_start( text2, FALSE, FALSE, 2 );
- gtk_widget_show( text2 );
+ text2.show();
w = ui::Label( "Multipler" );
hbox.pack_start( w, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
// ---- /hbox ----
w = ui::Label( "Path Distance = dist(start -> apex) * multiplier" );
vbox.pack_start( w, FALSE, FALSE, 0 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
auto text3 = ui::Entry( 256 );
gtk_entry_set_text( text3, "-800" );
hbox.pack_start( text3, FALSE, FALSE, 2 );
- gtk_widget_show( text3 );
+ text3.show();
w = ui::Label( "Gravity" );
hbox.pack_start( w, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
// ---- /hbox ----
w = ui::Widget(gtk_hseparator_new());
vbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
auto check1 = ui::CheckButton( "No Dynamic Update" );
vbox.pack_start( check1, FALSE, FALSE, 0 );
- gtk_widget_show( check1 );
+ check1.show();
auto check2 = ui::CheckButton( "Show Bounding Lines" );
vbox.pack_start( check2, FALSE, FALSE, 0 );
- gtk_widget_show( check2 );
+ check2.show();
// ---- /vbox ----
w = ui::Widget(gtk_hseparator_new());
vbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// ----------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "Enable" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDYES ) );
- gtk_widget_show( w );
+ w.show();
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
w = ui::Button( "Disable" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDNO ) );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// ----------------- //
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
auto vbox = ui::VBox( FALSE, 10 );
window.add(vbox);
- gtk_widget_show( vbox );
+ vbox.show();
// ---- vbox ----
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, TRUE, TRUE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ---- ok/cancel buttons
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Blue->Red" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDYES ) );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// ---- /hbox ----
// ---- /vbox ----
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
while ( loop )
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
w = ui::Label( texSelected );
hbox.pack_start( w, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
// ---- /hbox ----
auto frame = ui::Frame( "Reset Texture Names" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
auto table = ui::Table( 2, 3, TRUE );
dlgTexReset.cbTexChange = ui::CheckButton( "Enabled" );
dlgTexReset.cbTexChange.connect( "toggled", G_CALLBACK( dialog_button_callback_texreset_update ), NULL );
- gtk_widget_show( dlgTexReset.cbTexChange );
+ dlgTexReset.cbTexChange.show();
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.cbTexChange, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_table_attach( GTK_TABLE( table ), w, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
dlgTexReset.editTexOld = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( dlgTexReset.editTexOld ), rs->textureName );
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.editTexOld, 2, 3, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( dlgTexReset.editTexOld );
+ dlgTexReset.editTexOld.show();
w = ui::Label( "New Name: " );
gtk_table_attach( GTK_TABLE( table ), w, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
dlgTexReset.editTexNew = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( dlgTexReset.editTexNew ), rs->textureName );
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.editTexNew, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( dlgTexReset.editTexNew );
+ dlgTexReset.editTexNew.show();
// ---- /frame ----
frame = ui::Frame( "Reset Scales" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
table = ui::Table( 2, 3, TRUE );
dlgTexReset.cbScaleHor = ui::CheckButton( "Enabled" );
dlgTexReset.cbScaleHor.connect( "toggled", G_CALLBACK( dialog_button_callback_texreset_update ), NULL );
- gtk_widget_show( dlgTexReset.cbScaleHor );
+ dlgTexReset.cbScaleHor.show();
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.cbScaleHor, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_table_attach( GTK_TABLE( table ), w, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
dlgTexReset.editScaleHor = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( dlgTexReset.editScaleHor ), "0.5" );
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.editScaleHor, 2, 3, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( dlgTexReset.editScaleHor );
+ dlgTexReset.editScaleHor.show();
dlgTexReset.cbScaleVert = ui::CheckButton( "Enabled" );
dlgTexReset.cbScaleVert.connect( "toggled", G_CALLBACK( dialog_button_callback_texreset_update ), NULL );
- gtk_widget_show( dlgTexReset.cbScaleVert );
+ dlgTexReset.cbScaleVert.show();
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.cbScaleVert, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_table_attach( GTK_TABLE( table ), w, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
dlgTexReset.editScaleVert = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( dlgTexReset.editScaleVert ), "0.5" );
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.editScaleVert, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( dlgTexReset.editScaleVert );
+ dlgTexReset.editScaleVert.show();
// ---- /frame ----
frame = ui::Frame( "Reset Shift" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
table = ui::Table( 2, 3, TRUE );
dlgTexReset.cbShiftHor = ui::CheckButton( "Enabled" );
dlgTexReset.cbShiftHor.connect( "toggled", G_CALLBACK( dialog_button_callback_texreset_update ), NULL );
- gtk_widget_show( dlgTexReset.cbShiftHor );
+ dlgTexReset.cbShiftHor.show();
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.cbShiftHor, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_table_attach( GTK_TABLE( table ), w, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
dlgTexReset.editShiftHor = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( dlgTexReset.editShiftHor ), "0" );
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.editShiftHor, 2, 3, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( dlgTexReset.editShiftHor );
+ dlgTexReset.editShiftHor.show();
dlgTexReset.cbShiftVert = ui::CheckButton( "Enabled" );
dlgTexReset.cbShiftVert.connect( "toggled", G_CALLBACK( dialog_button_callback_texreset_update ), NULL );
- gtk_widget_show( dlgTexReset.cbShiftVert );
+ dlgTexReset.cbShiftVert.show();
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.cbShiftVert, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_table_attach( GTK_TABLE( table ), w, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
dlgTexReset.editShiftVert = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( dlgTexReset.editShiftVert ), "0" );
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.editShiftVert, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( dlgTexReset.editShiftVert );
+ dlgTexReset.editShiftVert.show();
// ---- /frame ----
frame = ui::Frame( "Reset Rotation" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
table = ui::Table( 1, 3, TRUE );
// ---- frame ----
dlgTexReset.cbRotation = ui::CheckButton( "Enabled" );
- gtk_widget_show( dlgTexReset.cbRotation );
+ dlgTexReset.cbRotation.show();
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.cbRotation, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_table_attach( GTK_TABLE( table ), w, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
dlgTexReset.editRotation = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( dlgTexReset.editRotation ), "0" );
gtk_table_attach( GTK_TABLE( table ), dlgTexReset.editRotation, 2, 3, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( dlgTexReset.editRotation );
+ dlgTexReset.editRotation.show();
// ---- /frame ----
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Use All Brushes" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDYES ) );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// ---- /hbox ----
// ---- /vbox ----
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
Update_TextureReseter();
auto hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- /hbox ----
auto frame = ui::Frame( "Radii" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
auto table = ui::Table( 2, 3, TRUE );
gtk_table_attach( GTK_TABLE( table ), w, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
radiusX = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( radiusX ), "100" );
gtk_table_attach( GTK_TABLE( table ), radiusX, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( radiusX );
+ radiusX.show();
gtk_table_attach( GTK_TABLE( table ), w, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
radiusY = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( radiusY ), "100" );
gtk_table_attach( GTK_TABLE( table ), radiusY, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( radiusY );
+ radiusY.show();
frame = ui::Frame( "Angles" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
table = ui::Table( 2, 3, TRUE );
gtk_table_attach( GTK_TABLE( table ), w, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
angleStart = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( angleStart ), "0" );
gtk_table_attach( GTK_TABLE( table ), angleStart, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( angleStart );
+ angleStart.show();
gtk_table_attach( GTK_TABLE( table ), w, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
angleEnd = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( angleEnd ), "90" );
gtk_table_attach( GTK_TABLE( table ), angleEnd, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( angleEnd );
+ angleEnd.show();
frame = ui::Frame( "Height" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
table = ui::Table( 2, 3, TRUE );
gtk_table_attach( GTK_TABLE( table ), w, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
heightStart = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( heightStart ), "0" );
gtk_table_attach( GTK_TABLE( table ), heightStart, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( heightStart );
+ heightStart.show();
gtk_table_attach( GTK_TABLE( table ), w, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
heightEnd = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( heightEnd ), "0" );
gtk_table_attach( GTK_TABLE( table ), heightEnd, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( heightEnd );
+ heightEnd.show();
frame = ui::Frame( "Points" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
table = ui::Table( 2, 3, TRUE );
gtk_table_attach( GTK_TABLE( table ), w, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( w );
+ w.show();
numPoints = ui::Entry( 256 );
gtk_entry_set_text( GTK_ENTRY( numPoints ), "0" );
gtk_table_attach( GTK_TABLE( table ), numPoints, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_show( numPoints );
+ numPoints.show();
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
// ---- hbox ----
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// ---- /hbox ----
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
// dunno if you want this text or not ...
w = ui::Label( text );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
w = ui::Widget(gtk_hseparator_new());
vbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// ------------------------- //
// new hbox
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
textlinkNum = ui::Entry( 256 );
hbox.pack_start( textlinkNum, FALSE, FALSE, 1 );
- gtk_widget_show( textlinkNum );
+ textlinkNum.show();
w = ui::Label( "Number of elements in chain" );
hbox.pack_start( w, FALSE, FALSE, 1 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
textlinkName = ui::Entry( 256 );
hbox.pack_start( textlinkName, FALSE, FALSE, 0 );
- gtk_widget_show( textlinkName );
+ textlinkName.show();
w = ui::Label( "Basename for chain's targetnames." );
hbox.pack_start( w, FALSE, FALSE, 1 );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "OK" );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
auto vbox1 = ui::VBox( FALSE, 0 );
gtk_widget_set_name( vbox1, "vbox1" );
- gtk_widget_show( vbox1 );
+ vbox1.show();
w_plugplug2.add(vbox1);
gtk_container_set_border_width( GTK_CONTAINER( vbox1 ), 5 );
auto hbox2 = ui::HBox( TRUE, 5 );
gtk_widget_set_name( hbox2, "hbox2" );
- gtk_widget_show( hbox2 );
+ hbox2.show();
vbox1.pack_start( hbox2, FALSE, FALSE, 0 );
gtk_container_set_border_width( GTK_CONTAINER( hbox2 ), 5 );
auto vbox4 = ui::VBox( TRUE, 0 );
gtk_widget_set_name( vbox4, "vbox4" );
- gtk_widget_show( vbox4 );
+ vbox4.show();
hbox2.pack_start( vbox4, TRUE, FALSE, 0 );
auto r_collapse = ui::Widget(gtk_radio_button_new_with_mnemonic( NULL, "Collapse mesh" ));
gtk_widget_set_name( r_collapse, "r_collapse" );
gtk_widget_set_tooltip_text(r_collapse, "Collapse all brushes into a single group");
- gtk_widget_show( r_collapse );
+ r_collapse.show();
vbox4.pack_start( r_collapse, FALSE, FALSE, 0 );
gtk_radio_button_set_group( GTK_RADIO_BUTTON( r_collapse ), r_collapse_group );
r_collapse_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON( r_collapse ) );
auto r_collapsebymaterial = ui::Widget(gtk_radio_button_new_with_mnemonic( NULL, "Collapse by material" ));
gtk_widget_set_name( r_collapsebymaterial, "r_collapsebymaterial" );
gtk_widget_set_tooltip_text(r_collapsebymaterial, "Collapse into groups by material");
- gtk_widget_show( r_collapsebymaterial );
+ r_collapsebymaterial.show();
vbox4.pack_start( r_collapsebymaterial, FALSE, FALSE, 0 );
gtk_radio_button_set_group( GTK_RADIO_BUTTON( r_collapsebymaterial ), r_collapse_group );
r_collapse_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON( r_collapsebymaterial ) );
auto r_nocollapse = ui::Widget(gtk_radio_button_new_with_mnemonic( NULL, "Don't collapse" ));
gtk_widget_set_name( r_nocollapse, "r_nocollapse" );
gtk_widget_set_tooltip_text(r_nocollapse, "Every brush is stored in its own group");
- gtk_widget_show( r_nocollapse );
+ r_nocollapse.show();
vbox4.pack_start( r_nocollapse, FALSE, FALSE, 0 );
gtk_radio_button_set_group( GTK_RADIO_BUTTON( r_nocollapse ), r_collapse_group );
r_collapse_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON( r_nocollapse ) );
auto vbox3 = ui::VBox( FALSE, 0 );
gtk_widget_set_name( vbox3, "vbox3" );
- gtk_widget_show( vbox3 );
+ vbox3.show();
hbox2.pack_start( vbox3, FALSE, FALSE, 0 );
auto b_export = ui::Button(GTK_BUTTON(gtk_button_new_from_stock( "gtk-save" )));
gtk_widget_set_name( b_export, "b_export" );
- gtk_widget_show( b_export );
+ b_export.show();
vbox3.pack_start( b_export, TRUE, FALSE, 0 );
gtk_container_set_border_width( GTK_CONTAINER( b_export ), 5 );
auto b_close = ui::Button(GTK_BUTTON(gtk_button_new_from_stock( "gtk-cancel" )));
gtk_widget_set_name( b_close, "b_close" );
- gtk_widget_show( b_close );
+ b_close.show();
vbox3.pack_start( b_close, TRUE, FALSE, 0 );
gtk_container_set_border_width( GTK_CONTAINER( b_close ), 5 );
auto vbox2 = ui::VBox( FALSE, 5 );
gtk_widget_set_name( vbox2, "vbox2" );
- gtk_widget_show( vbox2 );
+ vbox2.show();
vbox1.pack_start( vbox2, TRUE, TRUE, 0 );
gtk_container_set_border_width( GTK_CONTAINER( vbox2 ), 2 );
auto label1 = ui::Label( "Ignored materials:" );
gtk_widget_set_name( label1, "label1" );
- gtk_widget_show( label1 );
+ label1.show();
vbox2.pack_start( label1, FALSE, FALSE, 0 );
auto scrolledwindow1 = ui::ScrolledWindow(ui::New);
auto ed_materialname = ui::Entry(ui::New);
gtk_widget_set_name( ed_materialname, "ed_materialname" );
- gtk_widget_show( ed_materialname );
+ ed_materialname.show();
vbox2.pack_start( ed_materialname, FALSE, FALSE, 0 );
auto hbox1 = ui::HBox( TRUE, 0 );
gtk_widget_set_name( hbox1, "hbox1" );
- gtk_widget_show( hbox1 );
+ hbox1.show();
vbox2.pack_start( hbox1, FALSE, FALSE, 0 );
auto b_addmaterial = ui::Button(GTK_BUTTON(gtk_button_new_from_stock( "gtk-add" )));
gtk_widget_set_name( b_addmaterial, "b_addmaterial" );
- gtk_widget_show( b_addmaterial );
+ b_addmaterial.show();
hbox1.pack_start( b_addmaterial, FALSE, FALSE, 0 );
auto b_removematerial = ui::Button(GTK_BUTTON(gtk_button_new_from_stock( "gtk-remove" )));
gtk_widget_set_name( b_removematerial, "b_removematerial" );
- gtk_widget_show( b_removematerial );
+ b_removematerial.show();
hbox1.pack_start( b_removematerial, FALSE, FALSE, 0 );
auto t_limitmatnames = ui::Widget(gtk_check_button_new_with_mnemonic( "Use short material names (max. 20 chars)" ));
gtk_widget_set_name( t_limitmatnames, "t_limitmatnames" );
- gtk_widget_show( t_limitmatnames );
+ t_limitmatnames.show();
vbox2.pack_end( t_limitmatnames, FALSE, FALSE, 0 );
auto t_objects = ui::Widget(gtk_check_button_new_with_mnemonic( "Create (o)bjects instead of (g)roups" ));
gtk_widget_set_name( t_objects, "t_objects" );
- gtk_widget_show( t_objects );
+ t_objects.show();
vbox2.pack_end(t_objects, FALSE, FALSE, 0);
auto t_exportmaterials = ui::CheckButton(GTK_CHECK_BUTTON(gtk_check_button_new_with_mnemonic( "Create material information (.mtl file)" )));
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( t_exportmaterials ), true );
gtk_widget_set_name( t_exportmaterials, "t_exportmaterials" );
- gtk_widget_show( t_exportmaterials );
+ t_exportmaterials.show();
vbox2.pack_end(t_exportmaterials, FALSE, FALSE, 10);
using namespace callbacks;
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto frame = ui::Frame( "Type" );
hbox.pack_start( frame, TRUE, TRUE, 0 );
- gtk_widget_show( frame );
+ frame.show();
auto vbox2 = ui::VBox( FALSE, 5 );
frame.add(vbox2);
gtk_container_set_border_width( GTK_CONTAINER( vbox2 ), 5 );
- gtk_widget_show( vbox2 );
+ vbox2.show();
// -------------------------- //
fixed = gtk_radio_button_new_with_label( targetTypeRadio, "Fixed" );
vbox2.pack_start( fixed, FALSE, FALSE, 3 );
- gtk_widget_show( fixed );
+ fixed.show();
targetTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( fixed ) );
interpolated = gtk_radio_button_new_with_label( targetTypeRadio, "Interpolated" );
vbox2.pack_start( interpolated, FALSE, FALSE, 3 );
- gtk_widget_show( interpolated );
+ interpolated.show();
targetTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( interpolated ) );
spline = gtk_radio_button_new_with_label( targetTypeRadio, "Spline" );
vbox2.pack_start( spline, FALSE, FALSE, 3 );
- gtk_widget_show( spline );
+ spline.show();
targetTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( spline ) );
// -------------------------- //
w = gtk_hseparator_new();
vbox.pack_start( w, FALSE, FALSE, 2 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "Ok" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
- gtk_widget_show( w );
+ w.show();
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// -------------------------- //
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Name:" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
name = ui::Entry();
hbox.pack_start( name, FALSE, FALSE, 0 );
- gtk_widget_show( name );
+ name.show();
if ( g_iActiveTarget < 0 ) {
gtk_entry_set_text( GTK_ENTRY( name ), GetCurrentCam()->GetCam()->getPositionObj()->getName() );
w = gtk_hseparator_new();
vbox.pack_start( w, FALSE, FALSE, 2 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "Ok" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
- gtk_widget_show( w );
+ w.show();
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// -------------------------- //
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Name:" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
name = ui::Entry();
hbox.pack_start( name, TRUE, TRUE, 0 );
- gtk_widget_show( name );
+ name.show();
sprintf( buf, "target%i", GetCurrentCam()->GetCam()->numTargets() + 1 );
gtk_entry_set_text( GTK_ENTRY( name ), buf );
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto frame = ui::Frame( "Type" );
hbox.pack_start( frame, TRUE, TRUE, 0 );
- gtk_widget_show( frame );
+ frame.show();
auto vbox2 = ui::VBox( FALSE, 5 );
frame.add(vbox2);
gtk_container_set_border_width( GTK_CONTAINER( vbox2 ), 5 );
- gtk_widget_show( vbox2 );
+ vbox2.show();
// -------------------------- //
fixed = gtk_radio_button_new_with_label( targetTypeRadio, "Fixed" );
vbox2.pack_start( fixed, FALSE, FALSE, 3 );
- gtk_widget_show( fixed );
+ fixed.show();
targetTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( fixed ) );
interpolated = gtk_radio_button_new_with_label( targetTypeRadio, "Interpolated" );
vbox2.pack_start( interpolated, FALSE, FALSE, 3 );
- gtk_widget_show( interpolated );
+ interpolated.show();
targetTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( interpolated ) );
spline = gtk_radio_button_new_with_label( targetTypeRadio, "Spline" );
vbox2.pack_start( spline, FALSE, FALSE, 3 );
- gtk_widget_show( spline );
+ spline.show();
targetTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( spline ) );
// -------------------------- //
w = gtk_hseparator_new();
vbox.pack_start( w, FALSE, FALSE, 2 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "Ok" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
- gtk_widget_show( w );
+ w.show();
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// -------------------------- //
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto frame = ui::Frame( "Type" );
hbox.pack_start( frame, TRUE, TRUE, 0 );
- gtk_widget_show( frame );
+ frame.show();
auto vbox2 = ui::VBox( FALSE, 5 );
frame.add(vbox2);
gtk_container_set_border_width( GTK_CONTAINER( vbox2 ), 5 );
- gtk_widget_show( vbox2 );
+ vbox2.show();
// -------------------------- //
for ( i = 1; i < EVENT_COUNT; i++ ) {
eventWidget[i] = gtk_radio_button_new_with_label( eventTypeRadio, camEventStr[i] );
vbox2.pack_start( eventWidget[i], FALSE, FALSE, 3 );
- gtk_widget_show( eventWidget[i] );
+ eventWidget[i].show();
eventTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( eventWidget[i] ) );
if ( camEventFlags[i][1] == false ) {
gtk_widget_set_sensitive( eventWidget[i], FALSE );
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Parameters:" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
parameters = ui::Entry();
hbox.pack_start( parameters, TRUE, TRUE, 0 );
- gtk_widget_show( parameters );
+ parameters.show();
// -------------------------- //
w = gtk_hseparator_new();
vbox.pack_start( w, FALSE, FALSE, 2 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "Ok" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDOK ) );
- gtk_widget_show( w );
+ w.show();
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( eIDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = eIDCANCEL;
// -------------------------- //
gtk_window_set_position( GTK_WINDOW( window ),GTK_WIN_POS_CENTER );
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
bool dialogError = TRUE;
// -------------------------- //
vbox = ui::VBox( FALSE, 5 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_table_attach( GTK_TABLE( table ), vbox, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "File:" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pCamListCombo = gtk_combo_new();
hbox.pack_start( g_pCamListCombo, TRUE, TRUE, 0 );
- gtk_widget_show( g_pCamListCombo );
+ g_pCamListCombo.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Name:" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pCamName = ui::Entry();
hbox.pack_start( g_pCamName, FALSE, FALSE, 0 );
- gtk_widget_show( g_pCamName );
+ g_pCamName.show();
w = ui::Label( "Type: " );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
w = ui::Label( "" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pCamType = GTK_LABEL( w );
RefreshCamListCombo();
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Edit:" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pPathListCombo = gtk_combo_new();
hbox.pack_start( g_pPathListCombo, TRUE, TRUE, 0 );
- gtk_widget_show( g_pPathListCombo );
+ g_pPathListCombo.show();
RefreshPathListCombo();
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
g_pEditModeEditRadioButton = gtk_radio_button_new_with_label( g_pEditTypeRadio, "Edit Points" );
hbox.pack_start( g_pEditModeEditRadioButton, FALSE, FALSE, 3 );
- gtk_widget_show( g_pEditModeEditRadioButton );
+ g_pEditModeEditRadioButton.show();
g_pEditTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( g_pEditModeEditRadioButton ) );
g_pEditModeEditRadioButton.connect( "clicked", G_CALLBACK( ci_editmode_edit ), NULL );
g_pEditModeAddRadioButton = gtk_radio_button_new_with_label( g_pEditTypeRadio, "Add Points" );
hbox.pack_start( g_pEditModeAddRadioButton, FALSE, FALSE, 3 );
- gtk_widget_show( g_pEditModeAddRadioButton );
+ g_pEditModeAddRadioButton.show();
g_pEditTypeRadio = gtk_radio_button_get_group( GTK_RADIO_BUTTON( g_pEditModeAddRadioButton ) );
g_pEditModeAddRadioButton.connect( "clicked", G_CALLBACK( ci_editmode_add ), NULL );
w = ui::Label( "Type: " );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
w = ui::Label( "" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pPathType = GTK_LABEL( w );
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Button( "Rename..." );
hbox.pack_start( w, FALSE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( ci_rename ), NULL );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Add Target..." );
hbox.pack_start( w, FALSE, TRUE, 0 );
w.connect( "clicked", G_CALLBACK( ci_add_target ), NULL );
- gtk_widget_show( w );
+ w.show();
// not available in splines library
/*w = gtk_button_new_with_label( "Delete Selected" );
hbox.pack_start( w, FALSE, TRUE, 0);
w.connect( "clicked", G_CALLBACK( ci_delete_selected ), NULL );
- gtk_widget_show( w );
+ w.show();
w = gtk_button_new_with_label( "Select All" );
hbox.pack_start( w, FALSE, TRUE, 0);
w.connect( "clicked", G_CALLBACK( ci_select_all ), NULL );
- gtk_widget_show( w );*/
+ w.show();*/
// -------------------------- //
frame = ui::Frame( "Time" );
- gtk_widget_show( frame );
+ frame.show();
gtk_table_attach( GTK_TABLE( table ), frame, 0, 1, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Length (seconds):" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pSecondsEntry = ui::Entry();
hbox.pack_start( g_pSecondsEntry, FALSE, FALSE, 0 );
- gtk_widget_show( g_pSecondsEntry );
+ g_pSecondsEntry.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Current Time: " );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
w = ui::Label( "0.00" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pCurrentTime = GTK_LABEL( w );
w = ui::Label( " of " );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
w = ui::Label( "0.00" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pTotalTime = GTK_LABEL( w );
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
g_pTimeLine = ui::Adjustment( 0, 0, 30000, 100, 250, 0 );
g_pTimeLine.connect( "value_changed", G_CALLBACK( ci_timeline_changed ), NULL );
w = ui::HScale( g_pTimeLine );
hbox.pack_start( w, TRUE, TRUE, 0 );
- gtk_widget_show( w );
+ w.show();
gtk_scale_set_draw_value( GTK_SCALE( w ), FALSE );
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
g_pTrackCamera = ui::CheckButton( "Track Camera" );
hbox.pack_start( g_pTrackCamera, FALSE, FALSE, 0 );
- gtk_widget_show( g_pTrackCamera );
+ g_pTrackCamera.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = ui::Label( "Events:" );
hbox.pack_start( w, FALSE, FALSE, 0 );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
hbox = ui::HBox( FALSE, 5 );
vbox.pack_start( hbox, FALSE, FALSE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
auto scr = w = ui::ScrolledWindow();
gtk_widget_set_size_request( w, 0, 150 );
gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( w ), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC );
hbox.pack_start( w, TRUE, TRUE, 0 );
- gtk_widget_show( w );
+ w.show();
g_pEventsList = gtk_clist_new( 3 );
scr.add(g_pEventsList);
gtk_clist_set_column_auto_resize( GTK_CLIST( g_pEventsList ), 0, TRUE );
gtk_clist_set_column_auto_resize( GTK_CLIST( g_pEventsList ), 1, TRUE );
gtk_clist_set_column_auto_resize( GTK_CLIST( g_pEventsList ), 2, TRUE );
- gtk_widget_show( g_pEventsList );
+ g_pEventsList.show();
vbox = ui::VBox( FALSE, 5 );
hbox.pack_start( vbox, FALSE, FALSE, 0 );
- gtk_widget_show( vbox );
+ vbox.show();
w = ui::Button( "Add..." );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_add ), NULL );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Del" );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_del ), NULL );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
// -------------------------- //
vbox = gtk_vbox_new( FALSE, 5 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_table_attach( GTK_TABLE( table ), vbox, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
w = gtk_button_new_with_label( "New..." );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_new ), NULL );
- gtk_widget_show( w );
+ w.show();
w = gtk_button_new_with_label( "Load..." );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_load ), NULL );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
vbox = gtk_vbox_new( FALSE, 5 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_table_attach( GTK_TABLE( table ), vbox, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
w = gtk_button_new_with_label( "Save..." );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_save ), NULL );
- gtk_widget_show( w );
+ w.show();
w = gtk_button_new_with_label( "Unload" );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_unload ), NULL );
- gtk_widget_show( w );
+ w.show();
hbox = gtk_hbox_new( FALSE, 5 );
vbox.pack_start( hbox, TRUE, TRUE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = gtk_button_new_with_label( "Apply" );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_apply ), NULL );
- gtk_widget_show( w );
+ w.show();
w = gtk_button_new_with_label( "Preview" );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_preview ), NULL );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
vbox = gtk_vbox_new( FALSE, 5 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_table_attach( GTK_TABLE( table ), vbox, 1, 2, 2, 3,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
hbox = gtk_hbox_new( FALSE, 5 );
vbox.pack_start( hbox, TRUE, TRUE, 0 );
- gtk_widget_show( hbox );
+ hbox.show();
w = gtk_button_new_with_label( "Close" );
vbox.pack_start( w, FALSE, FALSE, 0 );
w.connect( "clicked", G_CALLBACK( ci_close ), NULL );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
// -------------------------- //
}
void DoCameraInspector(){
- gtk_widget_show( g_pCameraInspectorWnd );
+ g_pCameraInspectorWnd.show();
}
void DoPreviewCamera(){
gtk_container_set_border_width( GTK_CONTAINER( hbox ), 5 );
notebook = gtk_notebook_new();
- gtk_widget_show( notebook );
+ notebook.show();
hbox.pack_start( notebook, TRUE, TRUE, 0 );
notebook.connect( "switch_page",
G_CALLBACK( switch_page ), NULL );
g_object_set_data( G_OBJECT( dlg ), "notebook", notebook );
table = ui::Table( 2, 2, FALSE );
- gtk_widget_show( table );
+ table.show();
gtk_container_set_border_width( GTK_CONTAINER( table ), 5 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "General" );
- gtk_widget_show( label );
+ label.show();
gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), table, label );
auto frame = ui::Frame( "Game" );
- gtk_widget_show( frame );
+ frame.show();
gtk_table_attach( GTK_TABLE( table ), frame, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
for ( i = 0, group = NULL; i < NUMGAMES; i++ )
{
radio = gtk_radio_button_new_with_label( group, games[i] );
- gtk_widget_show( radio );
+ radio.show();
vbox.pack_start( radio, TRUE, TRUE, 0 );
group = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radio ) );
game_radios[i] = radio;
}
frame = ui::Frame( "Waveform" );
- gtk_widget_show( frame );
+ frame.show();
gtk_table_attach( GTK_TABLE( table ), frame, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
for ( i = 0, group = NULL; i < 5; i++ )
{
radio = gtk_radio_button_new_with_label( group, waveforms[i] );
- gtk_widget_show( radio );
+ radio.show();
vbox.pack_start( radio, TRUE, TRUE, 0 );
group = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radio ) );
wave_radios[i] = radio;
}
frame = ui::Frame( "Orientation" );
- gtk_widget_show( frame );
+ frame.show();
gtk_table_attach( GTK_TABLE( table ), frame, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
for ( i = 0, group = NULL; i < 6; i++ )
{
radio = gtk_radio_button_new_with_label( group, orientations[i] );
- gtk_widget_show( radio );
+ radio.show();
vbox.pack_start( radio, TRUE, TRUE, 0 );
group = gtk_radio_button_get_group( GTK_RADIO_BUTTON( radio ) );
plane_radios[i] = radio;
}
table2 = ui::Table( 4, 2, FALSE );
- gtk_widget_show( table2 );
+ table2.show();
gtk_table_set_row_spacings( GTK_TABLE( table2 ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table2 ), 5 );
gtk_table_attach( GTK_TABLE( table ), table2, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
label = ui::Label( "Wavelength:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table2 ), label, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_RIGHT );
label = ui::Label( "Max. amplitude:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table2 ), label, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_RIGHT );
label = ui::Label( "Roughness:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table2 ), label, 0, 1, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_RIGHT );
label = ui::Label( "Random seed:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table2 ), label, 0, 1, 3, 4,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_RIGHT );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table2 ), entry, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &WaveLength );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table2 ), entry, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Amplitude );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table2 ), entry, 1, 2, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
adj = ui::Adjustment( 1, 1, 32767, 1, 10, 0 );
adj.connect( "value_changed", G_CALLBACK( general_random ), NULL );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
gtk_table_attach( GTK_TABLE( table2 ), spin, 1, 2, 3, 4,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "random", spin );
vbox = ui::VBox( FALSE, 5 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
label = ui::Label( "Extents" );
- gtk_widget_show( label );
+ label.show();
gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), vbox, label );
hbox2 = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
vbox.pack_start( hbox2, FALSE, TRUE, 0 );
frame = ui::Frame( "Extents" );
- gtk_widget_show( frame );
+ frame.show();
hbox2.pack_start( frame, TRUE, TRUE, 0 );
auto table = ui::Table( 3, 4, FALSE );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "X:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "hmin_text", label );
label = ui::Label( "X:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "hmax_text", label );
label = ui::Label( "Y:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 2, 3,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "vmin_text", label );
label = ui::Label( "Y:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 2, 3, 2, 3,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "vmax_text", label );
label = ui::Label( "Lower-left" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
label = ui::Label( "Upper-right" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 3, 4, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Hll );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 3, 4, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Hur );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Vll );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 3, 4, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Vur );
frame = ui::Frame( "Divisions" );
- gtk_widget_show( frame );
+ frame.show();
hbox2.pack_start( frame, TRUE, TRUE, 0 );
table = ui::Table( 2, 2, FALSE );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "X:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "nh_text", label );
label = ui::Label( "Y:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
adj = ui::Adjustment( 8, 1, MAX_ROWS, 1, 10, 0 );
adj.connect( "value_changed", G_CALLBACK( extents_nhnv_spin ), &NH );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
gtk_table_attach( GTK_TABLE( table ), spin, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
adj = ui::Adjustment( 8, 1, MAX_ROWS, 1, 10, 0 );
adj.connect( "value_changed", G_CALLBACK( extents_nhnv_spin ), &NV );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
gtk_table_attach( GTK_TABLE( table ), spin, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "nv", spin );
check = ui::CheckButton( "Use Bezier patches" );
- gtk_widget_show( check );
+ check.show();
vbox.pack_start( check, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "use_patches", check );
check.connect( "toggled", G_CALLBACK( extents_use_patches ), NULL );
// ^Fishman - Snap to grid, replaced scroll bar with a texbox.
label = ui::Label( "Snap to grid:" );
- gtk_widget_show( label );
+ label.show();
vbox.pack_start( label, FALSE, TRUE, 0 );
gtk_object_set_data( GTK_OBJECT( dlg ), "snap_text", label );
adj = ui::Adjustment( 8, 0, 256, 1, 10, 0 );
adj.connect( "value_changed", G_CALLBACK( extents_snaptogrid_spin ), &SP );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
vbox.pack_start( spin, FALSE, TRUE, 0 );
gtk_widget_set_size_request( spin, 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "sp", spin );
// ^Fishman - End of Snap to grid code.
hbox2 = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
vbox.pack_start( hbox2, FALSE, TRUE, 10 );
label = ui::Label( "Decimate:" );
- gtk_widget_show( label );
+ label.show();
hbox2.pack_start( label, FALSE, TRUE, 0 );
adj = ui::Adjustment( 0, 0, 110, 1, 10, 0 );
adj.connect( "value_changed", G_CALLBACK( extents_decimate ), NULL );
g_object_set_data( G_OBJECT( dlg ), "decimate_adj", adj );
scale = ui::HScale( adj );
- gtk_widget_show( scale );
+ scale.show();
hbox2.pack_start( scale, TRUE, TRUE, 0 );
gtk_scale_set_value_pos( GTK_SCALE( scale ), GTK_POS_RIGHT );
gtk_scale_set_digits( GTK_SCALE( scale ), 0 );
g_object_set_data( G_OBJECT( dlg ), "decimate", scale );
frame = ui::Frame( "Corner values" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, FALSE, TRUE, 0 );
table = ui::Table( 3, 4, FALSE );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "Upper-left:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
label = ui::Label( "Lower-left:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
label = ui::Label( "Upper-right:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 2, 3, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
label = ui::Label( "Lower-right:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z01 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z00 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 3, 4, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z11 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 3, 4, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z10 );
check = ui::CheckButton( "Linear borders" );
- gtk_widget_show( check );
+ check.show();
gtk_table_attach( GTK_TABLE( table ), check, 0, 4, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
check.connect( "toggled", G_CALLBACK( extents_linearborder ), NULL );
vbox = ui::VBox( FALSE, 10 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
label = ui::Label( "Bitmap" );
- gtk_widget_show( label );
+ label.show();
gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), vbox, label );
label = ui::Label( "" );
- gtk_widget_show( label );
+ label.show();
vbox.pack_start( label, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "bmp_note", label );
table = ui::Table( 2, 2, FALSE );
- gtk_widget_show( table );
+ table.show();
gtk_container_set_border_width( GTK_CONTAINER( table ), 5 );
vbox.pack_start( table, FALSE, TRUE, 0 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "Filename:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "bmp_text1", label );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( bitmap_file_entryfocusout ), NULL );
hbox2 = ui::HBox( TRUE, 5 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
gtk_table_attach( GTK_TABLE( table ), hbox2, 1, 2, 1, 2,
(GtkAttachOptions) ( 0 ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
button = ui::Button( "Browse..." );
- gtk_widget_show( button );
+ button.show();
hbox2.pack_start( button, FALSE, FALSE, 0 );
gtk_widget_set_size_request( button, 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_file_browse", button );
button.connect( "clicked", G_CALLBACK( bitmap_browse ), NULL );
button = ui::Button( "Reload" );
- gtk_widget_show( button );
+ button.show();
hbox2.pack_start( button, FALSE, FALSE, 0 );
gtk_widget_set_size_request( button, 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_reload", button );
button.connect( "clicked", G_CALLBACK( bitmap_reload ), NULL );
table = ui::Table( 2, 2, TRUE );
- gtk_widget_show( table );
+ table.show();
gtk_container_set_border_width( GTK_CONTAINER( table ), 5 );
vbox.pack_start( table, FALSE, TRUE, 0 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "Map color 0 to:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL | GTK_EXPAND ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_RIGHT );
label = ui::Label( "Map color 255 to:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL | GTK_EXPAND ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_RIGHT );
hbox2 = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
gtk_table_attach( GTK_TABLE( table ), hbox2, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
hbox2.pack_start( entry, FALSE, FALSE, 0 );
gtk_widget_set_size_request( entry, 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_black", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &gbmp.black_value );
hbox2 = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
gtk_table_attach( GTK_TABLE( table ), hbox2, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
hbox2.pack_start( entry, FALSE, FALSE, 0 );
gtk_widget_set_size_request( entry, 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_white", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &gbmp.white_value );
vbox = ui::VBox( FALSE, 10 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
label = ui::Label( "Fix Points" );
- gtk_widget_show( label );
+ label.show();
gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), vbox, label );
label = ui::Label( "Click on a vertex in the lower half of the preview window,\n"
"selection. Use Shift+Click to select a range of vertices.\n\n"
"Click \"Free\" to unlock a vertex. Vertices within \"Range\n"
"affected\" will be influenced by this vertex." );
- gtk_widget_show( label );
+ label.show();
vbox.pack_start( label, FALSE, TRUE, 0 );
table = ui::Table( 3, 3, FALSE );
- gtk_widget_show( table );
+ table.show();
gtk_container_set_border_width( GTK_CONTAINER( table ), 5 );
vbox.pack_start( table, FALSE, TRUE, 0 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "Value:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "fix_value_text", label );
label = ui::Label( "Range affected:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "fix_range_text", label );
label = ui::Label( "Rate of change:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 2, 3,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
adj = ui::Adjustment( 0, -65536, 65536, 1, 16, 0 );
adj.connect( "value_changed", G_CALLBACK( fix_value_changed ), NULL );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
gtk_table_attach( GTK_TABLE( table ), spin, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND ),
(GtkAttachOptions) ( GTK_EXPAND ), 0, 0 );
spin.connect( "focus_out_event", G_CALLBACK( fix_value_entryfocusout ), NULL );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( fix_range_entryfocusout ), NULL );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( fix_rate_entryfocusout ), NULL );
button = ui::Button( "Free" );
- gtk_widget_show( button );
+ button.show();
gtk_table_attach( GTK_TABLE( table ), button, 2, 3, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
button.connect( "clicked", G_CALLBACK( fix_free ), NULL );
button = ui::Button( "Free All" );
- gtk_widget_show( button );
+ button.show();
gtk_table_attach( GTK_TABLE( table ), button, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
button.connect( "clicked", G_CALLBACK( fix_freeall ), NULL );
vbox = ui::VBox( FALSE, 10 );
- gtk_widget_show( vbox );
+ vbox.show();
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
label = ui::Label( "Texture" );
- gtk_widget_show( label );
+ label.show();
gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), vbox, label );
// ^Fishman - Modified to add more labels and textboxes.
table = ui::Table( 5, 2, FALSE );
- gtk_widget_show( table );
+ table.show();
vbox.pack_start( table, FALSE, TRUE, 0 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "Surface:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
label = ui::Label( "Other:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
label = ui::Label( "Steep:" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 2, 3,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( texture_entryfocusout ), GINT_TO_POINTER( 0 ) );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry.connect( "focus_out_event", G_CALLBACK( texture_entryfocusout ), GINT_TO_POINTER( 1 ) );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 2, 3,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "texture3", entry );
hbox2 = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox2 );
+ hbox2.show();
vbox.pack_start( hbox2, FALSE, TRUE, 0 );
label = ui::Label( "\"Steep\" angle:" );
- gtk_widget_show( label );
+ label.show();
hbox2.pack_start( label, FALSE, TRUE, 0 );
adj = ui::Adjustment( 60, 0, 90, 1, 10, 0 );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
hbox2.pack_start( spin, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "tex_slant", spin );
table = ui::Table( 2, 4, TRUE );
- gtk_widget_show( table );
+ table.show();
vbox.pack_start( table, FALSE, TRUE, 0 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
label = ui::Label( "Offset <h,v>" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 0, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
label = ui::Label( "Scale <h,v>" );
- gtk_widget_show( label );
+ label.show();
gtk_table_attach( GTK_TABLE( table ), label, 2, 4, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "texoffsetx", entry );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "texoffsety", entry );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
g_object_set_data( G_OBJECT( dlg ), "texscalex", entry );
entry = ui::Entry();
- gtk_widget_show( entry );
+ entry.show();
gtk_table_attach( GTK_TABLE( table ), entry, 3, 4, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
check = ui::CheckButton( "Use detail brushes" );
- gtk_widget_show( check );
+ check.show();
vbox.pack_start( check, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "detail", check );
check.connect( "toggled", G_CALLBACK( texture_detail ), NULL );
check = ui::CheckButton( "Detail hint brushes" );
- gtk_widget_show( check );
+ check.show();
vbox.pack_start( check, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "hint", check );
check.connect( "toggled", G_CALLBACK( texture_hint ), NULL );
// ^Fishman - Add terrain key to func_group.
check = ui::CheckButton( "Add terrain key" );
- gtk_widget_show( check );
+ check.show();
vbox.pack_start( check, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "terrain_ent", check );
check.connect( "toggled", G_CALLBACK( texture_terrainent ), NULL );
vbox = ui::VBox( FALSE, 5 );
- gtk_widget_show( vbox );
+ vbox.show();
hbox.pack_start( vbox, FALSE, TRUE, 0 );
button = ui::Button( "OK" );
- gtk_widget_show( button );
+ button.show();
vbox.pack_start( button, FALSE, TRUE, 0 );
gtk_widget_set_size_request( button, 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "go", button );
button.connect( "clicked", G_CALLBACK( main_go ), NULL );
label = ui::Label( "Settings:" );
- gtk_widget_show( label );
+ label.show();
vbox.pack_start( label, FALSE, TRUE, 0 );
button = ui::Button( "Open..." );
- gtk_widget_show( button );
+ button.show();
vbox.pack_start( button, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "open", button );
button.connect( "clicked", G_CALLBACK( main_open ), NULL );
button = ui::Button( "Save as..." );
- gtk_widget_show( button );
+ button.show();
vbox.pack_start( button, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "save", button );
button.connect( "clicked", G_CALLBACK( main_save ), NULL );
button = ui::Button( "Defaults" );
- gtk_widget_show( button );
+ button.show();
vbox.pack_start( button, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "defaults", button );
button.connect( "clicked", G_CALLBACK( main_defaults ), NULL );
button = ui::Button( "About..." );
- gtk_widget_show( button );
+ button.show();
vbox.pack_start( button, FALSE, TRUE, 0 );
button.connect( "clicked", G_CALLBACK( main_about ), NULL );
check = ui::CheckButton( "Preview" );
- gtk_widget_show( check );
+ check.show();
vbox.pack_start( check, FALSE, TRUE, 0 );
check.connect( "toggled", G_CALLBACK( main_preview ), NULL );
g_object_set_data( G_OBJECT( dlg ), "main_preview", check );
// ^Fishman - Antializing for the preview window.
check = ui::CheckButton( "Antialised lines" );
- gtk_widget_show( check );
+ check.show();
vbox.pack_start( check, FALSE, TRUE, 0 );
g_object_set_data( G_OBJECT( dlg ), "main_antialiasing", check );
check.connect( "toggled", G_CALLBACK( main_antialiasing ), NULL );
UseFaceBounds();
}
- gtk_widget_show( g_pWnd );
+ g_pWnd.show();
}
}
if ( g_pWndPreview == NULL ) {
CreateViewWindow();
}
- gtk_widget_show( g_pWndPreview );
+ g_pWndPreview.show();
UpdatePreview( true );
}
#ifndef ISOMETRIC
auto hbox = ui::HBox( TRUE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox.pack_start( hbox, FALSE, TRUE, 0 );
gtk_container_set_border_width( GTK_CONTAINER( hbox ), 3 );
label = ui::Label( "Elevation" );
- gtk_widget_show( label );
+ label.show();
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
hbox.pack_start( label, FALSE, TRUE, 0 );
auto adj = ui::Adjustment( 30, -90, 90, 1, 10, 0 );
adj.connect( "value_changed", G_CALLBACK( preview_spin ), &elevation );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
hbox.pack_start( spin, FALSE, TRUE, 0 );
spin.connect( "focus_out_event", G_CALLBACK( doublevariable_spinfocusout ), &elevation );
adj = ui::Adjustment( 30, 0, 359, 1, 10, 0 );
adj.connect( "value_changed", G_CALLBACK( preview_spin ), &azimuth );
spin = ui::SpinButton( adj, 1, 0 );
- gtk_widget_show( spin );
+ spin.show();
gtk_spin_button_set_wrap( GTK_SPIN_BUTTON( spin ), TRUE );
hbox.pack_end(spin, FALSE, TRUE, 0);
label = ui::Label( "Azimuth" );
- gtk_widget_show( label );
+ label.show();
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
hbox.pack_end(label, FALSE, TRUE, 0);
spin.connect( "focus_out_event", G_CALLBACK( doublevariable_spinfocusout ), &azimuth );
g_pPreviewWidget.connect( "button_press_event",
G_CALLBACK( button_press ), NULL );
- gtk_widget_show( g_pPreviewWidget );
+ g_pPreviewWidget.show();
frame.add(ui::Widget(g_pPreviewWidget));
if ( Preview ) {
- gtk_widget_show( g_pWndPreview );
+ g_pWndPreview.show();
}
UpdatePreview( true );
w = ui::Label( lpText );
vbox.pack_start( w, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
w = gtk_hseparator_new();
vbox.pack_start( w, FALSE, FALSE, 2 );
- gtk_widget_show( w );
+ w.show();
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
if ( mode == MB_OK ) {
w = ui::Button( "Ok" );
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
ret = IDOK;
}
else if ( mode == MB_OKCANCEL ) {
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = IDCANCEL;
}
else if ( mode == MB_YESNOCANCEL ) {
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDYES ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "No" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDNO ) );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = IDCANCEL;
}
else /* if (mode == MB_YESNO) */
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDYES ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "No" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDNO ) );
- gtk_widget_show( w );
+ w.show();
ret = IDNO;
}
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
while ( loop )
g_object_set_data( G_OBJECT( dlg ), "loop", &loop );
g_object_set_data( G_OBJECT( dlg ), "ret", &ret );
- gtk_widget_show( dlg );
+ dlg.show();
gtk_grab_add( dlg );
while ( loop )
gtk_container_set_border_width( GTK_CONTAINER( vbox2 ), 5 );
auto hbox = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox2.pack_start( hbox, TRUE, TRUE, 0 );
auto adj = ui::Adjustment( portals.width_3d, 2, 40, 1, 1, 0 );
auto lw3slider = ui::HScale( adj );
- gtk_widget_show( lw3slider );
+ lw3slider.show();
hbox.pack_start( lw3slider, TRUE, TRUE, 0 );
gtk_scale_set_draw_value( GTK_SCALE( lw3slider ), FALSE );
auto lw3label = ui::Label( "" );
- gtk_widget_show( lw3label );
+ lw3label.show();
hbox.pack_start( lw3label, FALSE, TRUE, 0 );
adj.connect( "value_changed", G_CALLBACK( OnScroll3d ), lw3label );
auto table = ui::Table( 2, 4, FALSE );
- gtk_widget_show( table );
+ table.show();
vbox2.pack_start( table, TRUE, TRUE, 0 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
auto button = ui::Button( "Color" );
- gtk_widget_show( button );
+ button.show();
gtk_table_attach( GTK_TABLE( table ), button, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
button.connect( "clicked", G_CALLBACK( OnColor3d ), NULL );
button = ui::Button( "Depth Color" );
- gtk_widget_show( button );
+ button.show();
gtk_table_attach( GTK_TABLE( table ), button, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
button.connect( "clicked", G_CALLBACK( OnColorFog ), NULL );
auto aa3check = ui::CheckButton( "Anti-Alias (May not work on some video cards)" );
- gtk_widget_show( aa3check );
+ aa3check.show();
gtk_table_attach( GTK_TABLE( table ), aa3check, 1, 4, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
aa3check.connect( "toggled", G_CALLBACK( OnAntiAlias3d ), NULL );
auto depthcheck = ui::CheckButton( "Depth Cue" );
- gtk_widget_show( depthcheck );
+ depthcheck.show();
gtk_table_attach( GTK_TABLE( table ), depthcheck, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
depthcheck.connect( "toggled", G_CALLBACK( OnFog ), NULL );
auto linescheck = ui::CheckButton( "Lines" );
- gtk_widget_show( linescheck );
+ linescheck.show();
gtk_table_attach( GTK_TABLE( table ), linescheck, 2, 3, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
linescheck.connect( "toggled", G_CALLBACK( OnLines ), NULL );
auto polyscheck = ui::CheckButton( "Polygons" );
- gtk_widget_show( polyscheck );
+ polyscheck.show();
gtk_table_attach( GTK_TABLE( table ), polyscheck, 3, 4, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
polyscheck.connect( "toggled", G_CALLBACK( OnPoly ), NULL );
auto zlist = ui::ComboBoxText(ui::New);
- gtk_widget_show( zlist );
+ zlist.show();
vbox2.pack_start( zlist, TRUE, FALSE, 0 );
gtk_combo_box_text_append_text(zlist, "Z-Buffer Test and Write (recommended for solid or no polygons)");
}), nullptr);
table = ui::Table( 2, 2, FALSE );
- gtk_widget_show( table );
+ table.show();
vbox2.pack_start( table, TRUE, TRUE, 0 );
gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
adj = ui::Adjustment( portals.trans_3d, 0, 100, 1, 1, 0 );
auto transslider = ui::HScale( adj );
- gtk_widget_show( transslider );
+ transslider.show();
gtk_table_attach( GTK_TABLE( table ), transslider, 0, 1, 0, 1,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_scale_set_draw_value( GTK_SCALE( transslider ), FALSE );
auto translabel = ui::Label( "" );
- gtk_widget_show( translabel );
+ translabel.show();
gtk_table_attach( GTK_TABLE( table ), translabel, 1, 2, 0, 1,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
adj = ui::Adjustment( portals.clip_range, 1, 128, 1, 1, 0 );
auto clipslider = ui::HScale( adj );
- gtk_widget_show( clipslider );
+ clipslider.show();
gtk_table_attach( GTK_TABLE( table ), clipslider, 0, 1, 1, 2,
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
gtk_scale_set_draw_value( GTK_SCALE( clipslider ), FALSE );
auto cliplabel = ui::Label( "" );
- gtk_widget_show( cliplabel );
+ cliplabel.show();
gtk_table_attach( GTK_TABLE( table ), cliplabel, 1, 2, 1, 2,
(GtkAttachOptions) ( GTK_FILL ),
(GtkAttachOptions) ( 0 ), 0, 0 );
adj.connect( "value_changed", G_CALLBACK( OnScrollClip ), cliplabel );
hbox = ui::HBox( TRUE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox2.pack_start( hbox, TRUE, FALSE, 0 );
auto show3check = ui::CheckButton( "Show" );
- gtk_widget_show( show3check );
+ show3check.show();
hbox.pack_start( show3check, TRUE, TRUE, 0 );
show3check.connect( "toggled", G_CALLBACK( OnConfig3d ), NULL );
auto portalcheck = ui::CheckButton( "Portal cubic clipper" );
- gtk_widget_show( portalcheck );
+ portalcheck.show();
hbox.pack_start( portalcheck, TRUE, TRUE, 0 );
portalcheck.connect( "toggled", G_CALLBACK( OnClip ), NULL );
frame = ui::Frame( "2D View" );
- gtk_widget_show( frame );
+ frame.show();
vbox.pack_start( frame, TRUE, TRUE, 0 );
vbox2 = ui::VBox( FALSE, 5 );
gtk_container_set_border_width( GTK_CONTAINER( vbox2 ), 5 );
hbox = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox2.pack_start( hbox, TRUE, FALSE, 0 );
adj = ui::Adjustment( portals.width_2d, 2, 40, 1, 1, 0 );
auto lw2slider = ui::HScale( adj );
- gtk_widget_show( lw2slider );
+ lw2slider.show();
hbox.pack_start( lw2slider, TRUE, TRUE, 0 );
gtk_scale_set_draw_value( GTK_SCALE( lw2slider ), FALSE );
auto lw2label = ui::Label( "" );
- gtk_widget_show( lw2label );
+ lw2label.show();
hbox.pack_start( lw2label, FALSE, TRUE, 0 );
adj.connect( "value_changed", G_CALLBACK( OnScroll2d ), lw2label );
hbox = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox2.pack_start( hbox, TRUE, FALSE, 0 );
button = ui::Button( "Color" );
- gtk_widget_show( button );
+ button.show();
hbox.pack_start( button, FALSE, FALSE, 0 );
button.connect( "clicked", G_CALLBACK( OnColor2d ), NULL );
gtk_widget_set_size_request( button, 60, -1 );
auto aa2check = ui::CheckButton( "Anti-Alias (May not work on some video cards)" );
- gtk_widget_show( aa2check );
+ aa2check.show();
hbox.pack_start( aa2check, TRUE, TRUE, 0 );
aa2check.connect( "toggled", G_CALLBACK( OnAntiAlias2d ), NULL );
hbox = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox2.pack_start( hbox, TRUE, FALSE, 0 );
auto show2check = ui::CheckButton( "Show" );
- gtk_widget_show( show2check );
+ show2check.show();
hbox.pack_start( show2check, FALSE, FALSE, 0 );
show2check.connect( "toggled", G_CALLBACK( OnConfig2d ), NULL );
hbox = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox.pack_start( hbox, FALSE, FALSE, 0 );
button = ui::Button( "OK" );
- gtk_widget_show( button );
+ button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
SetClipText( cliplabel );
gtk_grab_add( dlg );
- gtk_widget_show( dlg );
+ dlg.show();
while ( loop )
gtk_main_iteration();
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
auto entry = ui::Entry(ui::New);
- gtk_widget_show( entry );
+ entry.show();
gtk_editable_set_editable( GTK_EDITABLE( entry ), FALSE );
vbox.pack_start( entry, FALSE, FALSE, 0 );
auto hbox = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox.pack_start( hbox, FALSE, FALSE, 0 );
auto check3d = ui::CheckButton( "Show 3D" );
- gtk_widget_show( check3d );
+ check3d.show();
hbox.pack_start( check3d, FALSE, FALSE, 0 );
auto check2d = ui::CheckButton( "Show 2D" );
- gtk_widget_show( check2d );
+ check2d.show();
hbox.pack_start( check2d, FALSE, FALSE, 0 );
auto button = ui::Button( "Change" );
- gtk_widget_show( button );
+ button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked", G_CALLBACK( change_clicked ), entry );
gtk_widget_set_size_request( button, 60, -1 );
hbox = ui::HBox( FALSE, 5 );
- gtk_widget_show( hbox );
+ hbox.show();
vbox.pack_start( hbox, FALSE, FALSE, 0 );
button = ui::Button( "Cancel" );
- gtk_widget_show( button );
+ button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
gtk_widget_set_size_request( button, 60, -1 );
button = ui::Button( "OK" );
- gtk_widget_show( button );
+ button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( check3d ), portals.show_3d );
gtk_grab_add( dlg );
- gtk_widget_show( dlg );
+ dlg.show();
while ( loop )
gtk_main_iteration();
EMessageBoxReturn modal_dialog_show( ui::Window window, ModalDialog& dialog ){
gtk_grab_add( GTK_WIDGET( window ) );
- gtk_widget_show( GTK_WIDGET( window ) );
+ window.show();
dialog.loop = true;
while ( dialog.loop )
vbox1.add(contents);
ui::Alignment alignment = ui::Alignment( 0.5, 0.0, 0.0, 0.0 );
- gtk_widget_show( GTK_WIDGET( alignment ) );
+ alignment.show();
vbox1.pack_start( alignment, FALSE, FALSE, 0 );
auto button = create_dialog_button( "OK", G_CALLBACK( dialog_button_ok ), &dialog );
RadioHBox RadioHBox_new( StringArrayRange names ){
auto hbox = ui::HBox( TRUE, 4 );
- gtk_widget_show( GTK_WIDGET( hbox ) );
+ hbox.show();
GSList* group = 0;
auto radio = ui::RadioButton(ui::null);
for ( StringArrayRange::Iterator i = names.first; i != names.last; ++i )
{
radio = ui::RadioButton(GTK_RADIO_BUTTON( gtk_radio_button_new_with_label( group, *i ) ));
- gtk_widget_show( GTK_WIDGET( radio ) );
+ radio.show();
hbox.pack_start( radio, FALSE, FALSE, 0 );
group = gtk_radio_button_get_group( radio );
// path entry
auto hbox = ui::HBox( FALSE, 0 );
- gtk_widget_show( GTK_WIDGET( hbox ) );
+ hbox.show();
auto entry = ui::Entry(ui::New);
gtk_entry_set_has_frame( entry, FALSE );
- gtk_widget_show( GTK_WIDGET( entry ) );
+ entry.show();
hbox.pack_start( entry, TRUE, TRUE, 0 );
// browse button
auto button = ui::Button(ui::New);
button_set_icon( button, "ellipsis.bmp" );
- gtk_widget_show( GTK_WIDGET( button ) );
+ button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
frame.add(hbox);
ui::Label DialogLabel_new( const char* name ){
auto label = ui::Label( name );
- gtk_widget_show(label);
+ label.show();
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
gtk_label_set_justify( label, GTK_JUSTIFY_LEFT );
ui::Table DialogRow_new( const char* name, ui::Widget widget ){
auto table = ui::Table( 1, 3, TRUE );
- gtk_widget_show( GTK_WIDGET( table ) );
+ table.show();
gtk_table_set_col_spacings( table, 4 );
gtk_table_set_row_spacings( table, 0 );
ui::Widget create_padding( int width, int height ){
ui::Alignment widget = ui::Alignment( 0.0, 0.0, 0.0, 0.0 );
- gtk_widget_show( widget );
+ widget.show();
gtk_widget_set_size_request( widget, width, height );
return widget;
}
hboxDummy.pack_start( iconBox, FALSE, FALSE, 0 );
auto image = ui::Image(GTK_IMAGE( gtk_image_new_from_stock( messagebox_stock_icon( icon ), GTK_ICON_SIZE_DIALOG ) ));
- gtk_widget_show( GTK_WIDGET( image ) );
+ image.show();
iconBox.pack_start( image, FALSE, FALSE, 0 );
auto label = ui::Label( text );
- gtk_widget_show( GTK_WIDGET( label ) );
+ label.show();
gtk_misc_set_alignment( GTK_MISC( label ), 0, 0.5 );
gtk_label_set_justify( label, GTK_JUSTIFY_LEFT );
gtk_label_set_line_wrap( label, TRUE );
vbox.pack_start( vboxDummy, FALSE, FALSE, 0 );
auto alignment = ui::Alignment( 0.5, 0.0, 0.0, 0.0 );
- gtk_widget_show( GTK_WIDGET( alignment ) );
+ alignment.show();
vboxDummy.pack_start( alignment, FALSE, FALSE, 0 );
auto hbox = create_dialog_hbox( 8, 0 );
auto button = create_modal_dialog_button( "OK", cancel_button );
hbox.pack_start( button, TRUE, FALSE, 0 );
gtk_widget_add_accelerator( GTK_WIDGET( button ), "clicked", accel, GDK_KEY_Escape, (GdkModifierType)0, (GtkAccelFlags)0 );
- gtk_widget_show( GTK_WIDGET( button ) );
+ button.show();
}
dialog.ret = eIDCANCEL;
{
auto button = create_modal_dialog_button( "No", no_button );
hbox.pack_start( button, TRUE, FALSE, 0 );
- gtk_widget_show( GTK_WIDGET( button ) );
+ button.show();
}
{
auto button = create_modal_dialog_button( "Cancel", cancel_button );
hbox.pack_start( button, TRUE, FALSE, 0 );
- gtk_widget_show( GTK_WIDGET( button ) );
+ button.show();
}
dialog.ret = eIDCANCEL;
{
auto button = create_modal_dialog_button( "Yes", yes_button );
hbox.pack_start( button, TRUE, FALSE, 0 );
- gtk_widget_show( GTK_WIDGET( button ) );
+ button.show();
}
dialog.ret = eIDNO;
auto button = create_modal_dialog_button( "Yes", yes_button );
hbox.pack_start( button, TRUE, FALSE, 0 );
widget_make_default( button );
- gtk_widget_show( GTK_WIDGET( button ) );
+ button.show();
}
{
auto button = create_modal_dialog_button( "No", no_button );
hbox.pack_start( button, TRUE, FALSE, 0 );
- gtk_widget_show( GTK_WIDGET( button ) );
+ button.show();
}
dialog.ret = eIDNO;
}
{
auto vsplit = ui::VPaned(ui::New);
gtk_paned_add1( GTK_PANED( hsplit ), GTK_WIDGET( vsplit ) );
- gtk_widget_show( GTK_WIDGET( vsplit ) );
+ vsplit.show();
vsplit.connect( "size_allocate", G_CALLBACK( vpaned_allocate ), &g_vpaned1 );
vsplit.connect( "notify::position", G_CALLBACK( paned_position ), &g_vpaned1 );
{
auto vsplit = ui::VPaned(ui::New);
gtk_paned_add2( GTK_PANED( hsplit ), GTK_WIDGET( vsplit ) );
- gtk_widget_show( GTK_WIDGET( vsplit ) );
+ vsplit.show();
vsplit.connect( "size_allocate", G_CALLBACK( vpaned_allocate ), &g_vpaned2 );
vsplit.connect( "notify::position", G_CALLBACK( paned_position ), &g_vpaned2 );
inline void CHECK_RESTORE( ui::Widget w ){
if ( gpointer_to_int( g_object_get_data( G_OBJECT( w ), "was_mapped" ) ) != 0 ) {
- gtk_widget_show( w );
+ w.show();
}
}
ui::ScrolledWindow create_scrolled_window( ui::Policy hscrollbar_policy, ui::Policy vscrollbar_policy, int border ){
auto scr = ui::ScrolledWindow(ui::New);
- gtk_widget_show( GTK_WIDGET( scr ) );
+ scr.show();
gtk_scrolled_window_set_policy( scr, (GtkPolicyType) hscrollbar_policy, (GtkPolicyType) vscrollbar_policy );
gtk_scrolled_window_set_shadow_type( scr, GTK_SHADOW_IN );
gtk_container_set_border_width( GTK_CONTAINER( scr ), border );
item = ui::MenuItem( "Validate (RETURN)" );
item.connect( "activate", G_CALLBACK( Textool_Validate ), NULL );
- gtk_widget_show( item );
+ item.show();
gtk_menu_append( GTK_MENU( menu ), item );
item = ui::MenuItem( "Zoom in (INSERT)" );
item.connect( "activate", G_CALLBACK( view_ZoomIn ), this );
- gtk_widget_show( item );
+ item.show();
gtk_menu_append( GTK_MENU( menu ), item );
item = ui::MenuItem( "Zoom out (DELETE)" );
item.connect( "activate", G_CALLBACK( view_ZoomOut ), this );
- gtk_widget_show( item );
+ item.show();
gtk_menu_append( GTK_MENU( menu ), item );
item = ui::MenuItem( "Cancel (ESC)" );
item.connect( "activate", G_CALLBACK( Textool_Cancel ), NULL );
- gtk_widget_show( item );
+ item.show();
gtk_menu_append( GTK_MENU( menu ), item );
gtk_menu_popup( GTK_MENU( menu ), NULL, NULL, NULL, NULL, 1, GDK_CURRENT_TIME );
vbox = ui::VBox( FALSE, 10 );
window.add(vbox);
- gtk_widget_show( vbox );
+ vbox.show();
w = ui::Label( lpText );
vbox.pack_start( w, FALSE, FALSE, 2 );
gtk_label_set_justify( GTK_LABEL( w ), GTK_JUSTIFY_LEFT );
- gtk_widget_show( w );
+ w.show();
w = gtk_hseparator_new();
vbox.pack_start( w, FALSE, FALSE, 2 );
- gtk_widget_show( w );
+ w.show();
hbox = ui::HBox( FALSE, 10 );
vbox.pack_start( hbox, FALSE, FALSE, 2 );
- gtk_widget_show( hbox );
+ hbox.show();
if ( mode == MB_OK ) {
w = ui::Button( "Ok" );
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
ret = IDOK;
}
else if ( mode == MB_OKCANCEL ) {
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = IDCANCEL;
}
else if ( mode == MB_YESNOCANCEL ) {
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDYES ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "No" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDNO ) );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "Cancel" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
- gtk_widget_show( w );
+ w.show();
ret = IDCANCEL;
}
else /* if (mode == MB_YESNO) */
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDYES ) );
gtk_widget_set_can_default( w, true );
gtk_widget_grab_default( w );
- gtk_widget_show( w );
+ w.show();
w = ui::Button( "No" );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDNO ) );
- gtk_widget_show( w );
+ w.show();
ret = IDNO;
}
- gtk_widget_show( window );
+ window.show();
gtk_grab_add( window );
while ( loop )