summaryrefslogtreecommitdiffstats
path: root/Project/Text.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Text.h')
-rw-r--r--Project/Text.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/Project/Text.h b/Project/Text.h
new file mode 100644
index 0000000..0ff8d17
--- /dev/null
+++ b/Project/Text.h
@@ -0,0 +1,39 @@
+#ifndef TEXT_H
+#define TEXT_H
+
+#include "Element.h"
+#include "wxGLString.h"
+
+class wxGLString;
+class Bus;
+class Line;
+class Transformer;
+class SyncGenerator;
+class IndMotor;
+class SyncMotor;
+class Load;
+class Inductor;
+class Capacitor;
+
+class Text : public Element
+{
+ public:
+ Text();
+ Text(wxPoint2DDouble position);
+ ~Text();
+
+ virtual bool AddParent(Element* parent, wxPoint2DDouble position) { return true; };
+ virtual bool Contains(wxPoint2DDouble position) const;
+ virtual void Draw(wxPoint2DDouble translation, double scale, wxDC& dc);
+ virtual bool Intersects(wxRect2DDouble rect) const;
+ virtual wxString GetText() const { return m_text; }
+ virtual void SetText(wxString text);
+
+protected:
+
+ wxString m_text = _("Text");
+ wxGLString glString;
+ bool consolidate = true;
+};
+
+#endif // TEXT_H