Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
portsymbol.h
Go to the documentation of this file.
1 /***************************************************************************
2  portsymbol.h
3  --------------
4  begin : Sun Sep 5 2004
5  copyright : (C) 2004 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 PORTSYMBOL_H
19 #define PORTSYMBOL_H
20 
21 #include "painting.h"
22 
23 
24 class PortSymbol : public Painting {
25 public:
26  PortSymbol(int cx_=0, int cy_=0, const QString& numberStr_="1",
27  const QString& nameStr_="");
28  ~PortSymbol();
29 
30  void paintScheme(Schematic*);
31  void getCenter(int&, int&);
32  void setCenter(int, int, bool relative=false);
33 
34  bool load(const QString&);
35  QString save();
36  QString saveCpp();
37  QString saveJSON();
38  void paint(ViewPainter*);
39  bool getSelected(float, float, float);
40  void Bounding(int&, int&, int&, int&);
41 
42  void rotate();
43  void mirrorX();
44  void mirrorY();
45 
46  int Angel;
47  QString numberStr, nameStr;
48 };
49 
50 #endif
void setCenter(int, int, bool relative=false)
Definition: portsymbol.cpp:129
PortSymbol(int cx_=0, int cy_=0, const QString &numberStr_="1", const QString &nameStr_="")
Definition: portsymbol.cpp:23
void paintScheme(Schematic *)
Definition: portsymbol.cpp:114
bool load(const QString &)
Definition: portsymbol.cpp:136
QString nameStr
Definition: portsymbol.h:47
void Bounding(int &, int &, int &, int &)
Definition: portsymbol.cpp:198
void getCenter(int &, int &)
Definition: portsymbol.cpp:121
bool getSelected(float, float, float)
Definition: portsymbol.cpp:187
void mirrorY()
Definition: portsymbol.cpp:222
QString numberStr
Definition: portsymbol.h:47
void rotate()
Definition: portsymbol.cpp:206
void paint(ViewPainter *)
Definition: portsymbol.cpp:47
QString save()
Definition: portsymbol.cpp:161
void mirrorX()
Definition: portsymbol.cpp:214
QString saveCpp()
Definition: portsymbol.cpp:169
QString saveJSON()
Definition: portsymbol.cpp:178