diff options
author | Nil Geisweiller <ngeiswei@gmail.com> | 2015-11-29 13:57:04 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-12-22 04:52:50 +0100 |
commit | 591c9bf0d48643437ee74de99f9a9ae9d8d5a75b (patch) | |
tree | 77cbd283da4c716ab25d5d130b13b4879c2ac8ec /gtk2_ardour | |
parent | dffa3861baeb837c41d0c3090923d28089c3e981 (diff) |
Fix indentation of note_base (whitespace to tab)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/note_base.cc | 16 | ||||
-rw-r--r-- | gtk2_ardour/note_base.h | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/gtk2_ardour/note_base.cc b/gtk2_ardour/note_base.cc index feee7e7d7c..9c47fa7b18 100644 --- a/gtk2_ardour/note_base.cc +++ b/gtk2_ardour/note_base.cc @@ -238,14 +238,14 @@ NoteBase::set_mouse_fractions (GdkEvent* ev) _mouse_y_fraction = yf; if (notify) { - if (big_enough_to_trim()) { - _region.note_mouse_position (_mouse_x_fraction, _mouse_y_fraction, set_cursor); - } else { - /* pretend the mouse is in the middle, because this is not big enough - to trim right now. - */ - _region.note_mouse_position (0.5, 0.5, set_cursor); - } + if (big_enough_to_trim()) { + _region.note_mouse_position (_mouse_x_fraction, _mouse_y_fraction, set_cursor); + } else { + /* pretend the mouse is in the middle, because this is not big enough + to trim right now. + */ + _region.note_mouse_position (0.5, 0.5, set_cursor); + } } } diff --git a/gtk2_ardour/note_base.h b/gtk2_ardour/note_base.h index 1e94e709a3..059aa9dc8f 100644 --- a/gtk2_ardour/note_base.h +++ b/gtk2_ardour/note_base.h @@ -59,7 +59,7 @@ class NoteBase : public sigc::trackable virtual ~NoteBase (); void set_item (ArdourCanvas::Item *); - ArdourCanvas::Item* item() const { return _item; } + ArdourCanvas::Item* item() const { return _item; } virtual void show() = 0; virtual void hide() = 0; @@ -94,8 +94,8 @@ class NoteBase : public sigc::trackable virtual ArdourCanvas::Coord x1 () const = 0; virtual ArdourCanvas::Coord y1 () const = 0; - float mouse_x_fraction() const { return _mouse_x_fraction; } - float mouse_y_fraction() const { return _mouse_y_fraction; } + float mouse_x_fraction() const { return _mouse_x_fraction; } + float mouse_y_fraction() const { return _mouse_y_fraction; } const boost::shared_ptr<NoteType> note() const { return _note; } MidiRegionView& region_view() const { return _region; } @@ -128,8 +128,8 @@ class NoteBase : public sigc::trackable /// hue circle divided into 16 equal-looking parts, courtesy Thorsten Wilms static const uint32_t midi_channel_colors[16]; - bool mouse_near_ends () const; - virtual bool big_enough_to_trim () const; + bool mouse_near_ends () const; + virtual bool big_enough_to_trim () const; protected: enum State { None, Pressed, Dragging }; @@ -143,10 +143,10 @@ protected: bool _own_note; bool _selected; bool _valid; - float _mouse_x_fraction; - float _mouse_y_fraction; + float _mouse_x_fraction; + float _mouse_y_fraction; - void set_mouse_fractions (GdkEvent*); + void set_mouse_fractions (GdkEvent*); private: bool event_handler (GdkEvent *); |