, gain_display_box(true, 0)
, hbox(true, 2)
{
-// gain_display_box.pack_start (gain_display, true, true);
+ if (gain_display.get_parent()) {
+ gain_display.get_parent()->remove (gain_display);
+ }
+ gain_display_box.pack_start (gain_display, true, true);
meter_metric_area.set_name ("AudioTrackMetrics");
set_size_request_to_display_given_text (meter_metric_area, "-127", 0, 0);
hbox.remove (meter_alignment);
}
-// if (peak_display.get_parent()) {
-// gain_display_box.remove (peak_display);
-// }
+ if (peak_display.get_parent()) {
+ peak_display.get_parent()->remove (peak_display);
+ }
// if (gain_automation_state_button.get_parent()) {
// fader_vbox->remove (gain_automation_state_button);
pack some route-dependent stuff.
*/
-// gain_display_box.pack_end (peak_display, true, true);
+ gain_display_box.pack_end (peak_display, true, true);
hbox.pack_start (meter_alignment, true, true);
// if (r && !r->is_hidden()) {
revert_to_default_display ();
if (gpm.gain_display.get_parent()) {
- middle_button_table.remove (gpm.gain_display);
+ gpm.gain_display.get_parent()->remove (gpm.gain_display);
}
if (gpm.peak_display.get_parent()) {
- middle_button_table.remove (gpm.peak_display);
+ gpm.peak_display.get_parent()->remove (gpm.peak_display);
}
if (solo_button->get_parent()) {
set_button_names ();
+ /* unpack these from the parent and stuff them into our own
+ table
+ */
+
+ if (gpm.peak_display.get_parent()) {
+ gpm.peak_display.get_parent()->remove (gpm.peak_display);
+ }
+ if (gpm.gain_display.get_parent()) {
+ gpm.gain_display.get_parent()->remove (gpm.gain_display);
+ }
+
+ middle_button_table.attach (gpm.gain_display,0,1,1,2);
+ middle_button_table.attach (gpm.peak_display,1,2,1,2);
+
switch (w) {
case Wide:
- if (!gpm.peak_display.get_parent()) {
- middle_button_table.attach (gpm.peak_display,1,2,1,2);
- }
- if (gpm.gain_display.get_parent()) {
- middle_button_table.remove (gpm.gain_display);
- }
- if (!gpm.gain_display.get_parent()) {
- middle_button_table.attach (gpm.gain_display,0,1,1,2);
- }
if (show_sends_button) {
show_sends_button->set_text (_("Aux\nSends"));
break;
case Narrow:
- if (gpm.peak_display.get_parent()) {
- middle_button_table.remove (gpm.peak_display);
- }
-
- if (gpm.gain_display.get_parent()) {
- middle_button_table.remove (gpm.gain_display);
- }
- if (!gpm.gain_display.get_parent()) {
- middle_button_table.attach (gpm.gain_display,0,2,1,2);
- }
if (show_sends_button) {
show_sends_button->set_text (_("Snd"));
boost::shared_ptr<Route> r = _session->the_auditioner ();
gm->set_controls (r, r->shared_peak_meter(), r->amp());
+ gm->set_fader_name (X_("AudioTrackFader"));
meter_packer.set_border_width (12);
meter_packer.pack_start (*gm, false, true);
return copy;
}
-static void show_me (Gtk::FileChooserButton* fcb)
-{
- cerr << " Current folder of " << fcb << " changed to " << fcb->get_current_folder() << endl;
-}
-
-
ArdourStartup::ArdourStartup (bool require_new, const std::string& session_name, const std::string& session_path, const std::string& template_name)
: _response (RESPONSE_OK)
, config_modified (false)
need_audio_setup = EngineControl::need_setup ();
need_session_info = (session_name.empty() || require_new);
- new_folder_chooser.signal_current_folder_changed().connect (sigc::bind (sigc::ptr_fun (show_me), &new_folder_chooser));
-
_provided_session_name = session_name;
_provided_session_path = session_path;