#include <set>
#include <string>
#include <sys/time.h>
-#include <bitset>
#include <boost/optional.hpp>
namespace Gtkmm2ext {
class TearOff;
+ class Bindings;
}
namespace ARDOUR {
class ProgressReporter;
class EditorCursor;
class MouseCursors;
+class VerboseCursor;
/* <CMT Additions> */
class ImageFrameView;
void show_editor_list (bool yn);
void set_selected_mixer_strip (TimeAxisView&);
void mixer_strip_width_changed ();
- void hide_track_in_display (TimeAxisView* tv, bool temporary = false);
+ void hide_track_in_display (TimeAxisView* tv, bool apply_to_selection = false);
/* nudge is initiated by transport controls owned by ARDOUR_UI */
void get_regions_corresponding_to (boost::shared_ptr<ARDOUR::Region> region, std::vector<RegionView*>& regions);
- void show_verbose_canvas_cursor_with (const std::string& txt, int32_t xoffset = 0, int32_t yoffset = 0);
- void hide_verbose_canvas_cursor();
-
void center_screen (framepos_t);
TrackViewList axis_views_from_routes (boost::shared_ptr<ARDOUR::RouteList>) const;
return _cursors;
}
+ VerboseCursor* verbose_cursor () const {
+ return _verbose_cursor;
+ }
+
+ void get_pointer_position (double &, double &) const;
+
protected:
void map_transport_state ();
void map_position_change (framepos_t);
void post_zoom ();
Editing::MouseMode mouse_mode;
+ Editing::MouseMode pre_internal_mouse_mode;
bool _internal_editing;
Editing::MouseMode effective_mouse_mode () const;
void location_changed (ARDOUR::Location *);
void location_flags_changed (ARDOUR::Location *, void *);
void refresh_location_display ();
- void refresh_location_display_s (const PBD::PropertyChange&);
void refresh_location_display_internal (ARDOUR::Locations::LocationList&);
void add_new_location (ARDOUR::Location *);
+ ArdourCanvas::Group* add_new_location_internal (ARDOUR::Location *);
void location_gone (ARDOUR::Location *);
void remove_marker (ArdourCanvas::Item&, GdkEvent*);
gint really_remove_marker (ARDOUR::Location* loc);
ArdourCanvas::Canvas* track_canvas;
- ArdourCanvas::NoEventText* verbose_canvas_cursor;
- bool verbose_cursor_visible;
+ friend class VerboseCursor;
+ VerboseCursor* _verbose_cursor;
void parameter_changed (std::string);
bool track_canvas_motion (GdkEvent*);
- void set_verbose_canvas_cursor (const std::string &, double x, double y);
- void set_verbose_canvas_cursor_text (const std::string &);
- void show_verbose_canvas_cursor();
-
- bool verbose_cursor_on; // so far unused
-
Gtk::EventBox time_canvas_event_box;
Gtk::EventBox track_canvas_event_box;
Gtk::EventBox time_button_event_box;
Glib::RefPtr<Gtk::ToggleAction> ruler_cd_marker_action;
bool no_ruler_shown_update;
- gint ruler_button_press (GdkEventButton*);
- gint ruler_button_release (GdkEventButton*);
- gint ruler_mouse_motion (GdkEventMotion*);
+ bool ruler_button_press (GdkEventButton*);
+ bool ruler_button_release (GdkEventButton*);
+ bool ruler_mouse_motion (GdkEventMotion*);
bool ruler_scroll (GdkEventScroll* event);
Gtk::Widget * ruler_grabbed_widget;
void set_ruler_visible (RulerType, bool);
void toggle_ruler_visibility (RulerType rt);
void ruler_toggled (int);
- gint ruler_label_button_release (GdkEventButton*);
+ bool ruler_label_button_release (GdkEventButton*);
void store_ruler_visibility ();
void restore_ruler_visibility ();
void reset_controls_layout_width ();
void reset_controls_layout_height (int32_t height);
- bool horizontal_scroll_left_press ();
- void horizontal_scroll_left_release ();
- bool horizontal_scroll_right_press ();
- void horizontal_scroll_right_release ();
+ enum Direction {
+ LEFT,
+ RIGHT,
+ UP,
+ DOWN
+ };
+
+ bool scroll_press (Direction);
+ void scroll_release ();
sigc::connection _scroll_connection;
int _scroll_callbacks;
bool track_canvas_map_handler (GdkEventAny*);
- gint edit_controls_button_release (GdkEventButton*);
+ bool edit_controls_button_release (GdkEventButton*);
Gtk::Menu *edit_controls_left_menu;
Gtk::Menu *edit_controls_right_menu;
bool button_press_handler_1 (ArdourCanvas::Item *, GdkEvent *, ItemType);
bool button_press_handler_2 (ArdourCanvas::Item *, GdkEvent *, ItemType);
bool button_release_handler (ArdourCanvas::Item*, GdkEvent*, ItemType);
+ bool button_press_dispatch (GdkEventButton*);
+ bool button_release_dispatch (GdkEventButton*);
bool motion_handler (ArdourCanvas::Item*, GdkEvent*, bool from_autoscroll = false);
bool enter_handler (ArdourCanvas::Item*, GdkEvent*, ItemType);
bool leave_handler (ArdourCanvas::Item*, GdkEvent*, ItemType);
+ Gtkmm2ext::Bindings* button_bindings;
+ XMLNode* button_settings () const;
+
/* KEYMAP HANDLING */
void register_actions ();
void duplicate_some_regions (RegionSelection&, float times);
void duplicate_selection (float times);
void region_fill_selection ();
+ void combine_regions ();
+ void uncombine_regions ();
void region_fill_track ();
void audition_playlist_region_standalone (boost::shared_ptr<ARDOUR::Region>);
void snap_regions_to_grid ();
void close_region_gaps ();
- int get_prefix (float&, bool&);
-
void keyboard_paste ();
void region_from_selection ();
void temporal_zoom_by_frame (framepos_t start, framepos_t end, const std::string & op);
void temporal_zoom_to_frame (bool coarser, framepos_t frame);
- void amplitude_zoom (gdouble scale);
- void amplitude_zoom_step (bool in);
-
void insert_region_list_drag (boost::shared_ptr<ARDOUR::Region>, int x, int y);
void insert_region_list_selection (float times);
void move_to_start ();
void move_to_end ();
- void goto_frame ();
void center_playhead ();
void center_edit_point ();
- void edit_cursor_backward ();
- void edit_cursor_forward ();
void playhead_forward_to_grid ();
void playhead_backward_to_grid ();
- void playhead_backward ();
- void playhead_forward ();
void scroll_playhead (bool forward);
void scroll_backward (float pages=0.8f);
void scroll_forward (float pages=0.8f);
void scroll_tracks_down ();
void scroll_tracks_up ();
- void delete_sample_forward ();
- void delete_sample_backward ();
- void delete_screen ();
- void search_backwards ();
- void search_forwards ();
void set_mark ();
void clear_markers ();
void clear_ranges ();
bool have_pending_keyboard_selection;
framepos_t pending_keyboard_selection_start;
- boost::shared_ptr<ARDOUR::Region> select_region_for_operation (int dir, TimeAxisView **tv);
- void extend_selection_to_end_of_region (bool next);
- void extend_selection_to_start_of_region (bool previous);
+ void move_range_selection_start_or_end_to_region_boundary (bool, bool);
Editing::SnapType _snap_type;
Editing::SnapMode _snap_mode;
void remove_control_point (ArdourCanvas::Item*, GdkEvent*);
void mouse_brush_insert_region (RegionView*, framepos_t pos);
- void brush (framepos_t);
-
- void show_verbose_time_cursor (framepos_t frame, double offset = 0, double xpos=-1, double ypos=-1);
- void show_verbose_duration_cursor (framepos_t start, framepos_t end, double offset = 0, double xpos=-1, double ypos=-1);
- double clamp_verbose_cursor_x (double);
- double clamp_verbose_cursor_y (double);
/* Canvas event handlers */
void set_playhead_cursor ();
- void kbd_driver (sigc::slot<void,GdkEvent*>, bool use_track_canvas = true, bool use_time_canvas = true, bool can_select = true);
void toggle_region_mute ();
- void kbd_brush ();
-
- void kbd_do_brush (GdkEvent*);
- void kbd_do_audition (GdkEvent*);
void initialize_canvas ();
Gtkmm2ext::StatefulToggleButton internal_edit_button;
void toggle_internal_editing ();
- gint mouse_select_button_release (GdkEventButton*);
+ bool mouse_select_button_release (GdkEventButton*);
Gtk::VBox automation_box;
Gtk::Button automation_mode_button;
void pitch_shift_region ();
int time_fx (RegionSelection&, float val, bool pitching);
+ void transpose_region ();
+
/* editor-mixer strip */
MixerStrip *current_mixer_strip;