#ifndef _VST_GAINEDIT_HPP_ #define _VST_GAINEDIT_HPP_ #ifndef _COMMON_WINDOWS_HPP_ #include #endif #ifndef _COMMON_WINDOW_HPP_ #include #endif #ifndef _JPGIMG_DIB24_HPP_ #include #endif #ifndef _COMMON_RESBITMAP_HPP_ #include #endif #ifndef _COMMON_SMARTPOINTER_HPP_ #include #endif #ifndef __AEffEditor__ #include #endif #ifndef _VST_GAIN_HPP_ #include #endif #ifndef _VST_WHEELCONTROLLER_HPP_ #include #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 mPaintHandler; Callback mCreateHandler; SmartPointer mPureDevice; SmartPointer mResBitmap; SmartPointer mDIBitmap; WheelController mWheelController; HWND mpSystemWindow; Window mGainWindow; ERect mRect; static char szClassName[]; static int smUseCount; }; #endif