- // use wide toolbar
- check = gtk_check_button_new_with_label( _( "Wide Toolbar" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bLatchedWideToolbar, DLG_CHECK_BOOL );
-
- // use plugin toolbar
- check = gtk_check_button_new_with_label( _( "Plugin Toolbar" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bLatchedPluginToolbar, DLG_CHECK_BOOL );
-
-#ifdef _WIN32
- // win32 file dialog
- check = gtk_check_button_new_with_label( _( "Use win32 file dialog (hacky)" ) );
- gtk_widget_show( check );
- // gtk_container_add (GTK_CONTAINER (vbox), check);
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bNativeGUI, DLG_CHECK_BOOL );
-
- // position on primary monitor
- check = gtk_check_button_new_with_label( _( "Start on Primary Monitor" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- g_object_set_data( G_OBJECT( dialog ), "check_startonprimary", check );
- gtk_signal_connect( GTK_OBJECT( check ), "clicked", GTK_SIGNAL_FUNC( UpdateSensitivity ), this );
- AddDialogData( check, &m_bStartOnPrimMon, DLG_CHECK_BOOL );
-#endif
-
- // Add the page to the notebook
- gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), pageframe, preflabel );
-
- /******** Mouse group *********/
- preflabel = gtk_label_new( _( "Mouse" ) );
- gtk_widget_show( preflabel );
- pageframe = gtk_frame_new( _( "Mouse" ) );
- gtk_container_set_border_width( GTK_CONTAINER( pageframe ), 5 );
- gtk_widget_show( pageframe );
- vbox = gtk_vbox_new( FALSE, 5 );
- gtk_widget_show( vbox );
- gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
- gtk_container_add( GTK_CONTAINER( pageframe ), vbox );
-
- // Buttons
- // container
- hbox2 = gtk_hbox_new( FALSE, 5 );
- gtk_widget_show( hbox2 );
- gtk_box_pack_start( GTK_BOX( vbox ), hbox2, FALSE, FALSE, 0 );
-
- // 2 button radio
- radio = gtk_radio_button_new_with_label( NULL, _( "2 button" ) );
- gtk_widget_show( radio );
- gtk_box_pack_start( GTK_BOX( hbox2 ), radio, FALSE, FALSE, 0 );
-
- // 3 button radio
- radio = gtk_radio_button_new_with_label_from_widget( GTK_RADIO_BUTTON( radio ), _( "3 button" ) );
- gtk_widget_show( radio );
- gtk_box_pack_start( GTK_BOX( hbox2 ), radio, FALSE, FALSE, 0 );
- AddDialogData( radio, &m_nMouse, DLG_RADIO_INT );
-
- // right click to drop entity
- check = gtk_check_button_new_with_label( _( "Right click to drop entities" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bRightClick, DLG_CHECK_BOOL );
-
- // Mouse chaser (and this does what?)
- check = gtk_check_button_new_with_label( _( "Mouse chaser" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bChaseMouse, DLG_CHECK_BOOL );
-
- // Alt + multi-drag
- check = gtk_check_button_new_with_label( _( "ALT + multi-drag" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bALTEdge, DLG_CHECK_BOOL );
-
- // Mouse wheel increments
- // container
- hbox2 = gtk_hbox_new( FALSE, 5 );
- gtk_widget_show( hbox2 );
- gtk_box_pack_start( GTK_BOX( vbox ), hbox2, FALSE, FALSE, 0 );
-
- // label
- label = gtk_label_new( _( "Wheel Mouse inc:" ) );
- gtk_widget_show( label );
- gtk_box_pack_start( GTK_BOX( hbox2 ), label, FALSE, FALSE, 0 );
-
- // entry
- entry = gtk_entry_new();
- gtk_widget_show( entry );
- gtk_widget_set_usize( entry, 40, -2 );
- gtk_box_pack_start( GTK_BOX( hbox2 ), entry, FALSE, FALSE, 0 );
- AddDialogData( entry, &m_nWheelInc, DLG_ENTRY_INT );
-
- // Add the page to the notebook
- gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), pageframe, preflabel );
-
- /******** Editing group *********/
- preflabel = gtk_label_new( _( "Editing" ) );
- gtk_widget_show( preflabel );
- pageframe = gtk_frame_new( _( "Editing" ) );
- gtk_container_set_border_width( GTK_CONTAINER( pageframe ), 5 );
- gtk_widget_show( pageframe );
- vbox = gtk_vbox_new( FALSE, 5 );
- gtk_widget_show( vbox );
- gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
- gtk_container_add( GTK_CONTAINER( pageframe ), vbox );
-
- // Vertex editing splits faces
- check = gtk_check_button_new_with_label( _( "Vertex editing splits face" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bVertexSplit, DLG_CHECK_BOOL );
-
- // Fix target/targetname collisions
- check = gtk_check_button_new_with_label( _( "Fix target/targetname collisions" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bDoTargetFix, DLG_CHECK_BOOL );
-
- // Clipper tool uses caulk
- check = gtk_check_button_new_with_label( _( "Clipper tool uses caulk" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bClipCaulk, DLG_CHECK_BOOL );
-
- // Don't clamp plane points
- check = gtk_check_button_new_with_label( _( "Don't clamp plane points" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bNoClamp, DLG_CHECK_BOOL );
-
- // Snap to grid
- check = gtk_check_button_new_with_label( _( "Snap to grid" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bSnap, DLG_CHECK_BOOL );
-
- // Select patch by bounding box
- check = gtk_check_button_new_with_label( _( "Select patches by bounding box" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bPatchBBoxSelect, DLG_CHECK_BOOL );
-
- // Rotation increment
- // container
- table = gtk_table_new( 2, 3, FALSE );
- gtk_widget_show( table );
- gtk_box_pack_start( GTK_BOX( vbox ), table, FALSE, TRUE, 0 );
- gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
- gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
-
- // label
- label = gtk_label_new( _( "Rotation increment:" ) );
- gtk_widget_show( label );
- gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
- (GtkAttachOptions) ( 0 ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
-
- // entry
- entry = gtk_entry_new();
- gtk_widget_show( entry );
- gtk_widget_set_usize( entry, 60, -2 );
- gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 0, 1,
- (GtkAttachOptions) ( GTK_FILL ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
- AddDialogData( entry, &m_nRotation, DLG_ENTRY_INT );
-
- // Undo levels
- // label
- label = gtk_label_new( _( "Undo Levels:" ) );
- gtk_widget_show( label );
- gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
- (GtkAttachOptions) ( 0 ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
-
- // spinner (allows undo levels to be set to zero)
- spin = gtk_spin_button_new( GTK_ADJUSTMENT( gtk_adjustment_new( 1, 0, 64, 1, 10, 10 ) ), 1, 0 );
- gtk_widget_show( spin );
- gtk_table_attach( GTK_TABLE( table ), spin, 1, 2, 1, 2,
- (GtkAttachOptions) ( GTK_FILL ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_widget_set_usize( spin, 60, -2 );
- AddDialogData( spin, &m_nUndoLevels, DLG_SPIN_INT );
-
- // Patch subdivisions
- // label
- label = gtk_label_new( _( "Patch subdivisions:" ) );
- gtk_widget_show( label );
- gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 2, 3,
- (GtkAttachOptions) ( 0 ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
-
- // entry (spinner perhaps? [2-16])
- entry = gtk_entry_new();
- gtk_widget_show( entry );
- gtk_widget_set_usize( entry, 60, -2 );
- gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 2, 3,
- (GtkAttachOptions) ( GTK_FILL ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
- AddDialogData( entry, &m_nSubdivisions, DLG_ENTRY_INT );
-
- // Add the page to the notebook
- gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), pageframe, preflabel );
-
- /******** Save/Load group *********/
- preflabel = gtk_label_new( _( "Startup/Auto save" ) );
- gtk_widget_show( preflabel );
- pageframe = gtk_frame_new( _( "Startup/Auto save" ) );
- gtk_container_set_border_width( GTK_CONTAINER( pageframe ), 5 );
- gtk_widget_show( pageframe );
- vbox = gtk_vbox_new( FALSE, 5 );
- gtk_widget_show( vbox );
- gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
- gtk_container_add( GTK_CONTAINER( pageframe ), vbox );
-
- // Snapshots
- check = gtk_check_button_new_with_label( _( "Snapshots" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bSnapShots, DLG_CHECK_BOOL );
-
- // load last project on open
- check = gtk_check_button_new_with_label( _( "Load last project on open" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bLoadLast, DLG_CHECK_BOOL );
-
- // load last map on open
- check = gtk_check_button_new_with_label( _( "Load last map on open" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bLoadLastMap, DLG_CHECK_BOOL );
-
- // Auto save..
- // container
- hbox2 = gtk_hbox_new( FALSE, 5 );
- gtk_widget_show( hbox2 );
- gtk_box_pack_start( GTK_BOX( vbox ), hbox2, FALSE, FALSE, 0 );
- gtk_container_set_border_width( GTK_CONTAINER( hbox2 ), 0 );
-
- // label
- check = gtk_check_button_new_with_label( _( "Auto save every" ) );
- gtk_widget_show( check );
- gtk_box_pack_start( GTK_BOX( hbox2 ), check, FALSE, FALSE, 0 );
- AddDialogData( check, &m_bAutoSave, DLG_CHECK_BOOL );
-
- // spinner
- spin = gtk_spin_button_new( GTK_ADJUSTMENT( gtk_adjustment_new( 1, 1, 60, 1, 10, 10 ) ), 1, 0 );
- gtk_widget_show( spin );
- gtk_box_pack_start( GTK_BOX( hbox2 ), spin, FALSE, FALSE, 0 );
- gtk_widget_set_usize( spin, 60, -2 );
- AddDialogData( spin, &m_nAutoSave, DLG_SPIN_INT );
-
- // label
- label = gtk_label_new( _( "minutes" ) );
- gtk_widget_show( label );
- gtk_box_pack_start( GTK_BOX( hbox2 ), label, FALSE, FALSE, 0 );
-
- // Add the page to the notebook
- gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), pageframe, preflabel );
-
- /******** Paths group *********/
- preflabel = gtk_label_new( _( "Paths" ) );
- gtk_widget_show( preflabel );
- pageframe = gtk_frame_new( _( "Paths" ) );
- gtk_container_set_border_width( GTK_CONTAINER( pageframe ), 5 );
- gtk_widget_show( pageframe );
- vbox = gtk_vbox_new( FALSE, 5 );
- gtk_widget_show( vbox );
- gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
- gtk_container_add( GTK_CONTAINER( pageframe ), vbox );
-
- // prefab path
- // table
- table = gtk_table_new( 3, 3, FALSE );
- gtk_widget_show( table );
- gtk_box_pack_start( GTK_BOX( vbox ), table, FALSE, TRUE, 0 );
- gtk_table_set_row_spacings( GTK_TABLE( table ), 5 );
- gtk_table_set_col_spacings( GTK_TABLE( table ), 5 );
-
- // label
- label = gtk_label_new( _( "Prefab path:" ) );
- gtk_widget_show( label );
- gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 0, 1,
- (GtkAttachOptions) ( 0 ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
-
- // path entry
- entry = gtk_entry_new();
- gtk_widget_show( entry );
- gtk_widget_set_usize( GTK_WIDGET( entry ), 240, -2 );
- gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 0, 1,
- (GtkAttachOptions) ( GTK_FILL ),
- (GtkAttachOptions) ( 0 ), 1, 0 );
- AddDialogData( entry, &m_strPrefabPath, DLG_ENTRY_TEXT );
-
-#if 0
- // browse button
- button = gtk_button_new_with_label( "..." );
- gtk_widget_show( button );
- gtk_signal_connect( GTK_OBJECT( button ), "clicked", GTK_SIGNAL_FUNC( OnBtnBrowseprefab ), this );
- gtk_table_attach( GTK_TABLE( table ), button, 2, 3, 0, 1,
- (GtkAttachOptions) ( 0 ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
-#endif
-
- // User ini path
- // label
- label = gtk_label_new( _( "User INI path:" ) );
- gtk_widget_show( label );
- gtk_table_attach( GTK_TABLE( table ), label, 0, 1, 1, 2,
- (GtkAttachOptions) ( 0 ),
- (GtkAttachOptions) ( 0 ), 0, 0 );
- gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
-
- // user ini path entry
- entry = gtk_entry_new();
- gtk_widget_show( entry );
- gtk_table_attach( GTK_TABLE( table ), entry, 1, 2, 1, 2,
- (GtkAttachOptions) ( GTK_FILL ),
- (GtkAttachOptions) ( 0 ), 1, 0 );
- AddDialogData( entry, &m_strUserPath, DLG_ENTRY_TEXT );
-
- // user ini browse button
- button = gtk_button_new_with_label( "..." );
- gtk_widget_show( button );
- gtk_signal_connect( GTK_OBJECT( button ), "clicked", GTK_SIGNAL_FUNC( OnBtnBrowseuserini ), this );
- gtk_table_attach( GTK_TABLE( table ), button, 2, 3, 1, 2,
- (GtkAttachOptions) ( 0 ),
- (GtkAttachOptions) ( 0 ), 0, 0 );