22#ifndef TRANSITIONCONTROLLER_H
23#define TRANSITIONCONTROLLER_H
24#include <QDoubleValidator>
54 (
it == transition.
it);
177 void setDurationValue();
183 void setInterpolation(
int index);
189 void enableAll(
bool enable);
226 void initInterpolationComboBox();
229 void changeTextListWidgetItems();
std::shared_ptr< TransitionTab > TransitionTabPtr
Abstract controller providing a set of methods which must be implemented by every controller.
void onInitComponent() override
void retranslateGui()
Retranslates the guiTransitionTab.
void changedInterpolation(int index, int it)
Notifies other controllers about changes of the interpolation type of the given transition.
void onDisconnectComponent() override
void selectedTransitionChanged(int index)
void updateSelectedTransition(int index)
Updates the currently selected transition.
void changedDuration(int transition, double duration)
Notifies other controllers about changes of the duration of the given transition.
void removeTransition(int index)
Removes the transition at a given index from the list widget.
void addTransition(int index, double duration, double start, int interpolation)
Adds a new transition to the list widget.
void onConnectComponent() override
TransitionTabPtr getGuiTransitionTab()
Getter for the TransitionTab pointer to guiTransitionTab.
void onExitComponent() override
TransitionController(TransitionTabPtr guiTransitionTab)
Creates a new TransitionController and assigns a TransitionTab to handle.
void setGuiTransitionTab(TransitionTabPtr guiTransitionTab)
Setter for the TransitionTab pointer to guiTransitionTab.
void clearTransitionList()
Removes all items of the transition list.
void setTransitionData(int index, double duration, double start, int it)
Connected with signals from other controllers, sets all values of the transition at a given index.
This file offers overloads of toIce() and fromIce() functions for STL container types.
struct armarx::GuiTransition GuiTransition
Struct defining a transition which can be stored as QVariant in a QListWidgetItem.
std::shared_ptr< TransitionController > TransitionControllerPtr
Struct defining a transition which can be stored as QVariant in a QListWidgetItem.
bool operator==(GuiTransition transition)
Overload '==' operator for GuiTransition struct.
bool isValid()
Checks whether all values of a transition are greater than or equal to zero.