| #pragma once |
| |
| #ifndef TPARAMCHANGE_INCLUDED |
| #define TPARAMCHANGE_INCLUDED |
| |
| |
| #include "tcommon.h" |
| |
| #undef DVAPI |
| #undef DVVAR |
| #ifdef TPARAM_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| |
| |
| |
| |
| class TParam; |
| |
| |
| |
| |
| |
| |
| |
| class DVAPI TParamChange { |
| public: |
| TParam *m_param; |
| |
| double m_firstAffectedFrame, |
| m_lastAffectedFrame; |
| |
| bool |
| m_keyframeChanged; |
| bool m_dragging; |
| bool m_undoing; |
| |
| static double m_minFrame; |
| static double m_maxFrame; |
| |
| public: |
| TParamChange(TParam *param, double firstAffectedFrame, |
| double lastAffectedFrame, bool keyframeChanged, bool dragging, |
| bool undoing); |
| |
| virtual ~TParamChange() {} |
| }; |
| |
| |
| |
| |
| |
| class DVAPI TParamObserver { |
| public: |
| virtual ~TParamObserver() {} |
| |
| virtual void onChange(const TParamChange &) = 0; |
| }; |
| |
| #endif |