diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/skin/widgets/seqband.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/skin/widgets/seqband.h')
-rw-r--r-- | Src/Wasabi/api/skin/widgets/seqband.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Src/Wasabi/api/skin/widgets/seqband.h b/Src/Wasabi/api/skin/widgets/seqband.h new file mode 100644 index 00000000..26c211bb --- /dev/null +++ b/Src/Wasabi/api/skin/widgets/seqband.h @@ -0,0 +1,47 @@ +#ifndef _SEQBAND_H +#define _SEQBAND_H + +#include "pslider.h" +#include <api/syscb/callbacks/corecbi.h> + +#define SEQBAND_PARENT PSliderWnd +#define SEQBAND_XMLPARENT PSliderWnd + +class SEQBand : public SEQBAND_PARENT, public CoreCallbackI { +public: + SEQBand(); // band=0-9 + virtual ~SEQBand(); + + virtual int onInit(); + virtual int onResize(); + virtual int setXuiParam(int xuihandle, int attrid, const wchar_t *name, const wchar_t *strval); + virtual void setBand(int b); + + virtual int onLeftButtonDown(int x, int y); + virtual int onMouseMove(int x, int y); // only called when mouse captured + virtual int onLeftButtonUp(int x, int y); + virtual int childNotify(ifc_window *child, int msg, intptr_t param1=0, intptr_t param2=0); + + enum { + SEQBAND_SETPARAM=0, + SEQBAND_SETBAND, + }; + +protected: + /*static */void CreateXMLParameters(int master_handle); + virtual int onSetPosition(); + + virtual int corecb_onEQBandChange(int band, int newval); + + int band, isactive; + int discard_next_event; +private: + static XMLParamPair params[]; + int xuihandle; +}; + +extern const wchar_t eqBandXuiStr[]; +extern char eqBandXuiSvcName[]; +class EqBandXuiSvc : public XuiObjectSvc<SEQBand, eqBandXuiStr, eqBandXuiSvcName> {}; + +#endif
\ No newline at end of file |