diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-18 00:18:18 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-18 00:18:18 +0200 |
commit | 44657d8fc631416346d194d39acce5a5e9c623c8 (patch) | |
tree | 22fe90c41c386238c5eb40a072eecb9dcaceb2b4 /gtk2_ardour | |
parent | 5ed68fd2f81a61e707eebb83eaef649c7af12e72 (diff) |
NO-OP: whitespace & scope
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/add_route_dialog.cc | 103 |
1 files changed, 45 insertions, 58 deletions
diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc index 0819c629ca..4b5c2b2376 100644 --- a/gtk2_ardour/add_route_dialog.cc +++ b/gtk2_ardour/add_route_dialog.cc @@ -108,64 +108,51 @@ AddRouteDialog::AddRouteDialog () vbox->set_spacing (18); vbox->set_border_width (5); - { //Template & Template Description area - HBox* template_hbox = manage (new HBox); - template_hbox->set_spacing (8); - - Gtk::ScrolledWindow *template_scroller = manage (new Gtk::ScrolledWindow()); - template_scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); - template_scroller->add (trk_template_chooser); - - Gtk::ScrolledWindow *desc_scroller = manage (new Gtk::ScrolledWindow()); - desc_scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); - desc_scroller->add (trk_template_desc); - - template_hbox->pack_start (*template_scroller, true, true); - - trk_template_desc_frame.set_name (X_("TextHighlightFrame")); - trk_template_desc_frame.add (*desc_scroller); - template_hbox->pack_start (trk_template_desc_frame, true, true); - - //template_chooser is the treeview showing available templates - trk_template_model = TreeStore::create (track_template_columns); - trk_template_chooser.set_model (trk_template_model); - trk_template_chooser.append_column (_("Template"), track_template_columns.name); + HBox* template_hbox = manage (new HBox); + template_hbox->set_spacing (8); + + Gtk::ScrolledWindow *template_scroller = manage (new Gtk::ScrolledWindow()); + template_scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + template_scroller->add (trk_template_chooser); + + Gtk::ScrolledWindow *desc_scroller = manage (new Gtk::ScrolledWindow()); + desc_scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + desc_scroller->add (trk_template_desc); + + template_hbox->pack_start (*template_scroller, true, true); + + trk_template_desc_frame.set_name (X_("TextHighlightFrame")); + trk_template_desc_frame.add (*desc_scroller); + template_hbox->pack_start (trk_template_desc_frame, true, true); + + /* template_chooser is the treeview showing available templates */ + trk_template_model = TreeStore::create (track_template_columns); + trk_template_chooser.set_model (trk_template_model); + trk_template_chooser.append_column (_("Template"), track_template_columns.name); #ifdef MIXBUS - trk_template_chooser.append_column (_("Created With"), track_template_columns.created_with); + trk_template_chooser.append_column (_("Created With"), track_template_columns.created_with); #endif - trk_template_chooser.set_headers_visible (true); - trk_template_chooser.get_selection()->set_mode (SELECTION_SINGLE); - trk_template_chooser.get_selection()->signal_changed().connect (sigc::mem_fun (*this, &AddRouteDialog::trk_template_row_selected)); - trk_template_chooser.set_sensitive (true); - - //template_desc is the textview that displays the currently selected template's description - trk_template_desc.set_editable (false); - trk_template_desc.set_wrap_mode (Gtk::WRAP_WORD); - trk_template_desc.set_size_request(400,200); - trk_template_desc.set_name (X_("TextOnBackground")); - trk_template_desc.set_border_width (6); - - vbox->pack_start (*template_hbox, true, true); - } - -// { -// HBox *trk_go_hbox = manage (new HBox); -// trk_go_hbox->pack_start (*(manage (new Gtk::HSeparator)), true, true); -// trk_go_hbox->pack_start (*(manage (new Gtk::Button(_("Add template")))), false, false); -// trk_go_hbox->set_spacing (6); -// vbox->pack_start (*trk_go_hbox, true, true); -// } - - { - HBox *separator_hbox = manage (new HBox); - separator_hbox->pack_start (manual_label, false, false); - separator_hbox->pack_start (*(manage (new Gtk::HSeparator)), true, true); - separator_hbox->set_spacing (6); - vbox->pack_start (*separator_hbox, true, true); - } - - /* track/bus choice */ + trk_template_chooser.set_headers_visible (true); + trk_template_chooser.get_selection()->set_mode (SELECTION_SINGLE); + trk_template_chooser.get_selection()->signal_changed().connect (sigc::mem_fun (*this, &AddRouteDialog::trk_template_row_selected)); + trk_template_chooser.set_sensitive (true); + /* template_desc is the textview that displays the currently selected template's description */ + trk_template_desc.set_editable (false); + trk_template_desc.set_wrap_mode (Gtk::WRAP_WORD); + trk_template_desc.set_size_request(400,200); + trk_template_desc.set_name (X_("TextOnBackground")); + trk_template_desc.set_border_width (6); + + vbox->pack_start (*template_hbox, true, true); + + HBox *separator_hbox = manage (new HBox); + separator_hbox->pack_start (manual_label, false, false); + separator_hbox->pack_start (*(manage (new Gtk::HSeparator)), true, true); + separator_hbox->set_spacing (6); + vbox->pack_start (*separator_hbox, true, true); + + /* track/bus choice */ Table *add_table = manage (new Table (8, 8, false)); add_table->set_row_spacings (8); @@ -261,11 +248,11 @@ AddRouteDialog::AddRouteDialog () show_all_children (); /* track template info will be managed whenever - this dialog is shown, via ::on_show() - */ + * this dialog is shown, via ::on_show() + */ add_button (_("Add and Close"), AddAndClose); -// add_button (_("Add"), Add); + //add_button (_("Add"), Add); set_response_sensitive (AddAndClose, true); set_default_response (AddAndClose); |