diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-18 15:35:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-18 15:35:58 +0000 |
commit | 8ad4133d26a098e15c6de984a6a6aff5d9271c24 (patch) | |
tree | 2f6110558c20ecb743e6900e875f38ed118fcaed /gtk2_ardour/audio_clock.h | |
parent | e5329ca777caea45a754ef1b57e031602c9a61ab (diff) |
don't cache width & height for CairoWidget; provide option for all CairoWidgets to not draw their backgrounds; provide a static method to allow any (Container, probably) widget to provide background color to a CairoWidget without the requirement that it have its own window; remove existing cursor from clocks; clock text no longer has background attribute set, to correct a mistake in my understanding of pango attributes
git-svn-id: svn://localhost/ardour2/branches/3.0@10673 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.h')
-rw-r--r-- | gtk2_ardour/audio_clock.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h index 3f3c5dc846..03c5e802d2 100644 --- a/gtk2_ardour/audio_clock.h +++ b/gtk2_ardour/audio_clock.h @@ -67,7 +67,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr void set_mode (Mode); void set_bbt_reference (framepos_t); void set_is_duration (bool); - void set_draw_background (bool yn); std::string name() const { return _name; } @@ -94,7 +93,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr /** true if this clock follows the playhead, meaning that certain operations are redundant */ bool _follows_playhead; bool _off; - bool _need_bg; Gtk::Menu *ops_menu; @@ -103,7 +101,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr Glib::RefPtr<Pango::Layout> _right_layout; Pango::AttrColor* editing_attr; - Pango::AttrColor* background_attr; Pango::AttrColor* foreground_attr; Pango::AttrList normal_attributes; @@ -117,6 +114,7 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr double mode_based_info_ratio; static const double info_font_scale_factor; static const double separator_height; + static const double x_leading_padding; enum Field { Timecode_Hours, @@ -140,7 +138,7 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr std::string pre_edit_string; std::string input_string; std::string::size_type insert_max; - + framepos_t bbt_reference_time; framepos_t last_when; bool last_pdelta; |