-ui::Window PatchInspector::BuildDialog()
-{
- ui::Window window = ui::Window(create_floating_window("Patch Properties", m_parent));
-
- m_position_tracker.connect(window);
-
- global_accel_connect_window(window);
-
- window_connect_focus_in_clear_focus_widget(window);
-
-
- {
- auto vbox = ui::VBox(FALSE, 5);
- gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
- vbox.show();
- window.add(vbox);
- {
- auto hbox = ui::HBox(FALSE, 5);
- hbox.show();
- vbox.pack_start(hbox, TRUE, TRUE, 0);
- {
- auto vbox2 = ui::VBox(FALSE, 0);
- gtk_container_set_border_width(GTK_CONTAINER(vbox2), 0);
- vbox2.show();
- hbox.pack_start(vbox2, TRUE, TRUE, 0);
- {
- auto frame = ui::Frame("Details");
- frame.show();
- vbox2.pack_start(frame, TRUE, TRUE, 0);
- {
- auto vbox3 = ui::VBox(FALSE, 5);
- gtk_container_set_border_width(GTK_CONTAINER(vbox3), 5);
- vbox3.show();
- frame.add(vbox3);
- {
- auto table = ui::Table(2, 2, FALSE);
- table.show();
- vbox3.pack_start(table, TRUE, TRUE, 0);
- gtk_table_set_row_spacings(table, 5);
- gtk_table_set_col_spacings(table, 5);
- {
- auto label = ui::Label("Row:");
- label.show();
- table.attach(label, {0, 1, 0, 1},
- {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)},
- {0, 0});
- }
- {
- auto label = ui::Label("Column:");
- label.show();
- table.attach(label, {1, 2, 0, 1},
- {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)},
- {0, 0});
- }
- {
- auto combo = ui::ComboBoxText(ui::New);
- combo.connect("changed", G_CALLBACK(OnSelchangeComboColRow), this);
- AddDialogData(combo, m_nRow);
-
- combo.show();
- table.attach(combo, {0, 1, 1, 2},
- {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)},
- {0, 0});
- combo.dimensions(60, -1);
- m_pRowCombo = combo;
- }
-
- {
- auto combo = ui::ComboBoxText(ui::New);
- combo.connect("changed", G_CALLBACK(OnSelchangeComboColRow), this);
- AddDialogData(combo, m_nCol);
-
- combo.show();
- table.attach(combo, {1, 2, 1, 2},
- {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)},
- {0, 0});
- combo.dimensions(60, -1);
- m_pColCombo = combo;
- }
- }
- auto table = ui::Table(5, 2, FALSE);
- table.show();
- vbox3.pack_start(table, TRUE, TRUE, 0);
- gtk_table_set_row_spacings(table, 5);
- gtk_table_set_col_spacings(table, 5);
- {
- auto label = ui::Label("X:");
- label.show();
+ui::Window PatchInspector::BuildDialog(){
+ ui::Window window = ui::Window(create_floating_window( "Patch Properties", m_parent ));
+
+ m_position_tracker.connect( window );
+
+ global_accel_connect_window( window );
+
+ window_connect_focus_in_clear_focus_widget( window );
+
+
+ {
+ auto vbox = ui::VBox( FALSE, 5 );
+ gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
+ vbox.show();
+ window.add(vbox);
+ {
+ auto hbox = ui::HBox( FALSE, 5 );
+ hbox.show();
+ vbox.pack_start( hbox, TRUE, TRUE, 0 );
+ {
+ auto vbox2 = ui::VBox( FALSE, 0 );
+ gtk_container_set_border_width( GTK_CONTAINER( vbox2 ), 0 );
+ vbox2.show();
+ hbox.pack_start( vbox2, TRUE, TRUE, 0 );
+ {
+ auto frame = ui::Frame( "Details" );
+ frame.show();
+ vbox2.pack_start( frame, TRUE, TRUE, 0 );
+ {
+ auto vbox3 = ui::VBox( FALSE, 5 );
+ gtk_container_set_border_width( GTK_CONTAINER( vbox3 ), 5 );
+ vbox3.show();
+ frame.add(vbox3);
+ {
+ auto table = ui::Table( 2, 2, FALSE );
+ table.show();
+ vbox3.pack_start( table, TRUE, TRUE, 0 );
+ gtk_table_set_row_spacings( table, 5 );
+ gtk_table_set_col_spacings( table, 5 );
+ {
+ auto label = ui::Label( "Row:" );
+ label.show();
+ table.attach(label, {0, 1, 0, 1}, {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)}, {0, 0});
+ }
+ {
+ auto label = ui::Label( "Column:" );
+ label.show();
+ table.attach(label, {1, 2, 0, 1}, {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)}, {0, 0});
+ }
+ {
+ auto combo = ui::ComboBoxText(ui::New);
+ combo.connect( "changed", G_CALLBACK( OnSelchangeComboColRow ), this );
+ AddDialogData( combo, m_nRow );
+
+ combo.show();
+ table.attach(combo, {0, 1, 1, 2}, {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)}, {0, 0});
+ combo.dimensions(60, -1);
+ m_pRowCombo = combo;
+ }
+
+ {
+ auto combo = ui::ComboBoxText(ui::New);
+ combo.connect( "changed", G_CALLBACK( OnSelchangeComboColRow ), this );
+ AddDialogData( combo, m_nCol );
+
+ combo.show();
+ table.attach(combo, {1, 2, 1, 2}, {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)}, {0, 0});
+ combo.dimensions(60, -1);
+ m_pColCombo = combo;
+ }
+ }
+ auto table = ui::Table( 5, 2, FALSE );
+ table.show();
+ vbox3.pack_start( table, TRUE, TRUE, 0 );
+ gtk_table_set_row_spacings( table, 5 );
+ gtk_table_set_col_spacings( table, 5 );
+ {
+ auto label = ui::Label( "X:" );
+ label.show();