#include <sequenceeditorgui.h>
Public Member Functions | |
SequenceEditorGUIView (SequenceGUIService &service, SequenceEditor &editor, std::string id, RenderWindow *renderWindow, bool drawFullWindow) | |
virtual void | show (bool newWindow=true) |
void | hideMarkerLabels (bool hide) |
SequenceGUIService & | getService () |
Protected Attributes | |
SequenceEditor & | mEditor |
SequenceEditorGUIState | mState |
std::string | mID |
bool | mDrawFullWindow = false |
bool | mHideMarkerLabels = false |
RenderWindow * | mRenderWindow = nullptr |
std::unordered_map< rttr::type, std::function< void()> > | mActionHandlers |
std::unordered_map< rttr::type, std::unique_ptr< SequenceTrackView > > | mViews |
SequenceGUIService & | mService |
Responsible for drawing the GUI for the sequence editor Needs reference to editor
SequenceEditorGUIView | ( | SequenceGUIService & | service, |
SequenceEditor & | editor, | ||
std::string | id, | ||
RenderWindow * | renderWindow, | ||
bool | drawFullWindow | ||
) |
Constructor
service | sequence gui service handle |
editor | reference to editor |
id | id of the GUI resource, used to push ID by IMGUI |
renderWindow | the render window |
drawFullWindow | if the editor occupies the entire window space |
|
protected |
draws end of sequence
sequence | reference to sequence |
player | reference to player |
|
protected |
Draws inspectors of the sequence tracks
sequencePlayer | reference to sequenceplayer |
sequence | reference to sequence |
|
protected |
Draw lines of markers
sequence | reference to sequence |
player | reference to sequenceplayer |
|
protected |
Draws markers
sequencePlayer | reference to sequenceplayer |
sequence | reference to sequence |
|
protected |
draws player controller bar
player | reference to player |
|
protected |
draws line of player position
sequence | reference to sequence |
player | reference to player |
|
protected |
Draws the tracks of the sequence
sequencePlayer | reference to sequenceplayer |
sequence | reference to sequence |
SequenceGUIService& getService | ( | ) |
|
protected |
handle editing of markers
|
protected |
when show help popup is pressed, show modal help popup
|
protected |
history popup
|
protected |
when zooming, zoom around the center of the timeline, keeping the focus in the middle
|
protected |
|
protected |
handle insertion of new markers
|
protected |
Handles insertion of track popup
|
protected |
handles load popup
|
protected |
|
protected |
handles save as popup
|
protected |
when save clipboard is pressed, show save clipboard popup
|
protected |
handle editing of sequence duration
|
protected |
undo last action
void hideMarkerLabels | ( | bool | hide | ) |
Hides marker labels when not hovered
hide | when true, hides marker labels when not hovered |
|
protected |
registers handlers for actions
actionType | the action type to register a handler function for |
action | the handler function |
|
protected |
|
virtual |
Shows the editor interface
newWindow | when true interface will be drawn in a new ImGUI window |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |