Blame toonz/sources/include/tw/fxparamview.h
|
Shinya Kitaoka |
810553 |
#pragma once
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef TNZ_FXPARAMVIEW_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
#define TNZ_FXPARAMVIEW_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "tw/tw.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tfx.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#undef DVAPI
|
|
Toshihiro Shimizu |
890ddd |
#undef DVVAR
|
|
Toshihiro Shimizu |
890ddd |
#ifdef TWIN_EXPORTS
|
|
Toshihiro Shimizu |
890ddd |
#define DVAPI DV_EXPORT_API
|
|
Toshihiro Shimizu |
890ddd |
#define DVVAR DV_EXPORT_VAR
|
|
Toshihiro Shimizu |
890ddd |
#else
|
|
Toshihiro Shimizu |
890ddd |
#define DVAPI DV_IMPORT_API
|
|
Toshihiro Shimizu |
890ddd |
#define DVVAR DV_IMPORT_VAR
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
class TFx;
|
|
Toshihiro Shimizu |
890ddd |
class TGenericCommandAction;
|
|
Toshihiro Shimizu |
890ddd |
class TFxParamViewData;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
class DVAPI TFxParamView : public TWidget, public TFxObserver {
|
|
Shinya Kitaoka |
120a6e |
TFxParamViewData *m_data;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Shinya Kitaoka |
120a6e |
TFxParamView(TWidget *parent, string name = "fxParamView");
|
|
Shinya Kitaoka |
120a6e |
~TFxParamView();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void setFx(TFx *fx, const wstring &fxCaption);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// TFxObserver methods
|
|
Shinya Kitaoka |
120a6e |
void onChange(const TFxChange &);
|
|
Shinya Kitaoka |
120a6e |
void onChange(const TFxParamAdded &change);
|
|
Shinya Kitaoka |
120a6e |
void onChange(const TFxParamRemoved &change);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void configureNotify(const TDimension &d);
|
|
Shinya Kitaoka |
120a6e |
void repaint();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void select(TParam *param, bool on);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// PROVVISORIO
|
|
Shinya Kitaoka |
120a6e |
void addAction(TGenericCommandAction *action);
|
|
Shinya Kitaoka |
120a6e |
void triggerActions();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void setCurrentFrame(int frame);
|
|
Shinya Kitaoka |
120a6e |
int getCurrentFrame() const;
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|