diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/skin/widgets/sseeker.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/skin/widgets/sseeker.h')
-rw-r--r-- | Src/Wasabi/api/skin/widgets/sseeker.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Src/Wasabi/api/skin/widgets/sseeker.h b/Src/Wasabi/api/skin/widgets/sseeker.h new file mode 100644 index 00000000..ee948059 --- /dev/null +++ b/Src/Wasabi/api/skin/widgets/sseeker.h @@ -0,0 +1,56 @@ +#ifndef _SSEEKER_H +#define _SSEEKER_H + +#include "pslider.h" +#include <api/syscb/callbacks/corecbi.h> + +#define SSEEKER_PARENT PSliderWnd +#define SSEEKER_XMLPARENT PSliderWnd + +#define STOP 0 +#define PLAY 1 + +class SSeeker : public SSEEKER_PARENT, public CoreCallbackI { +public: + SSeeker(); + virtual ~SSeeker(); + + virtual int onInit(); + + virtual int setXuiParam(int _xuihandle, int attrid, const wchar_t *name, const wchar_t *val); + virtual void lock(); + virtual void unlock(); + + virtual int scriptDivisor() { return 256; } + + enum { + SSEEKER_SETINTERVAL=0, + }; + +protected: + /*static */void CreateXMLParameters(int master_handle); + virtual int onSetFinalPosition(); + + // from BaseWnd + virtual void timerCallback(int id); + + // from CoreCallbackI + virtual int corecb_onSeeked(int newpos); + virtual int corecb_onStarted(); + virtual int corecb_onStopped(); + + int status; + +private: + static XMLParamPair params[]; + int update_interval; + int locked; + int xuihandle; +}; + +extern const wchar_t seekBarXuiStr[]; +extern char seekBarXuiSvcName[]; +class SeekBarXuiSvc : public XuiObjectSvc<SSeeker, seekBarXuiStr, seekBarXuiSvcName> {}; + + +#endif |