87:53c2aecb9704 | 88:08ccaf26cffd |
---|---|
28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #pragma once | 31 #pragma once |
32 #include "main.h" | 32 #include "main.h" |
33 BEGIN_ZFC_NAMESPACE | |
33 | 34 |
34 // ------------------------------------------------------------------------------------------------- | 35 // ------------------------------------------------------------------------------------------------- |
35 // | 36 // |
36 enum | 37 enum |
37 { | 38 { |
58 // ------------------------------------------------------------------------------------------------- | 59 // ------------------------------------------------------------------------------------------------- |
59 // | 60 // |
60 class ColoredLine | 61 class ColoredLine |
61 { | 62 { |
62 public: | 63 public: |
63 ColoredLine() {} | 64 ColoredLine(); |
64 | 65 |
65 const Vector<int>& data() const { return m_data; } | 66 const Vector<int>& data() const { return m_data; } |
66 int length() const { return m_length; } | 67 int length() const { return m_length; } |
67 void add_char (char ch); | 68 void add_char (char ch); |
68 void finalize(); | 69 void finalize(); |
70 | 71 |
71 private: | 72 private: |
72 void set_color (Color a, bool on); | 73 void set_color (Color a, bool on); |
73 | 74 |
74 Vector<int> m_data; | 75 Vector<int> m_data; |
75 int m_length = 0; | 76 int m_length; |
76 bool m_final = false; | 77 bool m_final; |
77 Color m_activeColor = DEFAULT; | 78 Color m_activeColor; |
78 bool m_boldActive = false; | 79 bool m_boldActive; |
79 int m_colorCodeStage = 0; | 80 int m_colorCodeStage; |
80 String m_string; | 81 String m_string; |
81 }; | 82 }; |
83 | |
84 END_ZFC_NAMESPACE |