AudioClock: drop other unused stuff
This commit is contained in:
parent
6ae1f44c17
commit
88d4145b02
|
@ -97,8 +97,6 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string&
|
||||||
, corner_radius (4)
|
, corner_radius (4)
|
||||||
, font_size (10240)
|
, font_size (10240)
|
||||||
, editing (false)
|
, editing (false)
|
||||||
, last_pdelta (0)
|
|
||||||
, last_sdelta (0)
|
|
||||||
, dragging (false)
|
, dragging (false)
|
||||||
, drag_field (Field (0))
|
, drag_field (Field (0))
|
||||||
, xscale (1.0)
|
, xscale (1.0)
|
||||||
|
@ -1474,7 +1472,6 @@ AudioClock::on_key_press_event (GdkEventKey* ev)
|
||||||
|
|
||||||
case GDK_Escape:
|
case GDK_Escape:
|
||||||
end_edit (false);
|
end_edit (false);
|
||||||
ChangeAborted(); /* EMIT SIGNAL */
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GDK_Delete:
|
case GDK_Delete:
|
||||||
|
|
|
@ -48,7 +48,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum Mode {
|
enum Mode {
|
||||||
Timecode,
|
Timecode,
|
||||||
BBT,
|
BBT,
|
||||||
|
@ -80,7 +80,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
void set_from_playhead ();
|
void set_from_playhead ();
|
||||||
void locate ();
|
void locate ();
|
||||||
void set_mode (Mode);
|
void set_mode (Mode);
|
||||||
void set_bbt_reference (Temporal::timepos_t const &);
|
|
||||||
|
|
||||||
void copy_text_to_clipboard () const;
|
void copy_text_to_clipboard () const;
|
||||||
|
|
||||||
|
@ -106,11 +105,10 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
sigc::signal<void> ValueChanged;
|
sigc::signal<void> ValueChanged;
|
||||||
sigc::signal<void> mode_changed;
|
sigc::signal<void> mode_changed;
|
||||||
sigc::signal<void> ChangeAborted;
|
|
||||||
|
|
||||||
static std::vector<AudioClock*> clocks;
|
static std::vector<AudioClock*> clocks;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
||||||
bool get_is_duration () const { return is_duration; }
|
bool get_is_duration () const { return is_duration; }
|
||||||
|
|
||||||
|
@ -123,7 +121,7 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
ArdourWidgets::ArdourButton _left_btn;
|
ArdourWidgets::ArdourButton _left_btn;
|
||||||
ArdourWidgets::ArdourButton _right_btn;
|
ArdourWidgets::ArdourButton _right_btn;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mode _mode;
|
Mode _mode;
|
||||||
std::string _name;
|
std::string _name;
|
||||||
bool is_duration;
|
bool is_duration;
|
||||||
|
@ -136,7 +134,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
bool edit_is_negative;
|
bool edit_is_negative;
|
||||||
|
|
||||||
Temporal::timepos_t _limit_pos;
|
Temporal::timepos_t _limit_pos;
|
||||||
Temporal::timepos_t duration_position;
|
|
||||||
|
|
||||||
Glib::RefPtr<Pango::Layout> _layout;
|
Glib::RefPtr<Pango::Layout> _layout;
|
||||||
|
|
||||||
|
@ -156,10 +153,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
double corner_radius;
|
double corner_radius;
|
||||||
uint32_t font_size;
|
uint32_t font_size;
|
||||||
|
|
||||||
static const double info_font_scale_factor;
|
|
||||||
static const double separator_height;
|
|
||||||
static const double x_leading_padding;
|
|
||||||
|
|
||||||
enum Field {
|
enum Field {
|
||||||
Timecode_Hours = 1,
|
Timecode_Hours = 1,
|
||||||
Timecode_Minutes,
|
Timecode_Minutes,
|
||||||
|
@ -194,9 +187,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
Temporal::timecnt_t last_time;
|
Temporal::timecnt_t last_time;
|
||||||
|
|
||||||
bool last_pdelta;
|
|
||||||
bool last_sdelta;
|
|
||||||
|
|
||||||
bool dragging;
|
bool dragging;
|
||||||
double drag_start_y;
|
double drag_start_y;
|
||||||
double drag_y;
|
double drag_y;
|
||||||
|
@ -244,7 +234,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
void start_edit (Field f = Field (0));
|
void start_edit (Field f = Field (0));
|
||||||
void end_edit (bool);
|
void end_edit (bool);
|
||||||
void end_edit_relative (bool);
|
void end_edit_relative (bool);
|
||||||
void edit_next_field ();
|
|
||||||
|
|
||||||
Temporal::timecnt_t parse_as_distance (const std::string&);
|
Temporal::timecnt_t parse_as_distance (const std::string&);
|
||||||
Temporal::timecnt_t parse_as_timecode_distance (const std::string&);
|
Temporal::timecnt_t parse_as_timecode_distance (const std::string&);
|
||||||
|
|
Loading…
Reference in New Issue