|
lmms
Cross-platform music production software
|
#include <Clip.h>
Public Slots | |
| void | toggleMute () |
| Mutes this Clip. | |
Signals | |
| void | lengthChanged () |
| void | positionChanged () |
| void | destroyedClip () |
| void | colorChanged () |
| Signals inherited from lmms::Model | |
| void | dataChanged () |
| void | dataUnchanged () |
| void | propertiesChanged () |
Public Member Functions | |
| Clip (Track *track) | |
Creates a new clip for the given track track. | |
| ~Clip () override | |
| Destroys the given clip. | |
| Track * | getTrack () const |
| const QString & | name () const |
| void | setName (const QString &name) |
| QString | displayName () const override |
| const TimePos & | startPosition () const |
| TimePos | endPosition () const |
| const TimePos & | length () const |
| bool | hasTrackContainer () const |
| bool | isInPattern () const |
| bool | manuallyResizable () const |
| void | setAutoResize (const bool r) |
| Set whether a clip has been resized yet by the user or the knife tool. | |
| bool | getAutoResize () const |
| auto | color () const -> const std::optional< QColor > & |
| void | setColor (const std::optional< QColor > &color) |
| virtual void | movePosition (const TimePos &pos) |
| Move this Clip's position in time. | |
| virtual void | changeLength (const TimePos &length) |
| Change the length of this Clip. | |
| virtual void | updateLength () |
| virtual gui::ClipView * | createView (gui::TrackView *tv)=0 |
| void | selectViewOnCreate (bool select) |
| bool | getSelectViewOnCreate () |
| TimePos | startTimeOffset () const |
| virtual void | setStartTimeOffset (const TimePos &startTimeOffset) |
| virtual Clip * | clone ()=0 |
| Creates a copy of this clip. | |
| Public Member Functions inherited from lmms::Model | |
| Model (Model *parent, QString displayName=QString(), bool defaultConstructed=false) | |
| ~Model () override=default | |
| bool | isDefaultConstructed () const |
| Model * | parentModel () const |
| virtual void | setDisplayName (const QString &displayName) |
| virtual QString | fullDisplayName () const |
| Public Member Functions inherited from lmms::JournallingObject | |
| JournallingObject () | |
| ~JournallingObject () override | |
| jo_id_t | id () const |
| void | saveJournallingState (const bool newState) |
| void | restoreJournallingState () |
| void | addJournalCheckPoint () |
| QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) override |
| void | restoreState (const QDomElement &_this) override |
| bool | isJournalling () const |
| void | setJournalling (const bool _sr) |
| bool | testAndSetJournalling (const bool newState) |
| bool | isJournallingStateStackEmpty () const |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| virtual QString | nodeName () const =0 |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Static Public Member Functions | |
| static bool | comparePosition (const Clip *a, const Clip *b) |
| Returns true if and only if a->startPosition() < b->startPosition(). | |
| static void | copyStateTo (Clip *src, Clip *dst) |
| Copies the state of a clip to another clip. | |
Protected Member Functions | |
| Clip (const Clip &other) | |
| Creates a duplicate clip of the one provided. | |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
| Protected Member Functions inherited from lmms::SerializingObject | |
| virtual void | saveSettings (QDomDocument &doc, QDomElement &element)=0 |
| virtual void | loadSettings (const QDomElement &element)=0 |
Private Member Functions | |
| mapPropertyFromModel (bool, isMuted, setMuted, m_mutedModel) | |
| mapPropertyFromModel (bool, isSolo, setSolo, m_soloModel) | |
Private Attributes | |
| Track * | m_track |
| QString | m_name |
| TimePos | m_startPosition |
| TimePos | m_length |
| TimePos | m_startTimeOffset |
| BoolModel | m_mutedModel |
| BoolModel | m_soloModel |
| bool | m_autoResize = true |
| bool | m_selectViewOnCreate |
| std::optional< QColor > | m_color |
Friends | |
| class | ClipView |
| lmms::Clip::Clip | ( | Track * | track | ) |
Creates a new clip for the given track track.
| track | The track that will contain the new object |
|
override |
Destroys the given clip.
|
protected |
Creates a duplicate clip of the one provided.
| other | The clip object which will be copied. |
|
virtual |
Change the length of this Clip.
If the clip's length has changed, update it. We also add a journal entry for undo and update the display.
| length | The new length of the clip. |
Reimplemented in lmms::SampleClip.
|
pure virtual |
Creates a copy of this clip.
Implemented in lmms::AutomationClip, lmms::MidiClip, lmms::PatternClip, and lmms::SampleClip.
|
inline |
|
signal |
Returns true if and only if a->startPosition() < b->startPosition().
Copies the state of a clip to another clip.
|
pure virtual |
Implemented in lmms::AutomationClip, lmms::MidiClip, lmms::PatternClip, and lmms::SampleClip.
|
signal |
|
inlineoverridevirtual |
Reimplemented from lmms::Model.
|
inline |
|
inline |
|
inline |
|
inline |
| bool lmms::Clip::hasTrackContainer | ( | ) | const |
| bool lmms::Clip::isInPattern | ( | ) | const |
|
inline |
|
signal |
| bool lmms::Clip::manuallyResizable | ( | ) | const |
|
private |
|
private |
|
virtual |
Move this Clip's position in time.
If the clip has moved, update its position. We also add a journal entry for undo and update the display.
| pos | The new position of the clip. |
|
inline |
|
signal |
|
inline |
|
inline |
Set whether a clip has been resized yet by the user or the knife tool.
If a clip has been resized previously, it will not automatically resize when editing it.
| void lmms::Clip::setColor | ( | const std::optional< QColor > & | color | ) |
|
inline |
|
virtual |
Reimplemented in lmms::SampleClip.
|
inline |
| TimePos lmms::Clip::startTimeOffset | ( | ) | const |
|
slot |
Mutes this Clip.
|
inlinevirtual |
Reimplemented in lmms::AutomationClip, lmms::MidiClip, and lmms::SampleClip.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |