aboutsummaryrefslogtreecommitdiff
path: root/src/viewerpercent.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-12 18:19:05 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-12 18:19:05 +0000
commit9d9f75e6da9885e256097a2eabd0ccb951a40651 (patch)
tree45f9e83c080e0243aad34cfdfe969e31677d14e0 /src/viewerpercent.h
parent58f477bd5c5f9a61d4a4072d452856b180b1c172 (diff)
downloadbuild-9d9f75e6da9885e256097a2eabd0ccb951a40651.tar.gz
build-9d9f75e6da9885e256097a2eabd0ccb951a40651.tar.bz2
build-9d9f75e6da9885e256097a2eabd0ccb951a40651.tar.xz
build-9d9f75e6da9885e256097a2eabd0ccb951a40651.zip
Fixed the viewers, and some other good goo.
Diffstat (limited to 'src/viewerpercent.h')
-rw-r--r--src/viewerpercent.h36
1 files changed, 36 insertions, 0 deletions
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 @@
1#ifndef VIEWER_PERCENT_H
2#define VIEWER_PERCENT_H
3
4#include <stdint.h>
5
6#include "viewer.h"
7
8class ViewerPercent : public Viewer
9{
10public:
11 ViewerPercent();
12 virtual ~ViewerPercent();
13
14 virtual void beginCommand( Action::eAction nAct, const std::string &sTarget );
15 virtual void endCommand();
16
17 virtual void beginRequiresCheck( bool bCached, const std::string &sName );
18 virtual void endRequiresCheck();
19 virtual void beginPerform( Perform *pPerform );
20 virtual void endPerform();
21 virtual void beginPerforms( int nCount );
22 virtual void endPerforms();
23 virtual void beginAction( const std::string &sName, int nCommands );
24 virtual void endAction();
25
26private:
27 int nTotalCommands;
28 int nCurCommand;
29 int nTotalPerforms;
30 int nCurPerform;
31 std::string sTarget;
32 int nLastLen;
33 int nWidth;
34};
35
36#endif