|
lmms
Cross-platform music production software
|
#include <SongEditor.h>
Public Types | |
| enum class | EditMode { Draw , Knife , Select } |
Public Slots | |
| void | scrolled (int new_pos) |
| void | selectRegionFromPixels (int xStart, int xEnd) |
| void | stopSelectRegion () |
| void | updateRubberband () |
| void | setEditMode (lmms::gui::SongEditor::EditMode mode) |
| void | setEditModeDraw () |
| void | setEditModeKnife () |
| void | setEditModeSelect () |
| void | toggleProportionalSnap () |
| void | updatePosition () |
| void | updatePositionLine () |
| void | selectAllClips (bool select) |
| Public Slots inherited from lmms::gui::TrackContainerView | |
| void | realignTracks () |
| lmms::gui::TrackView * | createTrackView (lmms::Track *_t) |
| void | deleteTrackView (lmms::gui::TrackView *_tv) |
| void | dropEvent (QDropEvent *_de) override |
| void | dragEnterEvent (QDragEnterEvent *_dee) override |
| void | stopRubberBand () |
| stopRubberBand Removes the rubber band from display when finished with. | |
Signals | |
| void | pixelsPerBarChanged (float) |
| void | proportionalSnapChanged () |
| Signals inherited from lmms::gui::TrackContainerView | |
| void | positionChanged (const lmms::TimePos &_pos) |
| void | tracksRealigned () |
Public Member Functions | |
| SongEditor (Song *song) | |
| ~SongEditor () override | |
| void | saveSettings (QDomDocument &doc, QDomElement &element) override |
| void | loadSettings (const QDomElement &element) override |
| ComboBoxModel * | snappingModel () const |
| float | getSnapSize () const |
| Return grid size as number of bars. | |
| QString | getSnapSizeString () const |
| TimeLineWidget * | timeLine () const |
| PositionLine * | positionLine () const |
| Public Member Functions inherited from lmms::gui::TrackContainerView | |
| TrackContainerView (TrackContainer *tc) | |
| ~TrackContainerView () override | |
| void | saveSettings (QDomDocument &_doc, QDomElement &_this) override |
| void | loadSettings (const QDomElement &_this) override |
| QScrollArea * | contentWidget () |
| const TimePos & | currentPosition () const |
| virtual bool | fixedClips () const |
| float | pixelsPerBar () const |
| void | setPixelsPerBar (int ppb) |
| const TrackView * | trackViewAt (const int _y) const |
| bool | rubberBandActive () const |
| QVector< selectableObject * > | selectedObjects () |
| TrackContainer * | model () |
| const TrackContainer * | model () const |
| const QList< TrackView * > & | trackViews () const |
| void | moveTrackView (TrackView *trackView, int indexTo) |
| void | moveTrackViewUp (TrackView *trackView) |
| void | moveTrackViewDown (TrackView *trackView) |
| void | scrollToTrackView (TrackView *_tv) |
| TrackView * | addTrackView (TrackView *_tv) |
| void | removeTrackView (TrackView *_tv) |
| void | clearAllTracks () |
| QString | nodeName () const override |
| unsigned int | totalHeightOfTracks () const |
| RubberBand * | rubberBand () const |
| Public Member Functions inherited from lmms::gui::ModelView | |
| ModelView (Model *model, QWidget *widget) | |
| virtual | ~ModelView () |
| virtual void | setModel (Model *model, bool isOldModelValid=true) |
| virtual void | unsetModel () |
| Model * | model () |
| const Model * | model () const |
| template<class T> | |
| T * | castModel () |
| template<class T> | |
| const T * | castModel () 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 () |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
| Public Member Functions inherited from lmms::SerializingObjectHook | |
| SerializingObjectHook () | |
| virtual | ~SerializingObjectHook () |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *me) override |
| void | mouseMoveEvent (QMouseEvent *me) override |
| void | mouseReleaseEvent (QMouseEvent *me) override |
| Protected Member Functions inherited from lmms::gui::ModelView | |
| virtual void | modelChanged () |
| QWidget * | widget () |
| virtual void | doConnections () |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
Private Slots | |
| void | setMasterVolume (int new_val) |
| void | showMasterVolumeFloat () |
| void | updateMasterVolumeFloat (int new_val) |
| void | hideMasterVolumeFloat () |
| void | setMasterPitch (int new_val) |
| void | showMasterPitchFloat () |
| void | updateMasterPitchFloat (int new_val) |
| void | hideMasterPitchFloat () |
| void | updateScrollBar (int len) |
| void | zoomingChanged () |
Private Member Functions | |
| void | keyPressEvent (QKeyEvent *ke) override |
| void | wheelEvent (QWheelEvent *we) override |
| bool | allowRubberband () const override |
| bool | knifeMode () const override |
| int | calculatePixelsPerBar () const |
| Convert zoom slider's value to bar width in pixels. | |
| int | calculateZoomSliderValue (int pixelsPerBar) const |
| Convert bar width in pixels to zoom slider value. | |
| int | trackIndexFromSelectionPoint (int yPos) |
| int | indexOfTrackView (const TrackView *tv) |
| void | adjustLeftRightScoll (int value) |
Private Attributes | |
| Song * | m_song |
| QScrollBar * | m_leftRightScroll |
| LcdSpinBox * | m_tempoSpinBox |
| TimeLineWidget * | m_timeLine |
| PositionLine * | m_positionLine |
| MeterDialog * | m_timeSigDisplay |
| AutomatableSlider * | m_masterVolumeSlider |
| AutomatableSlider * | m_masterPitchSlider |
| TextFloat * | m_mvsStatus |
| TextFloat * | m_mpsStatus |
| IntModel * | m_zoomingModel |
| ComboBoxModel * | m_snappingModel |
| bool | m_proportionalSnap |
| bool | m_scrollBack |
| bool | m_smoothScroll |
| EditMode | m_mode |
| EditMode | m_ctrlMode |
| Mode they were in before they hit ctrl. | |
| QPoint | m_origin |
| QPoint | m_scrollPos |
| QPoint | m_mousePos |
| int | m_rubberBandStartTrackview |
| TimePos | m_rubberbandStartTimePos |
| int | m_rubberbandPixelsPerBar |
| Pixels per bar when selection starts. | |
| int | m_trackHeadWidth |
| bool | m_selectRegion |
Friends | |
| class | SongEditorWindow |
Additional Inherited Members | |
| Protected Attributes inherited from lmms::gui::TrackContainerView | |
| TimePos | m_currentPosition |
| Static Protected Attributes inherited from lmms::gui::TrackContainerView | |
| static const int | DEFAULT_PIXELS_PER_BAR = 128 |
|
strong |
| lmms::gui::SongEditor::SongEditor | ( | Song * | song | ) |
|
override |
|
private |
|
overrideprivatevirtual |
Reimplemented from lmms::gui::TrackContainerView.
|
private |
Convert zoom slider's value to bar width in pixels.
|
private |
Convert bar width in pixels to zoom slider value.
| float lmms::gui::SongEditor::getSnapSize | ( | ) | const |
Return grid size as number of bars.
| QString lmms::gui::SongEditor::getSnapSizeString | ( | ) | const |
|
privateslot |
|
privateslot |
|
private |
|
overrideprivate |
|
overrideprivatevirtual |
Reimplemented from lmms::gui::TrackContainerView.
|
overridevirtual |
Implements lmms::SerializingObject.
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
signal |
|
inline |
|
signal |
|
overridevirtual |
Implements lmms::SerializingObject.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
| ComboBoxModel * lmms::gui::SongEditor::snappingModel | ( | ) | const |
|
slot |
|
inline |
|
slot |
|
private |
|
privateslot |
|
privateslot |
|
slot |
|
slot |
|
slot |
|
privateslot |
|
overrideprivate |
|
privateslot |
|
friend |
|
private |
Mode they were in before they hit ctrl.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Pixels per bar when selection starts.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |