tahoma2d/toonz/sources/include/tw/fxparamview.h

51 lines
1,017 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TNZ_FXPARAMVIEW_INCLUDED
#define TNZ_FXPARAMVIEW_INCLUDED
#include "tw/tw.h"
#include "tfx.h"
#undef DVAPI
#undef DVVAR
#ifdef TWIN_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
class TFx;
class TGenericCommandAction;
class TFxParamViewData;
2016-06-15 18:43:10 +12:00
class DVAPI TFxParamView : public TWidget, public TFxObserver {
TFxParamViewData *m_data;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
TFxParamView(TWidget *parent, string name = "fxParamView");
~TFxParamView();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void setFx(TFx *fx, const wstring &fxCaption);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
// TFxObserver methods
void onChange(const TFxChange &);
void onChange(const TFxParamAdded &change);
void onChange(const TFxParamRemoved &change);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void configureNotify(const TDimension &d);
void repaint();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void select(TParam *param, bool on);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
// PROVVISORIO
void addAction(TGenericCommandAction *action);
void triggerActions();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void setCurrentFrame(int frame);
int getCurrentFrame() const;
2016-03-19 06:57:51 +13:00
};
#endif