diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 16:11:02 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 16:11:02 +0000 |
commit | 23e4ce8f1b211b388be7533b684dabab193be587 (patch) | |
tree | 04ad3fe02e8ac59e9f2b0c488293baf316e502dd /src/viewerplain.h | |
parent | 6aedf75408f0a8fa50edf9457b00f413227ec2d8 (diff) | |
download | build-23e4ce8f1b211b388be7533b684dabab193be587.tar.gz build-23e4ce8f1b211b388be7533b684dabab193be587.tar.bz2 build-23e4ce8f1b211b388be7533b684dabab193be587.tar.xz build-23e4ce8f1b211b388be7533b684dabab193be587.zip |
The plain view now effectively uses command stacks, the results are pretty
cool looking.
Diffstat (limited to '')
-rw-r--r-- | src/viewerplain.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/viewerplain.h b/src/viewerplain.h index 76fecc5..118ae80 100644 --- a/src/viewerplain.h +++ b/src/viewerplain.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define VIEWER_PLAIN_H | 2 | #define VIEWER_PLAIN_H |
3 | 3 | ||
4 | #include <stdint.h> | 4 | #include <stdint.h> |
5 | 5 | #include <list> | |
6 | #include "viewer.h" | 6 | #include "viewer.h" |
7 | 7 | ||
8 | class ViewerPlain : public Viewer | 8 | class ViewerPlain : public Viewer |
@@ -22,12 +22,18 @@ public: | |||
22 | virtual void endAction(); | 22 | virtual void endAction(); |
23 | 23 | ||
24 | void printHead(); | 24 | void printHead(); |
25 | void indent(); | ||
25 | 26 | ||
26 | private: | 27 | private: |
27 | bool bCmdClean; | ||
28 | bool bRunClean; | 28 | bool bRunClean; |
29 | std::string sTarget; | 29 | typedef struct |
30 | 30 | { | |
31 | int nLevel; | ||
32 | bool bCmdClean; | ||
33 | std::string sTarget; | ||
34 | } Cmd; | ||
35 | typedef std::list<Cmd> CmdStack; | ||
36 | CmdStack sCmd; | ||
31 | }; | 37 | }; |
32 | 38 | ||
33 | #endif | 39 | #endif |