13
0

MainClock: drop 'primary' parameter

The main clock no longer use direct access to the config system, and
is no longer restricted to know whether it is primary clock or not.
This commit is contained in:
Mads Kiilerich 2022-11-18 12:08:18 +01:00
parent c805ff5fdf
commit 1e77814c62
3 changed files with 4 additions and 7 deletions

View File

@ -277,8 +277,8 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
: Gtkmm2ext::UI (PROGRAM_NAME, X_("gui"), argcp, argvp)
, session_load_in_progress (false)
, gui_object_state (new GUIObjectState)
, primary_clock (new MainClock (X_("primary"), X_("transport"), true ))
, secondary_clock (new MainClock (X_("secondary"), X_("secondary"), false))
, primary_clock (new MainClock (X_("primary"), X_("transport")))
, secondary_clock (new MainClock (X_("secondary"), X_("secondary")))
, big_clock (new AudioClock (X_("bigclock"), false, "big", true, true, false, false))
, video_timeline(0)
, ignore_dual_punch (false)

View File

@ -37,11 +37,9 @@ using namespace ARDOUR;
MainClock::MainClock (
const std::string& clock_name,
const std::string& widget_name,
bool primary
const std::string& widget_name
)
: AudioClock (clock_name, false, widget_name, true, true, false, true)
, _primary (primary)
, _suspend_delta_mode_signal (false)
, _widget_name(widget_name)
{

View File

@ -28,7 +28,7 @@
class MainClock : public AudioClock
{
public:
MainClock (const std::string& clock_name, const std::string& widget_name, bool primary);
MainClock (const std::string& clock_name, const std::string& widget_name);
void set_session (ARDOUR::Session *s);
void set_display_delta_mode (ARDOUR::ClockDeltaMode m);
void set (Temporal::timepos_t const &, bool force = false);
@ -41,7 +41,6 @@ private:
void edit_current_meter ();
void insert_new_tempo ();
void insert_new_meter ();
bool _primary;
bool _suspend_delta_mode_signal;
std::string _widget_name;
ARDOUR::ClockDeltaMode _delta_mode;