-
- bool field_motion_notify_event (GdkEventMotion *ev, Field);
- bool field_button_press_event (GdkEventButton *ev, Field);
- bool field_button_release_event (GdkEventButton *ev, Field);
- bool field_button_scroll_event (GdkEventScroll *ev, Field);
- bool field_key_release_event (GdkEventKey *, Field);
- bool field_focus_in_event (GdkEventFocus *, Field);
- bool field_focus_out_event (GdkEventFocus *, Field);
-
- void set_smpte (nframes_t, bool);
- void set_bbt (nframes_t, bool);
- void set_minsec (nframes_t, bool);
- void set_frames (nframes_t, bool);
-
- nframes_t get_frames (Field,nframes_t pos = 0,int dir=1);
-
- void smpte_sanitize_display();
- nframes_t smpte_frame_from_display () const;
- nframes_t bbt_frame_from_display (nframes_t) const;
- nframes_t bbt_frame_duration_from_display (nframes_t) const;
- nframes_t minsec_frame_from_display () const;
- nframes_t audio_frame_from_display () const;
-
- void build_ops_menu ();
- void setup_events ();
-
- void smpte_offset_changed ();
- void set_size_requests ();
-
- static const uint32_t field_length[(int)AudioFrames+1];
+ bool on_key_press_event (GdkEventKey *);
+ bool on_key_release_event (GdkEventKey *);
+ bool on_scroll_event (GdkEventScroll *ev);
+ void on_style_changed (const Glib::RefPtr<Gtk::Style>&);
+ void on_size_request (Gtk::Requisition* req);
+ bool on_motion_notify_event (GdkEventMotion *ev);
+ bool on_focus_out_event (GdkEventFocus*);
+
+ void set_slave_info ();
+ void set_timecode (framepos_t, bool);
+ void set_bbt (framepos_t, ARDOUR::framecnt_t, bool);
+ void set_minsec (framepos_t, bool);
+ void set_frames (framepos_t, bool);
+ void set_out_of_bounds (bool negative);
+
+ void set_clock_dimensions (Gtk::Requisition&);
+
+ framepos_t get_frame_step (Field, framepos_t pos = 0, int dir = 1);
+
+ bool timecode_validate_edit (const std::string&);
+ bool bbt_validate_edit (const std::string&);
+ bool minsec_validate_edit (const std::string&);
+
+ framepos_t frames_from_timecode_string (const std::string&) const;
+ framepos_t frames_from_bbt_string (framepos_t, const std::string&) const;
+ framepos_t frame_duration_from_bbt_string (framepos_t, const std::string&) const;
+ framepos_t frames_from_minsec_string (const std::string&) const;
+ framepos_t frames_from_audioframes_string (const std::string&) const;
+
+ void session_configuration_changed (std::string);
+ void session_property_changed (const PBD::PropertyChange&);
+
+ Field index_to_field () const;
+
+ void start_edit (Field f = Field (0));
+ void end_edit (bool);
+ void end_edit_relative (bool);
+ void edit_next_field ();
+ ARDOUR::framecnt_t parse_as_distance (const std::string&);
+
+ ARDOUR::framecnt_t parse_as_timecode_distance (const std::string&);
+ ARDOUR::framecnt_t parse_as_minsec_distance (const std::string&);
+ ARDOUR::framecnt_t parse_as_bbt_distance (const std::string&);
+ ARDOUR::framecnt_t parse_as_frames_distance (const std::string&);
+
+ void set_font (Pango::FontDescription);
+ void set_colors ();
+ void show_edit_status (int length);
+ int merge_input_and_edit_string ();
+ std::string get_field (Field);
+
+ void drop_focus ();
+ void dpi_reset ();
+
+ double bg_r, bg_g, bg_b, bg_a;
+ double cursor_r, cursor_g, cursor_b, cursor_a;
+
+ double xscale;
+ double yscale;