Go to the documentation of this file.
22 #ifndef TRANSITIONCONTROLLER_H
23 #define TRANSITIONCONTROLLER_H
25 #include "../View/TransitionTab.h"
26 #include "../Util/WheelEventFilter.h"
28 #include <QListWidget>
31 #include <QDoubleValidator>
55 && (
it == transition.
it);
179 void setDurationValue();
185 void setInterpolation(
int index);
191 void enableAll(
bool enable);
228 void initInterpolationComboBox();
231 void changeTextListWidgetItems();
239 #endif // TRANSITIONCONTROLLER_H
Struct defining a transition which can be stored as QVariant in a QListWidgetItem.
list(APPEND SOURCES ${QT_RESOURCES}) set(COMPONENT_LIBS ArmarXGui ArmarXCoreObservers ArmarXCoreEigen3Variants PlotterController $
bool isValid()
Checks whether all values of a transition are greater than or equal to zero.
TransitionTabPtr getGuiTransitionTab()
Getter for the TransitionTab pointer to guiTransitionTab.
void addTransition(int index, double duration, double start, int interpolation)
Adds a new transition to the list widget.
Subcontroller which handles all user interaction with the transition tab in the GUI,...
void onDisconnectComponent() override
void onExitComponent() override
std::shared_ptr< TransitionController > TransitionControllerPtr
void retranslateGui()
Retranslates the guiTransitionTab.
void selectedTransitionChanged(int index)
std::shared_ptr< TransitionTab > TransitionTabPtr
void setGuiTransitionTab(TransitionTabPtr guiTransitionTab)
Setter for the TransitionTab pointer to guiTransitionTab.
void clearTransitionList()
Removes all items of the transition list.
TransitionController(TransitionTabPtr guiTransitionTab)
Creates a new TransitionController and assigns a TransitionTab to handle.
void updateSelectedTransition(int index)
Updates the currently selected transition.
void onInitComponent() override
void removeTransition(int index)
Removes the transition at a given index from the list widget.
void changedInterpolation(int index, int it)
Notifies other controllers about changes of the interpolation type of the given transition.
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.
struct armarx::GuiTransition GuiTransition
Struct defining a transition which can be stored as QVariant in a QListWidgetItem.
void onConnectComponent() override
This file offers overloads of toIce() and fromIce() functions for STL container types.
bool operator==(GuiTransition transition)
Overload '==' operator for GuiTransition struct.
Abstract controller providing a set of methods which must be implemented by every controller.
void changedDuration(int transition, double duration)
Notifies other controllers about changes of the duration of the given transition.