00001 /* 00002 ClanGUI, copyrights by various people. Have a look in the CREDITS file. 00003 00004 This sourcecode is distributed using the Library GNU Public Licence, 00005 version 2 or (at your option) any later version. Please read LICENSE 00006 for details. 00007 */ 00008 00009 #ifndef header_progressbar_generic 00010 #define header_progressbar_generic 00011 00012 #include <API/Core/System/timer.h> 00013 #include <API/Display/Input/key.h> 00014 #include <API/Core/Math/rect.h> 00015 #include <API/signals.h> 00016 00017 class CL_ProgressBar; 00018 class CL_Button; 00019 class CL_InputDevice; 00020 class CL_Component; 00021 class CL_ComponentOptions; 00022 class CL_StyleManager; 00023 00024 class CL_ProgressBar_Generic 00025 { 00026 // Construction: 00027 public: 00028 static CL_ComponentOptions create_options( 00029 const CL_Rect &pos, 00030 int steps); 00031 00032 CL_ProgressBar_Generic(CL_ProgressBar *self, const CL_ComponentOptions &options, CL_StyleManager *style); 00033 ~CL_ProgressBar_Generic() {}; 00034 00035 // Attributes: 00036 public: 00037 float get_percentage() const; 00038 00039 int steps; 00040 int progress; 00041 00042 // Operations: 00043 public: 00044 void set_steps(int total_steps); 00045 void set_progress(int progress); 00046 void increase(int steps); 00047 void reset(); 00048 00049 // Signals: 00050 public: 00051 00052 // Slots: 00053 private: 00054 00055 // Callbacks: 00056 private: 00057 00058 // Implementation: 00059 private: 00060 CL_ProgressBar *progressbar; 00061 }; 00062 00063 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001