From 9d9f75e6da9885e256097a2eabd0ccb951a40651 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 12 Sep 2006 18:19:05 +0000 Subject: Fixed the viewers, and some other good goo. --- src/viewerpercent.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/viewerpercent.h (limited to 'src/viewerpercent.h') diff --git a/src/viewerpercent.h b/src/viewerpercent.h new file mode 100644 index 0000000..96412cb --- /dev/null +++ b/src/viewerpercent.h @@ -0,0 +1,36 @@ +#ifndef VIEWER_PERCENT_H +#define VIEWER_PERCENT_H + +#include + +#include "viewer.h" + +class ViewerPercent : public Viewer +{ +public: + ViewerPercent(); + virtual ~ViewerPercent(); + + virtual void beginCommand( Action::eAction nAct, const std::string &sTarget ); + virtual void endCommand(); + + virtual void beginRequiresCheck( bool bCached, const std::string &sName ); + virtual void endRequiresCheck(); + virtual void beginPerform( Perform *pPerform ); + virtual void endPerform(); + virtual void beginPerforms( int nCount ); + virtual void endPerforms(); + virtual void beginAction( const std::string &sName, int nCommands ); + virtual void endAction(); + +private: + int nTotalCommands; + int nCurCommand; + int nTotalPerforms; + int nCurPerform; + std::string sTarget; + int nLastLen; + int nWidth; +}; + +#endif -- cgit v1.2.3