Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxProgressBar.h
  5. // implementation: all
  6. // last modified: Mar 14 1999, Mete Ciragan
  7. // copyright: The programs and associated files contained in this
  8. // distribution were developed by Mete Ciragan. The programs
  9. // are not in the public domain, but they are freely
  10. // distributable without licensing fees. These programs are
  11. // provided without guarantee or warrantee expressed or
  12. // implied.
  13. //
  14. #ifndef INCLUDED_MXPROGRESSBAR
  15. #define INCLUDED_MXPROGRESSBAR
  16. #ifndef INCLUDED_MXWIDGET
  17. #include "mxtk/mxWidget.h"
  18. #endif
  19. class mxWindow;
  20. class mxProgressBar_i;
  21. class mxProgressBar : public mxWidget
  22. {
  23. mxProgressBar_i *d_this;
  24. public:
  25. // ENUMS
  26. enum { Normal, Smooth };
  27. // CREATORS
  28. mxProgressBar (mxWindow *parent, int x, int y, int w, int h, int style = 0);
  29. virtual ~mxProgressBar ();
  30. // MANIPULATORS
  31. void setValue (int value);
  32. void setTotalSteps (int steps);
  33. // ACCESSORS
  34. int getValue () const;
  35. int getTotalSteps () const;
  36. private:
  37. // NOT IMPLEMENTED
  38. mxProgressBar (const mxProgressBar&);
  39. mxProgressBar& operator= (const mxProgressBar&);
  40. };
  41. #endif // INCLUDED_MXPROGRESSBAR