Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
graphictext.h
Go to the documentation of this file.
1 /***************************************************************************
2  graphictext.h
3  ---------------
4  begin : Mon Nov 24 2003
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef GRAPHICTEXT_H
19 #define GRAPHICTEXT_H
20 
21 #include "painting.h"
22 
23 
24 class GraphicText : public Painting {
25 public:
26  GraphicText();
27  ~GraphicText();
28 
29  void paintScheme(Schematic*);
30  void getCenter(int&, int&);
31  void setCenter(int, int, bool relative=false);
32 
33  Painting* newOne();
34  static Element* info(QString&, char* &, bool getNewOne=false);
35  bool load(const QString&);
36  QString save();
37  QString saveCpp();
38  QString saveJSON();
39  void paint(ViewPainter*);
40  void MouseMoving(Schematic*, int, int, int, int, Schematic*, int, int, bool);
41  bool MousePressing();
42  bool getSelected(float, float, float);
43  void Bounding(int&, int&, int&, int&);
44 
45  void rotate();
46  void mirrorX();
47  void mirrorY();
48  bool Dialog();
49 
50  QColor Color;
51  QFont Font;
52  QString Text;
53  int Angle;
54 };
55 
56 #endif
bool getSelected(float, float, float)
void mirrorX()
bool MousePressing()
bool load(const QString &)
void paintScheme(Schematic *)
Definition: graphictext.cpp:94
void MouseMoving(Schematic *, int, int, int, int, Schematic *, int, int, bool)
QString saveCpp()
void mirrorY()
QString Text
Definition: graphictext.h:52
void setCenter(int, int, bool relative=false)
void Bounding(int &, int &, int &, int &)
QString saveJSON()
QFont Font
Definition: graphictext.h:51
void getCenter(int &, int &)
QColor Color
Definition: graphictext.h:50
Superclass of all schematic drawing elements.
Definition: element.h:142
QString save()
void paint(ViewPainter *)
Definition: graphictext.cpp:51
Painting * newOne()
static Element * info(QString &, char *&, bool getNewOne=false)