From 8e79aff80e56adbdcfd6a9be5a873c6bb4b1020a Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Wed, 23 Nov 2016 17:08:20 -0200 Subject: Text under implementation --- Project/Text.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Project/Text.h (limited to 'Project/Text.h') 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 -- cgit