TuttleOFX
1
|
00001 #ifndef _TUTTLE_PLUGIN_NOPROGRESS_HPP_ 00002 #define _TUTTLE_PLUGIN_NOPROGRESS_HPP_ 00003 00004 #include "IProgress.hpp" 00005 00006 namespace tuttle { 00007 namespace plugin { 00008 00009 class NoProgress : public IProgress 00010 { 00011 public: 00012 void progressBegin( const int numSteps, const std::string& msg = "" ); 00013 void progressEnd(); 00014 bool progressForward( const int nSteps ); 00015 00016 protected: 00017 double _stepSize; ///< Step size of progess bar 00018 double _counter; ///< Current position in [0; 1] 00019 }; 00020 00021 } 00022 } 00023 00024 #endif 00025