123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- #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
|