svgui
1.9
|
FlexiNoteLayer.h
Go to the documentation of this file.
42 void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const override;
178 void getRelativeMousePosition(LayerGeometryProvider *v, Event ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const;
void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const override
Definition: FlexiNoteLayer.cpp:917
QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override
Definition: FlexiNoteLayer.cpp:497
void setIntelligentActions(bool on)
Definition: FlexiNoteLayer.h:112
Definition: FlexiNoteLayer.h:99
void editEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1221
int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const override
Definition: FlexiNoteLayer.cpp:136
int getCompletion(LayerGeometryProvider *) const override
Return the proportion of background work complete in drawing this view, as a percentage – in most ca...
Definition: FlexiNoteLayer.cpp:226
bool getNoteToEdit(LayerGeometryProvider *v, int x, int y, Event &) const
Definition: FlexiNoteLayer.cpp:472
int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const override
Definition: FlexiNoteLayer.cpp:903
int getDefaultColourHint(bool dark, bool &impose) override
Definition: FlexiNoteLayer.cpp:1861
void drawDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:980
Definition: SingleColourLayer.h:24
void splitStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1261
bool setDisplayExtents(double min, double max) override
Set the displayed minimum and maximum values for the y axis to the given range, if supported...
Definition: FlexiNoteLayer.cpp:290
Definition: FlexiNoteLayer.h:31
QString getPropertyValueLabel(const PropertyName &, int value) const override
Definition: FlexiNoteLayer.cpp:167
void setVerticalRangeToNoteRange(LayerGeometryProvider *v)
Definition: FlexiNoteLayer.cpp:1891
void setProperty(const PropertyName &, int value) override
Definition: FlexiNoteLayer.cpp:183
void moveSelection(Selection s, sv_frame_t newStartFrame) override
Definition: FlexiNoteLayer.cpp:1645
void addCommand(Command *command)
Add a command to the command history.
Definition: CommandHistory.cpp:135
bool shouldConvertMIDIToHz() const
Definition: FlexiNoteLayer.cpp:215
QString getPropertyGroupName(const PropertyName &) const override
Definition: FlexiNoteLayer.cpp:119
void setVerticalScale(VerticalScale scale)
Definition: FlexiNoteLayer.cpp:200
bool getValueExtents(double &min, double &max, bool &log, QString &unit) const override
Return the minimum and maximum values for the y axis of the model in this layer, as well as whether t...
Definition: FlexiNoteLayer.cpp:234
virtual void deleteSelectionInclusive(Selection s)
Definition: FlexiNoteLayer.cpp:1715
PropertyList getProperties() const override
Definition: FlexiNoteLayer.cpp:94
void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override
Definition: FlexiNoteLayer.cpp:1734
void eraseEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1043
void eraseStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1022
void drawEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1011
sv_frame_t m_greatestLeftNeighbourFrame
Definition: FlexiNoteLayer.h:192
Definition: FlexiNoteLayer.h:109
void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const override
Paint the given rectangle of this layer onto the given view using the given painter, superimposing it on top of any existing material in that view.
Definition: FlexiNoteLayer.cpp:787
void deleteSelection(Selection s) override
Definition: FlexiNoteLayer.cpp:1696
int getVerticalZoomSteps(int &defaultStep) const override
Get the number of vertical zoom steps available for this layer.
Definition: FlexiNoteLayer.cpp:315
Interface for classes that provide geometry information (such as size, start frame, and a large number of other properties) about the disposition of a layer.
Definition: LayerGeometryProvider.h:45
Interface for layers in which the Y axis represents (or can sometimes represent, depending on the dis...
Definition: VerticalScaleLayer.h:25
bool isLayerScrollable(const LayerGeometryProvider *v) const override
This should return true if the layer can safely be scrolled automatically by a given view (simply cop...
Definition: FlexiNoteLayer.cpp:208
bool editOpen(LayerGeometryProvider *v, QMouseEvent *) override
Open an editor on the item under the mouse (e.g.
Definition: FlexiNoteLayer.cpp:1603
void splitEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1286
void setProperties(const QXmlAttributes &attributes) override
Set the particular properties of a layer (those specific to the subclass) from a set of XML attribute...
Definition: FlexiNoteLayer.cpp:1880
int getCurrentVerticalZoomStep() const override
Get the current vertical zoom step.
Definition: FlexiNoteLayer.cpp:326
void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const override
Definition: FlexiNoteLayer.cpp:1869
ModelId getModel() const override
Return the ID of the model represented in this layer.
Definition: FlexiNoteLayer.h:84
bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, int &resolution, SnapType snap, int ycoord) const override
Adjust the given frame to snap to the nearest feature, if possible.
Definition: FlexiNoteLayer.cpp:587
void snapSelectedNotesToPitchTrack(LayerGeometryProvider *v, Selection s)
Definition: FlexiNoteLayer.cpp:1417
void addNote(LayerGeometryProvider *v, QMouseEvent *e) override
Definition: FlexiNoteLayer.cpp:1354
Definition: FlexiNoteLayer.h:100
QString getPropertyLabel(const PropertyName &) const override
Definition: FlexiNoteLayer.cpp:103
bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, bool interactive) override
Paste from the given clipboard onto the layer at the given frame offset.
Definition: FlexiNoteLayer.cpp:1748
bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const
Definition: FlexiNoteLayer.cpp:448
void editStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1061
double getValueForY(LayerGeometryProvider *v, int y) const override
Definition: FlexiNoteLayer.cpp:759
void setVerticalZoomStep(int) override
!! lots of duplication with TimeValueLayer
Definition: FlexiNoteLayer.cpp:348
sv_frame_t m_smallestRightNeighbourFrame
Definition: FlexiNoteLayer.h:193
void splitNotesAt(LayerGeometryProvider *v, sv_frame_t frame)
Definition: FlexiNoteLayer.cpp:1306
View is the base class of widgets that display one or more overlaid views of data against a horizonta...
Definition: View.h:55
ModelId getAssociatedPitchModel(LayerGeometryProvider *v) const
Definition: FlexiNoteLayer.cpp:1393
void eraseDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1038
void reAnalyseRegion(sv_frame_t, sv_frame_t, float, float)
virtual void mouseMoveEvent(LayerGeometryProvider *v, QMouseEvent *)
Definition: FlexiNoteLayer.cpp:1537
Definition: FlexiNoteLayer.h:108
Definition: FlexiNoteLayer.h:106
void editDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:1119
ChangeEventsCommand * m_editingCommand
Definition: FlexiNoteLayer.h:194
void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const
Definition: FlexiNoteLayer.cpp:666
bool getDisplayExtents(double &min, double &max) const override
Return the minimum and maximum values within the visible area for the y axis of this layer...
Definition: FlexiNoteLayer.cpp:255
QString getScaleUnits() const override
Definition: FlexiNoteLayer.cpp:128
void drawStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: FlexiNoteLayer.cpp:956
void resizeSelection(Selection s, Selection newSize) override
Definition: FlexiNoteLayer.cpp:1666
int getYForValue(LayerGeometryProvider *v, double value) const override
VerticalScaleLayer methods.
Definition: FlexiNoteLayer.cpp:724
EventVector getLocalPoints(LayerGeometryProvider *v, int) const
Definition: FlexiNoteLayer.cpp:424
void addNoteOn(sv_frame_t frame, int pitch, int velocity)
Add a note-on.
Definition: FlexiNoteLayer.cpp:1827
VerticalScale getVerticalScale() const
Definition: FlexiNoteLayer.h:115
bool updateNoteValueFromPitchCurve(LayerGeometryProvider *v, Event ¬e) const
Definition: FlexiNoteLayer.cpp:1495
PropertyType getPropertyType(const PropertyName &) const override
Definition: FlexiNoteLayer.cpp:111
bool isLayerEditable() const override
This should return true if the layer can be edited by the user.
Definition: FlexiNoteLayer.h:119
RangeMapper * getNewVerticalZoomRangeMapper() const override
Create and return a range mapper for vertical zoom step values.
Definition: FlexiNoteLayer.cpp:400
void mergeNotes(LayerGeometryProvider *v, Selection s, bool inclusive)
Definition: FlexiNoteLayer.cpp:1455
void materialiseReAnalysis()
void getRelativeMousePosition(LayerGeometryProvider *v, Event ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const
Definition: FlexiNoteLayer.cpp:1575
Generated by 1.8.11