My Project  0.0.16
QUCS Mapping
 All Classes Namespaces 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(QPainter*);
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  void paint(ViewPainter*);
39  void MouseMoving(QPainter*, int, int, int, int, QPainter*, int, int, bool);
40  bool MousePressing();
41  bool getSelected(float, float, float);
42  void Bounding(int&, int&, int&, int&);
43 
44  void rotate();
45  void mirrorX();
46  void mirrorY();
47  bool Dialog();
48 
49  QColor Color;
50  QFont Font;
51  QString Text;
52  int Angle;
53 };
54 
55 #endif