mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
AudioClock: drop unused ModeChanged and is_transient
Clock settings are now retrieved using the clocks vector.
This commit is contained in:
parent
8c74099e80
commit
acf803d310
2 changed files with 1 additions and 9 deletions
|
|
@ -68,7 +68,6 @@ using namespace Temporal;
|
|||
|
||||
using Gtkmm2ext::Keyboard;
|
||||
|
||||
sigc::signal<void> AudioClock::ModeChanged;
|
||||
vector<AudioClock*> AudioClock::clocks;
|
||||
|
||||
#define BBT_BAR_CHAR "|"
|
||||
|
|
@ -79,7 +78,6 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string&
|
|||
bool accept_on_focus_out)
|
||||
: ops_menu (0)
|
||||
, _name (clock_name)
|
||||
, is_transient (transient)
|
||||
, is_duration (duration)
|
||||
, editable (allow_edit)
|
||||
, _follows_playhead (follows_playhead)
|
||||
|
|
@ -120,7 +118,7 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string&
|
|||
set_mode (Timecode);
|
||||
AudioClock::set (last_when(), true);
|
||||
|
||||
if (!is_transient) {
|
||||
if (!transient) {
|
||||
clocks.push_back (this);
|
||||
}
|
||||
|
||||
|
|
@ -2314,10 +2312,6 @@ AudioClock::set_mode (Mode m, bool noemit)
|
|||
|
||||
AudioClock::set (last_when(), true);
|
||||
|
||||
if (!is_transient && !noemit) {
|
||||
ModeChanged (); /* EMIT SIGNAL (the static one)*/
|
||||
}
|
||||
|
||||
mode_changed (); /* EMIT SIGNAL (the member one) */
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
|||
sigc::signal<void> mode_changed;
|
||||
sigc::signal<void> ChangeAborted;
|
||||
|
||||
static sigc::signal<void> ModeChanged;
|
||||
static std::vector<AudioClock*> clocks;
|
||||
|
||||
protected:
|
||||
|
|
@ -127,7 +126,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
|||
private:
|
||||
Mode _mode;
|
||||
std::string _name;
|
||||
bool is_transient;
|
||||
bool is_duration;
|
||||
bool editable;
|
||||
/** true if this clock follows the playhead, meaning that certain operations are redundant */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue