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/wnd/wndclass/status.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/wnd/wndclass/status.h')
-rw-r--r-- | Src/Wasabi/api/wnd/wndclass/status.h | 178 |
1 files changed, 178 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wnd/wndclass/status.h b/Src/Wasabi/api/wnd/wndclass/status.h new file mode 100644 index 00000000..426c0723 --- /dev/null +++ b/Src/Wasabi/api/wnd/wndclass/status.h @@ -0,0 +1,178 @@ +#ifndef _STATUS_H +#define _STATUS_H + +#include <api/wnd/wndclass/guiobjwnd.h> +#include <bfc/string/StringW.h> +#include <api/wndmgr/guistatuscb.h> +#include <bfc/depend.h> + +class ButtBar; +class AppCmds; + +#define STATUSBAR_PARENT GuiObjectWnd + +/** + Class + + @short + @author Nullsoft + @ver 1.0 + @see +*/ +class StatusBar : public STATUSBAR_PARENT, public GuiStatusCallbackI { +public: + + /** + Method + + @see + @ret + @param + */ + StatusBar(); + + /** + Method + + @see + @ret + @param + */ + virtual ~StatusBar(); + + + /** + Method + + @see + @ret + @param + */ + virtual int onInit(); + + // completeness indicator + + /** + Method + + @see + @ret + @param + */ + virtual void pushCompleted(int max); + + /** + Method + + @see + @ret + @param + */ + virtual void incCompleted(int add); + + /** + Method + + @see + @ret + @param + */ + virtual void setCompleted(int pos); + + /** + Method + + @see + @ret + @param + */ + virtual void popCompleted(); + + + /** + Method + + @see + @ret + @param + */ + virtual void timerCallback(int id); + + /** + Method + + @see + @ret + @param + */ + virtual int onResize(); + + virtual api_dependent *status_getDependencyPtr() { return this; } + + + /** + Method + + @see + @ret + @param + */ + virtual void onSetStatusText(const wchar_t *text, int overlay); + + /** + Method + + @see + @ret + @param + */ + virtual void onAddAppCmds(AppCmds *commands); + + /** + Method + + @see + @ret + @param + */ + virtual void onRemoveAppCmds(AppCmds *commands); + + /** + Method + + @see + @ret + @param + */ + void fakeButtonPush(const wchar_t *name); + +protected: + + int fakeButtonPush(ButtBar *bb, const wchar_t *name); + void setExclude(const wchar_t *val); + + void setIncludeOnly(const wchar_t *val); + StringW exclude_list, include_only; + +protected: + void regenerate(); + +private: + StringW contentgroupname; + + StringW status_text; + int overtimer; + + // completeness + int max; + int completed; + int progress_width; + + GuiObjectWnd bg; + + ButtBar *bbleft, *bbright; + + PtrList<AppCmds> appcmds; +}; + +#endif |