Initial
This commit is contained in:
68
vst/GainEdit.hpp
Normal file
68
vst/GainEdit.hpp
Normal file
@@ -0,0 +1,68 @@
|
||||
#ifndef _VST_GAINEDIT_HPP_
|
||||
#define _VST_GAINEDIT_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_WINDOW_HPP_
|
||||
#include <common/window.hpp>
|
||||
#endif
|
||||
#ifndef _JPGIMG_DIB24_HPP_
|
||||
#include <jpgimg/dib24.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_RESBITMAP_HPP_
|
||||
#include <common/resbmp.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_SMARTPOINTER_HPP_
|
||||
#include <common/pointer.hpp>
|
||||
#endif
|
||||
#ifndef __AEffEditor__
|
||||
#include <vst/AEffEditor.hpp>
|
||||
#endif
|
||||
#ifndef _VST_GAIN_HPP_
|
||||
#include <vst/Gain.hpp>
|
||||
#endif
|
||||
#ifndef _VST_WHEELCONTROLLER_HPP_
|
||||
#include <vst/WheelController.hpp>
|
||||
#endif
|
||||
|
||||
class GainEdit : public Gain
|
||||
{
|
||||
public:
|
||||
GainEdit(AudioMasterCallback audioMaster);
|
||||
virtual ~GainEdit();
|
||||
private:
|
||||
};
|
||||
|
||||
class GainEditor : public AEffEditor
|
||||
{
|
||||
public:
|
||||
GainEditor(AudioEffect *effect);
|
||||
virtual ~GainEditor();
|
||||
protected:
|
||||
virtual long getRect(ERect **erect);
|
||||
virtual long open(void *ptr);
|
||||
virtual void close(void);
|
||||
virtual void idle(void);
|
||||
virtual void update(void);
|
||||
virtual void setValue(void *fader,int value);
|
||||
private:
|
||||
enum{GainEditorWidth=320,GainEditorHeight=200};
|
||||
CallbackData::ReturnType paintHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType createHandler(CallbackData &someCallbackData);
|
||||
void registerClass(void);
|
||||
void createWindow(void);
|
||||
void message(String message);
|
||||
|
||||
Callback<GainEditor> mPaintHandler;
|
||||
Callback<GainEditor> mCreateHandler;
|
||||
SmartPointer<PureDevice> mPureDevice;
|
||||
SmartPointer<ResBitmap> mResBitmap;
|
||||
SmartPointer<DIB24> mDIBitmap;
|
||||
WheelController mWheelController;
|
||||
HWND mpSystemWindow;
|
||||
Window mGainWindow;
|
||||
ERect mRect;
|
||||
static char szClassName[];
|
||||
static int smUseCount;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user