diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-01 21:11:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-01 21:19:56 +0200 |
commit | b976bf8986290e8f4812a50e7fdd98b9cbeb4249 (patch) | |
tree | 75cffb9761a024943c18e502a3d84e3607954a55 /gtk2_ardour/midi_streamview.h | |
parent | 221902138938a47f32b925f7e37602230e9de538 (diff) |
NO-OP whitespace & foratting of header files
Diffstat (limited to 'gtk2_ardour/midi_streamview.h')
-rw-r--r-- | gtk2_ardour/midi_streamview.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/gtk2_ardour/midi_streamview.h b/gtk2_ardour/midi_streamview.h index 78f0008157..f4328ab093 100644 --- a/gtk2_ardour/midi_streamview.h +++ b/gtk2_ardour/midi_streamview.h @@ -55,7 +55,7 @@ class Selection; class MidiStreamView : public StreamView { - public: +public: MidiStreamView (MidiTimeAxisView&); ~MidiStreamView (); @@ -78,23 +78,26 @@ class MidiStreamView : public StreamView void update_note_range(uint8_t note_num); void set_layer_display (LayerDisplay); -// bool can_change_layer_display() const { return false; } //revert this change for now. Although stacked view is weirdly implemented wrt the "scroomer", it is still necessary to be able to manage layered regions. + //bool can_change_layer_display() const { return false; } // revert this change for now. Although stacked view is weirdly implemented wrt the "scroomer", it is still necessary to be able to manage layered regions. void redisplay_track (); - inline double contents_height() const - { return (child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); } + inline double contents_height() const { + return (child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); + } - inline double note_to_y(uint8_t note) const - { return contents_height() - - (note + 1 - lowest_note()) * note_height() + 1; } + inline double note_to_y(uint8_t note) const { + return contents_height() - (note + 1 - lowest_note()) * note_height() + 1; + } uint8_t y_to_note(double y) const; - inline double note_height() const - { return contents_height() / (double)contents_note_range(); } + inline double note_height() const { + return contents_height() / (double)contents_note_range(); + } - inline uint8_t contents_note_range() const - { return highest_note() - lowest_note() + 1; } + inline uint8_t contents_note_range() const { + return highest_note() - lowest_note() + 1; + } sigc::signal<void> NoteRangeChanged; @@ -107,16 +110,16 @@ class MidiStreamView : public StreamView void suspend_updates (); void resume_updates (); - protected: +protected: void setup_rec_box (); void update_rec_box (); - private: +private: RegionView* add_region_view_internal ( - boost::shared_ptr<ARDOUR::Region>, - bool wait_for_waves, - bool recording = false); + boost::shared_ptr<ARDOUR::Region>, + bool wait_for_waves, + bool recording = false); void display_region(MidiRegionView* region_view, bool load_model); void display_track (boost::shared_ptr<ARDOUR::Track> tr); |