svgui
1.9
|
TextLayer.cpp
Go to the documentation of this file.
716 tr("The items you are pasting came from a layer with different source material from this one. Do you want to re-align them in time, to match the source material for this layer?"),
void drawDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:425
virtual bool snapToFeatureFrame(LayerGeometryProvider *, sv_frame_t &, int &resolution, SnapType, int) const
Adjust the given frame to snap to the nearest feature, if possible.
Definition: Layer.h:226
virtual QColor getForeground() const =0
bool getValueExtents(double &min, double &max, bool &logarithmic, 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: TextLayer.cpp:112
void moveSelection(Selection s, sv_frame_t newStartFrame) override
Definition: TextLayer.cpp:618
virtual QColor getBackground() const =0
PropertyList getProperties() const override
Definition: SingleColourLayer.cpp:60
virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const =0
Definition: SingleColourLayer.h:24
static int scalePixelSize(int pixels)
Take a "design pixel" size and scale it for the actual display.
Definition: ViewManager.cpp:857
void modelReplaced()
void editEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:563
int getCompletion(LayerGeometryProvider *) const override
Return the proportion of background work complete in drawing this view, as a percentage – in most ca...
Definition: TextLayer.cpp:46
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: TextLayer.cpp:118
EventVector getLocalPoints(LayerGeometryProvider *v, int x, int y) const
Definition: TextLayer.cpp:125
int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const override
Definition: TextLayer.cpp:92
int getDefaultColourHint(bool dark, bool &impose) override
Definition: TextLayer.cpp:787
virtual sv_frame_t getFrameForX(int x) const =0
Return the closest frame to the given pixel x-coordinate.
Definition: Layer.h:198
bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, int &resolution, SnapType snap, int ycoord) const override
!! too much overlap with TimeValueLayer/TimeInstantLayer
Definition: TextLayer.cpp:239
virtual QColor getBaseQColor() const
Definition: SingleColourLayer.cpp:241
void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const override
Definition: SingleColourLayer.cpp:274
bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const
Definition: TextLayer.cpp:171
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: TextLayer.cpp:292
QString getPropertyValueLabel(const PropertyName &, int value) const override
Definition: TextLayer.cpp:99
int getColourIndex(QString name) const
Return the index of the colour with the given name, if found in the database.
Definition: ColourDatabase.cpp:67
PropertyType getPropertyType(const PropertyName &) const override
Definition: TextLayer.cpp:86
virtual sv_frame_t alignFromReference(LayerGeometryProvider *v, sv_frame_t frame) const
Definition: Layer.cpp:198
void resizeSelection(Selection s, Selection newSize) override
Definition: TextLayer.cpp:640
void editDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:535
bool clipboardHasDifferentAlignment(LayerGeometryProvider *v, const Clipboard &clip) const
Definition: Layer.cpp:209
int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const override
Definition: SingleColourLayer.cpp:88
void drawEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:446
virtual sv_frame_t alignToReference(LayerGeometryProvider *v, sv_frame_t frame) const
Definition: Layer.cpp:187
void eraseEnd(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:492
virtual int getPaintHeight() const
Definition: LayerGeometryProvider.h:188
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: TextLayer.cpp:802
PropertyType getPropertyType(const PropertyName &) const override
Definition: SingleColourLayer.cpp:75
bool editOpen(LayerGeometryProvider *, QMouseEvent *) override
Open an editor on the item under the mouse (e.g.
Definition: TextLayer.cpp:592
int getYForHeight(LayerGeometryProvider *v, double height) const
Definition: TextLayer.cpp:278
void setProperty(const PropertyName &, int value) override
Definition: TextLayer.cpp:106
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: SingleColourLayer.cpp:294
void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const override
Definition: TextLayer.cpp:795
void drawStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:398
Definition: Layer.h:196
QString getPropertyValueLabel(const PropertyName &, int value) const override
Definition: SingleColourLayer.cpp:113
void editStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:512
void eraseStart(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:471
QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override
Definition: TextLayer.cpp:200
void eraseDrag(LayerGeometryProvider *v, QMouseEvent *) override
Definition: TextLayer.cpp:487
QString getPropertyLabel(const PropertyName &) const override
Definition: TextLayer.cpp:80
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: TextLayer.cpp:702
void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override
Definition: TextLayer.cpp:688
void setProperty(const PropertyName &, int value) override
Definition: SingleColourLayer.cpp:132
virtual int getXForFrame(sv_frame_t frame) const =0
Return the pixel x-coordinate corresponding to a given sample frame (which may be negative)...
virtual int getPaintWidth() const
Definition: LayerGeometryProvider.h:187
QString getPropertyLabel(const PropertyName &) const override
Definition: SingleColourLayer.cpp:68
virtual View * getView()=0
double getHeightForY(LayerGeometryProvider *v, int y) const
Definition: TextLayer.cpp:285
Generated by 1.8.11