summaryrefslogtreecommitdiffstats
path: root/Project/Text.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-11-23 17:08:20 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-11-23 17:08:20 -0200
commit8e79aff80e56adbdcfd6a9be5a873c6bb4b1020a (patch)
tree1e25777555f6964409a6dce64fb1bd722d0e55ae /Project/Text.h
parent8d78d8c052550b9efc1a7de39aa4b776be002396 (diff)
downloadPSP.git-8e79aff80e56adbdcfd6a9be5a873c6bb4b1020a.tar.gz
PSP.git-8e79aff80e56adbdcfd6a9be5a873c6bb4b1020a.tar.xz
PSP.git-8e79aff80e56adbdcfd6a9be5a873c6bb4b1020a.zip
Text under implementation
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