#include <sequenceeventtrackview.h>
|
void | showInspectorContent (const SequenceTrack &track) override |
|
void | showTrackContent (const SequenceTrack &track, const ImVec2 &trackTopLeft) override |
|
void | handleInsertEventSegmentPopup () |
|
template<typename T > |
void | handleEditEventSegmentPopup () |
|
bool | pasteEventsFromClipboard (const std::string &trackID, double time, utility::ErrorState &errorState) |
|
template<typename T > |
void | pasteEvent (const std::string &trackID, const SequenceTrackSegmentEventBase &baseEvent, double time) |
|
void | drawSegmentHandler (const SequenceTrack &track, const SequenceTrackSegment &segment, const ImVec2 &trackTopLeft, float segmentX, float segmentWidth, ImDrawList *drawList) |
|
void | handleEditSegmentValuePopup () |
|
void | updateSegmentInClipboard (const std::string &trackID, const std::string &segmentID) |
|
void | handleAssignOutputIDToTrack () |
|
void | handleSegmentDrag () |
|
void | handleLoadPresetPopup () |
|
void | handleTrackOptionsPopup () |
|
void | registerActionHandler (const rttr::type &type, const std::function< void()> &handler) |
|
const SequencePlayer & | getPlayer () |
|
SequenceEditor & | getEditor () |
|
SequenceEventTrackView is a view for event tracks
◆ SequenceEventTrackView() [1/2]
Constructor
- Parameters
-
service | reference to gui service |
view | reference to editor view |
state | reference to editor state |
◆ SequenceEventTrackView() [2/2]
◆ drawSegmentHandler()
void drawSegmentHandler |
( |
const SequenceTrack & |
track, |
|
|
const SequenceTrackSegment & |
segment, |
|
|
const ImVec2 & |
trackTopLeft, |
|
|
float |
segmentX, |
|
|
float |
segmentWidth, |
|
|
ImDrawList * |
drawList |
|
) |
| |
|
protected |
draws segment handler
- Parameters
-
track | reference to track |
segment | reference to segment |
trackTopLeft | tracks topleft position |
segmentX | segment x position |
segmentWidth | width of segment |
drawList | pointer to window drawlist |
◆ handleAssignOutputIDToTrack()
void handleAssignOutputIDToTrack |
( |
| ) |
|
|
protected |
handles assigning of new output id to track
◆ handleEditEventSegmentPopup()
void handleEditEventSegmentPopup |
|
protected |
handles event segment popup
◆ handleEditSegmentValuePopup()
void handleEditSegmentValuePopup |
( |
| ) |
|
|
protected |
handles delete segment popup
◆ handleInsertEventSegmentPopup()
void handleInsertEventSegmentPopup |
( |
| ) |
|
|
protected |
handles insert event segment popup
◆ handleLoadPresetPopup()
void handleLoadPresetPopup |
( |
| ) |
|
|
protected |
◆ handleSegmentDrag()
void handleSegmentDrag |
( |
| ) |
|
|
protected |
handles dragging of event segment
◆ operator=()
◆ pasteEvent()
Paste events of type T. Base event is base class of event of type T
- Template Parameters
-
- Parameters
-
trackID | track on which to paste event |
baseEvent | reference to base class of event to paste |
time | time in seconds |
◆ pasteEventsFromClipboard()
bool pasteEventsFromClipboard |
( |
const std::string & |
trackID, |
|
|
double |
time, |
|
|
utility::ErrorState & |
errorState |
|
) |
| |
|
protected |
handles pasting of clipboard content to event segment
- Template Parameters
-
- Parameters
-
trackID | the track id of where to paste the new event |
time | the time where to insert copied event segment |
errorState | contains any errors |
- Returns
- true on succes
◆ showInspectorContent()
◆ showTrackContent()
void showTrackContent |
( |
const SequenceTrack & |
track, |
|
|
const ImVec2 & |
trackTopLeft |
|
) |
| |
|
overrideprotectedvirtual |
shows track contents
- Parameters
-
track | reference to track |
trackTopLeft | orientation |
Implements SequenceTrackView.
◆ updateSegmentInClipboard()
void updateSegmentInClipboard |
( |
const std::string & |
trackID, |
|
|
const std::string & |
segmentID |
|
) |
| |
|
protected |
update the segment in the clipboard
- Parameters
-
trackID | the track id of the track containing the segment |
segmentID | the segment id |