aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaSpecMeterGUI.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-12 00:20:16 +0000
committerDavid Robillard <d@drobilla.net>2008-08-12 00:20:16 +0000
commit102e899c331bd2ed9902467a077164e209c918f9 (patch)
treeb7fe5ec873582cc8a0fc0862f9da045d12b2259a /src/mdaSpecMeterGUI.h
parent2b679f152e1c3104ac178b6c78ac0b1edf954ff6 (diff)
downloadmda.lv2-102e899c331bd2ed9902467a077164e209c918f9.tar.gz
mda.lv2-102e899c331bd2ed9902467a077164e209c918f9.tar.bz2
mda.lv2-102e899c331bd2ed9902467a077164e209c918f9.zip
VSTUI X11 port and embeddable GTK wrapper.
Build mdaSpecMeter and GUI. git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1340 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaSpecMeterGUI.h')
-rw-r--r--src/mdaSpecMeterGUI.h36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/mdaSpecMeterGUI.h b/src/mdaSpecMeterGUI.h
index b4541f1..263a20b 100644
--- a/src/mdaSpecMeterGUI.h
+++ b/src/mdaSpecMeterGUI.h
@@ -1,45 +1,43 @@
#ifndef _mdaSpecMeterGUI_h_
#define _mdaSpecMeterGUI_h_
-#include "lvzgui.h"
+#include "vstgui.h"
-//a drawing control
class CDraw : public CControl
{
public:
- CDraw(CRect &size, float x, CBitmap *background);
- ~CDraw();
+ CDraw(CRect& size, float x, CBitmap* background);
+ ~CDraw();
- void draw(CDrawContext *pContext);
+ void draw(CDrawContext* pContext);
long x2pix(float x);
long x22pix(float x);
- float Lpeak, Lrms, Lmin, Rpeak, Rrms, Rmin, Corr;
- float band[2][16];
- long temp;
+ float Lpeak, Lrms, Lmin, Rpeak, Rrms, Rmin, Corr;
+ float band[2][16];
protected:
- CBitmap *bitmap;
+ CBitmap* bitmap;
};
class mdaSpecMeterGUI : public AEffGUIEditor
{
public:
- mdaSpecMeterGUI(AudioEffect *effect);
- ~mdaSpecMeterGUI();
-
- bool open(void *ptr);
- void idle();
- void close();
+ mdaSpecMeterGUI(AudioEffect* effect);
+ ~mdaSpecMeterGUI();
+
+ bool open(void* ptr);
+ void idle();
+ void close();
private:
- CDraw *draw;
- CBitmap *background;
- long xtimer;
+ CDraw* draw;
+ CBitmap* background;
+ long xtimer;
};
-#endif //_mdaSpecMeterGUI_h_
+#endif // _mdaSpecMeterGUI_h_