From bc5a3e8923cb8efedbbd5b88e212eb0e9009cf87 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 5 Oct 2017 20:02:59 -0300 Subject: Add copyright on files and documentation update --- Project/Text.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'Project/Text.h') diff --git a/Project/Text.h b/Project/Text.h index 062032c..03acd48 100644 --- a/Project/Text.h +++ b/Project/Text.h @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2017 Thales Lima Oliveira + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef TEXT_H #define TEXT_H @@ -47,7 +64,7 @@ enum DataType { class Text : public GraphicalElement { -public: + public: Text(); Text(wxPoint2DDouble position); ~Text(); @@ -79,8 +96,7 @@ public: int GetFontSize() const { return m_fontSize; } const ElectricalUnit GetUnit() const { return m_unit; } int GetDecimalPlaces() const { return m_decimalPlaces; } - -protected: + protected: wxGLString* m_glString = NULL; wxGLStringArray* m_glStringArray = NULL; @@ -98,4 +114,4 @@ protected: int m_decimalPlaces = 2; }; -#endif // TEXT_H +#endif // TEXT_H -- cgit From 89befdb9b259d02249876e39ec6fd28860272439 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Fri, 6 Oct 2017 17:06:15 -0300 Subject: A lot of documentation written --- Project/Text.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Project/Text.h') diff --git a/Project/Text.h b/Project/Text.h index 03acd48..f5544f1 100644 --- a/Project/Text.h +++ b/Project/Text.h @@ -62,6 +62,13 @@ enum DataType { DATA_PF_CURRENT }; +/** + * @class Text + * @author Thales Lima Oliveira + * @date 06/10/2017 + * @brief Element that shows power element informations in workspace. + * @file Text.h + */ class Text : public GraphicalElement { public: -- cgit