diff options
author | Nao Pross <naopross@thearcway.org> | 2017-11-26 23:36:26 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-11-26 23:36:26 +0100 |
commit | 7f7e6fe30ef4f9ba4507b89174676f57c42c0000 (patch) | |
tree | d6fc1ae62972568a1021c940f372903cda57cceb /src/ui/AsciiRenderer.h | |
parent | First commit (diff) | |
download | OrbitingYeti-7f7e6fe30ef4f9ba4507b89174676f57c42c0000.tar.gz OrbitingYeti-7f7e6fe30ef4f9ba4507b89174676f57c42c0000.zip |
Implementation for Structogram iterator and Statement type
The interator is not (yet) aware of the scope in which it is iterating.
Diffstat (limited to 'src/ui/AsciiRenderer.h')
-rw-r--r-- | src/ui/AsciiRenderer.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/ui/AsciiRenderer.h b/src/ui/AsciiRenderer.h deleted file mode 100644 index 4f9020a..0000000 --- a/src/ui/AsciiRenderer.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Renderer.h - * - * Created on: Nov 23, 2017 - * Author: naopross - */ - -#ifndef SRC_UI_ASCIIRENDERER_H_ -#define SRC_UI_ASCIIRENDERER_H_ - -#include "../diagram/Structogram.h" - -namespace samb { - -class AsciiRenderer { -private: - Structogram m_structogram; - const unsigned int m_width; - - void drawPadding(unsigned int amt); - void drawLine() const; - void drawText(std::string text, unsigned int width = 0, std::string before = "|", std::string after = "|") const; - void drawDecision(std::string condition, std::string trueText, std::string falseText, unsigned int width = 0) const; -public: - AsciiRenderer(Structogram& structogram, unsigned int width); - ~AsciiRenderer(); - - void render(); -}; - -} /* namespace samb */ - -#endif /* SRC_UI_ASCIIRENDERER_H_ */ |