svgui
1.9
|
NoteLayer.h
Go to the documentation of this file.
52 void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const override;
QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override
Definition: NoteLayer.cpp:482
void moveSelection(Selection s, sv_frame_t newStartFrame) override
Definition: NoteLayer.cpp:1120
Definition: NoteLayer.h:96
int getCurrentVerticalZoomStep() const override
Get the current vertical zoom step.
Definition: NoteLayer.cpp:341
void setProperty(const PropertyName &, int value) override
Definition: NoteLayer.cpp:189
void editDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:1010
void drawStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:873
int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const override
Definition: NoteLayer.cpp:816
Definition: SingleColourLayer.h:24
float convertValueToEventValue(double value) const
Definition: NoteLayer.cpp:249
ModelId getModel() const override
Return the ID of the model represented in this layer.
Definition: NoteLayer.h:82
PropertyType getPropertyType(const PropertyName &) const override
Definition: NoteLayer.cpp:119
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: NoteLayer.cpp:215
void addCommand(Command *command)
Add a command to the command history.
Definition: CommandHistory.cpp:135
double getValueForY(LayerGeometryProvider *v, int y) const override
Definition: NoteLayer.cpp:682
int getCompletion(LayerGeometryProvider *) const override
Return the proportion of background work complete in drawing this view, as a percentage – in most ca...
Definition: NoteLayer.cpp:69
void drawEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:932
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: NoteLayer.cpp:261
int getVerticalZoomSteps(int &defaultStep) const override
Get the number of vertical zoom steps available for this layer.
Definition: NoteLayer.cpp:333
void eraseDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:959
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
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: NoteLayer.cpp:707
Definition: NoteLayer.h:99
Interface for layers in which the Y axis represents (or can sometimes represent, depending on the dis...
Definition: VerticalScaleLayer.h:25
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: NoteLayer.cpp:309
void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const
Definition: NoteLayer.cpp:612
void addNoteOn(sv_frame_t frame, int pitch, int velocity)
Add a note-on.
Definition: NoteLayer.cpp:1286
QString getPropertyValueLabel(const PropertyName &, int value) const override
Definition: NoteLayer.cpp:173
Definition: NoteLayer.h:97
int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const override
Definition: NoteLayer.cpp:142
void drawDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:899
bool isLayerEditable() const override
This should return true if the layer can be edited by the user.
Definition: NoteLayer.h:107
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: NoteLayer.cpp:1347
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: NoteLayer.cpp:1206
bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const
Definition: NoteLayer.cpp:458
void editEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:1043
Event eventWithValue(const Event &e, double value) const
Definition: NoteLayer.cpp:228
void setVerticalZoomStep(int) override
!! lots of duplication with TimeValueLayer
Definition: NoteLayer.cpp:361
void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override
Definition: NoteLayer.cpp:1192
bool editOpen(LayerGeometryProvider *v, QMouseEvent *) override
Open an editor on the item under the mouse (e.g.
Definition: NoteLayer.cpp:1072
RangeMapper * getNewVerticalZoomRangeMapper() const override
Create and return a range mapper for vertical zoom step values.
Definition: NoteLayer.cpp:411
View is the base class of widgets that display one or more overlaid views of data against a horizonta...
Definition: View.h:55
void editStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:986
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: NoteLayer.cpp:573
EventVector getLocalPoints(LayerGeometryProvider *v, int) const
Definition: NoteLayer.cpp:434
QString getPropertyLabel(const PropertyName &) const override
Definition: NoteLayer.cpp:111
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: NoteLayer.cpp:281
void eraseStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:943
QString getPropertyGroupName(const PropertyName &) const override
Definition: NoteLayer.cpp:127
double convertValueFromEventValue(float eventValue) const
Definition: NoteLayer.cpp:234
int getYForValue(LayerGeometryProvider *v, double value) const override
VerticalScaleLayer methods.
Definition: NoteLayer.cpp:655
void resizeSelection(Selection s, Selection newSize) override
Definition: NoteLayer.cpp:1142
void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const override
Definition: NoteLayer.cpp:834
Definition: NoteLayer.h:98
void eraseEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: NoteLayer.cpp:964
void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const override
Definition: NoteLayer.cpp:1336
int getDefaultColourHint(bool dark, bool &impose) override
Definition: NoteLayer.cpp:1328
Generated by 1.8.11