diff --git a/MSVCardour3/Ardour3.vcproj b/MSVCardour3/Ardour3.vcproj index b757af6815..67098011cf 100644 --- a/MSVCardour3/Ardour3.vcproj +++ b/MSVCardour3/Ardour3.vcproj @@ -1323,10 +1323,6 @@ RelativePath="..\gtk2_ardour\tempo_dialog.cc" > - - @@ -1606,7 +1602,7 @@ > - - @@ -1682,7 +1674,7 @@ > - - @@ -2610,7 +2598,7 @@ > #include +#include #include #include "ardour/ardour.h" diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 24d582c039..2c2bb7effe 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -225,6 +225,19 @@ AutomationLine::hide () set_visibility (AutomationLine::VisibleAspects (_visible & ~Line)); } +void +AutomationLine::hide_all () +{ + set_visibility (AutomationLine::VisibleAspects (0)); +} + +void +AutomationLine::show () +{ + /* hide everything */ + set_visibility (AutomationLine::VisibleAspects (~0)); +} + double AutomationLine::control_point_box_size () { diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h index aa16f88add..03fa06aaea 100644 --- a/gtk2_ardour/automation_line.h +++ b/gtk2_ardour/automation_line.h @@ -118,6 +118,8 @@ public: void remove_visibility (VisibleAspects); void hide (); + void hide_all (); + void show (); void set_height (guint32); bool get_uses_gain_mapping () const; diff --git a/gtk2_ardour/axis_view.h b/gtk2_ardour/axis_view.h index 3caa3ced87..5a59959355 100644 --- a/gtk2_ardour/axis_view.h +++ b/gtk2_ardour/axis_view.h @@ -33,6 +33,7 @@ #include "pbd/xml++.h" #include "pbd/signals.h" +#include "ardour/automation_control.h" #include "ardour/session_handle.h" #include "gui_object.h" diff --git a/gtk2_ardour/beatbox_gui.cc b/gtk2_ardour/beatbox_gui.cc index aeb15cd74b..a26336d739 100644 --- a/gtk2_ardour/beatbox_gui.cc +++ b/gtk2_ardour/beatbox_gui.cc @@ -802,7 +802,7 @@ StepView::set_timing_text () if (_step.offset() == Temporal::Beats()) { text->set (X_("0")); } else { - const int64_t gcd = boost::integer::gcd (_step.offset().to_ticks(), int64_t (1920)); + const int64_t gcd = std::gcd (_step.offset().to_ticks(), int64_t (1920)); const int64_t n = _step.offset().to_ticks() / gcd; const int64_t d = 1920 / gcd; text->set (string_compose ("%1/%2", n, d)); diff --git a/gtk2_ardour/bundle_manager.h b/gtk2_ardour/bundle_manager.h index 33b9dfdccd..6470dcfa49 100644 --- a/gtk2_ardour/bundle_manager.h +++ b/gtk2_ardour/bundle_manager.h @@ -20,6 +20,7 @@ #pragma once +#include #include #include #include diff --git a/gtk2_ardour/canvas_vars.h b/gtk2_ardour/canvas_vars.inc.h similarity index 98% rename from gtk2_ardour/canvas_vars.h rename to gtk2_ardour/canvas_vars.inc.h index 51bb5ca4f4..98204e19cf 100644 --- a/gtk2_ardour/canvas_vars.h +++ b/gtk2_ardour/canvas_vars.inc.h @@ -22,8 +22,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -CANVAS_FONT_VARIABLE(SmallFont, "small font") +CANVAS_FONT_VARIABLE(VerySmallFont, "very small font") CANVAS_FONT_VARIABLE(SmallerFont, "smaller font") +CANVAS_FONT_VARIABLE(SmallFont, "small font") CANVAS_FONT_VARIABLE(NormalFont, "normal font") CANVAS_FONT_VARIABLE(BigFont, "big font") CANVAS_FONT_VARIABLE(LargeFont, "large font") diff --git a/gtk2_ardour/clearlooks.rc.in b/gtk2_ardour/clearlooks.rc.in index c38f5b30a2..26637b0df4 100644 --- a/gtk2_ardour/clearlooks.rc.in +++ b/gtk2_ardour/clearlooks.rc.in @@ -290,7 +290,12 @@ style "status_bar_box" bg[NORMAL] = @background } -style "very_small_text" +style "smaller_text" +{ + font_name = "@FONTFAMILY@ @FONT_VERYSMALL@" +} + +style "smaller_text" { font_name = "@FONTFAMILY@ @FONT_SMALLER@" } @@ -386,7 +391,7 @@ style "verbose_canvas_cursor" = "big_bold_text" { } -style "marker_text" = "small text" +style "marker_text" = "small_text" { } @@ -400,7 +405,7 @@ style "midi_tracer_textview" = "medium_monospace_text" } -style "time_axis_view_item_name" = "very small text" +style "time_axis_view_item_name" = "smaller_text" { } @@ -409,7 +414,7 @@ style "midi_tracer_textview" = "medium_monospace_text" } -style "time_axis_view_item_name" = "very small text" +style "time_axis_view_item_name" = "smaller_text" { } style "contrasting_popup" = "medium_monospace_text" @@ -506,15 +511,15 @@ style "meterbridge_label" = "small_text" { } -style "midi_device" = "very_small_text" +style "midi_device" = "smaller_text" { } -style "solo_isolate" = "very_small_text" +style "solo_isolate" = "smaller_text" { } -style "solo_safe" = "very_small_text" +style "solo_safe" = "smaller_text" { } @@ -547,7 +552,7 @@ style "midi_channel_selector_button" fg[ACTIVE] = @light_text_on_dark } -style "shuttle_control" = "very_small_text" +style "shuttle_control" = "smaller_text" { fg[NORMAL] = @control_text2 fg[ACTIVE] = @control_text2 @@ -606,7 +611,7 @@ style "font_scale_slider" = "default" bg[NORMAL] = shade(1.4, @background) } -style "very_small_bright_when_active" = "very_small_text" +style "very_small_bright_when_active" = "smaller_text" { fg[NORMAL] = @foreground bg[NORMAL] = @background @@ -761,14 +766,14 @@ style "small_red_on_black_entry" = "small_bold_text" bg[ACTIVE] = @bases } -style "audio_bus_base" = "very_small_text" +style "audio_bus_base" = "smaller_text" { fg[NORMAL] = @foreground bg[NORMAL] = @audio_bus bg[ACTIVE] = @background } -style "foldback_bus_base" = "very_small_text" +style "foldback_bus_base" = "smaller_text" { fg[NORMAL] = @foreground bg[NORMAL] = @foldback_bg @@ -933,7 +938,7 @@ style "plugin_slider" text[PRELIGHT] = @texts } -style "processor_control_button" = "very_small_text" +style "processor_control_button" = "smaller_text" { } @@ -961,7 +966,7 @@ style "inspector_track_list_display" = "track_list_display" } -style "processor_list" = "very_small_text" +style "processor_list" = "smaller_text" { bg[NORMAL] = @bases bg[ACTIVE] = shade (1.8, @fg_selected) @@ -1002,7 +1007,7 @@ style "selected_strip_frame" bg[NORMAL] = darker(@bright_indicator) } -style "flashing_alert" = "very_small_text" +style "flashing_alert" = "smaller_text" { GtkButton::child-displacement-x = 0 GtkButton::child-displacement-y = 0 diff --git a/gtk2_ardour/configuration_metadata.h b/gtk2_ardour/configuration_metadata.inc.h similarity index 100% rename from gtk2_ardour/configuration_metadata.h rename to gtk2_ardour/configuration_metadata.inc.h diff --git a/gtk2_ardour/crossfade_edit.h b/gtk2_ardour/crossfade_edit.h index dea7c37642..8daa8d5f36 100644 --- a/gtk2_ardour/crossfade_edit.h +++ b/gtk2_ardour/crossfade_edit.h @@ -28,12 +28,17 @@ #include #include #include +#include #include "canvas/canvas.h" +#include "canvas/poly_line.h" #include "evoral/Curve.h" +#include "ardour/automation_list.h" #include "ardour/session_handle.h" +#include "waveview/wave_view.h" + #include "ardour_dialog.h" namespace ARDOUR diff --git a/gtk2_ardour/crossfade_view.h b/gtk2_ardour/crossfade_view.h deleted file mode 100644 index 95a3883aec..0000000000 --- a/gtk2_ardour/crossfade_view.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2005-2014 Paul Davis - * Copyright (C) 2005 Nick Mainsbridge - * Copyright (C) 2005 Taybin Rutkin - * Copyright (C) 2006-2011 David Robillard - * Copyright (C) 2007-2011 Carl Hetherington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#pragma once - -#include -#include "pbd/signals.h" -#include "ardour/crossfade.h" - -#include "time_axis_view_item.h" - -class RouteTimeAxisView; -class AudioRegionView; - -namespace ArdourCanvas { - class PolyLine; -} - -class CrossfadeView : public TimeAxisViewItem -{ -public: - CrossfadeView (ArdourCanvas::Container*, - RouteTimeAxisView&, - std::shared_ptr, - double initial_samples_per_pixel, - Gdk::Color& basic_color, - AudioRegionView& leftview, - AudioRegionView& rightview); - - ~CrossfadeView (); - - std::shared_ptr crossfade; // ok, let 'em have it - - AudioRegionView& left_view; // and these too - AudioRegionView& right_view; - - void set_heights (double, double); - - bool valid() const { return _valid; } - bool visible() const { return _visible; } - void set_valid (bool yn); - - static PBD::Signal CatchDeletion; - - void fake_hide (); - void hide (); - void show (); - void horizontal_position_changed (); - -protected: - void reset_width_dependent_items (double pixel_width); - -private: - bool _valid; - bool _visible; - bool _all_in_view; - double _child_height; - - ArdourCanvas::PolyLine *fade_in; - ArdourCanvas::PolyLine *fade_out; - - void crossfade_changed (const PBD::PropertyChange&); - void crossfade_fades_changed (); - void active_changed (); - void redraw_curves (); - void color_handler (); -}; - diff --git a/gtk2_ardour/cue_editor.h b/gtk2_ardour/cue_editor.h index a19ee57f34..b39f3bc696 100644 --- a/gtk2_ardour/cue_editor.h +++ b/gtk2_ardour/cue_editor.h @@ -89,7 +89,7 @@ class CueEditor : public EditingContext, public PBD::HistoryOwner, public sigc:: */ void step_mouse_mode (bool next); /** @return The current mouse mode (gain, object, range, timefx etc.) - * (defined in editing_syms.h) + * (defined in editing_syms.inc.h) */ Editing::MouseMode current_mouse_mode () const; /** cue editors are *always* used for internal editing */ diff --git a/gtk2_ardour/cuebox_ui.h b/gtk2_ardour/cuebox_ui.h index 2cb17babd5..be384c244a 100644 --- a/gtk2_ardour/cuebox_ui.h +++ b/gtk2_ardour/cuebox_ui.h @@ -22,6 +22,7 @@ #include #include +#include #include "pbd/properties.h" diff --git a/gtk2_ardour/default_ui_config.in b/gtk2_ardour/default_ui_config.in index 233040ff29..ace4f4f2bc 100644 --- a/gtk2_ardour/default_ui_config.in +++ b/gtk2_ardour/default_ui_config.in @@ -20,6 +20,7 @@