Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/paintings/graphictext.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                                 graphictext.h
00003                                ---------------
00004     begin                : Mon Nov 24 2003
00005     copyright            : (C) 2003 by Michael Margraf
00006     email                : michael.margraf@alumni.tu-berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef GRAPHICTEXT_H
00019 #define GRAPHICTEXT_H
00020 
00021 #include "painting.h"
00022 
00023 #include <QColor>
00024 #include <QFont>
00025 #include <QString>
00026 
00027 
00028 class GraphicText : public Painting  {
00029 public:
00030   GraphicText();
00031  ~GraphicText();
00032 
00033   void paintScheme(Schematic*);
00034   void getCenter(int&, int&);
00035   void setCenter(int, int, bool relative=false);
00036 
00037   Painting* newOne();
00038   static Element* info(QString&, char* &, bool getNewOne=false);
00039   bool load(const QString&);
00040   QString save();
00041   QString saveCpp();
00042   QString saveJSON();
00043   void paint(ViewPainter*);
00044   void MouseMoving(Schematic*, int, int, int, int, Schematic*, int, int, bool);
00045   bool MousePressing();
00046   bool getSelected(float, float, float);
00047   void Bounding(int&, int&, int&, int&);
00048 
00049   void rotate();
00050   void mirrorX();
00051   void mirrorY();
00052   bool Dialog();
00053 
00054   QColor   Color;
00055   QFont    Font;
00056   QString  Text;
00057   int      Angle;
00058 };
00059 
00060 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines