Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ellipsearc.h
Go to the documentation of this file.
1 /***************************************************************************
2  ellipsearc.h
3  --------------
4  begin : Thu Sep 9 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 ELLIPSEARC_H
19 #define ELLIPSEARC_H
20 
21 #include "painting.h"
22 
23 #include <QPen>
24 
25 
26 class EllipseArc : public Painting {
27 public:
28  EllipseArc();
29  ~EllipseArc();
30 
31  void paintScheme(Schematic*);
32  void getCenter(int&, int&);
33  void setCenter(int, int, bool relative=false);
34 
35  Painting* newOne();
36  static Element* info(QString&, char* &, bool getNewOne=false);
37  bool load(const QString&);
38  QString save();
39  QString saveCpp();
40  QString saveJSON();
41  void paint(ViewPainter*);
42  void MouseMoving(Schematic*, int, int, int, int, Schematic*, int, int, bool);
43  bool MousePressing();
44  bool getSelected(float, float, float);
45  bool resizeTouched(float, float, float);
46  void MouseResizeMoving(int, int, Schematic*);
47 
48  void rotate();
49  void mirrorX();
50  void mirrorY();
51  bool Dialog();
52 
53  QPen Pen;
54  int Angle, ArcLen; // start angle and arc length
55 };
56 
57 #endif
void paint(ViewPainter *)
Definition: ellipsearc.cpp:42
bool getSelected(float, float, float)
Definition: ellipsearc.cpp:318
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: ellipsearc.cpp:89
void MouseMoving(Schematic *, int, int, int, int, Schematic *, int, int, bool)
Definition: ellipsearc.cpp:227
bool load(const QString &)
Definition: ellipsearc.cpp:99
void mirrorY()
Definition: ellipsearc.cpp:371
QString saveJSON()
Definition: ellipsearc.cpp:169
void mirrorX()
Definition: ellipsearc.cpp:361
void getCenter(int &, int &)
Definition: ellipsearc.cpp:68
void rotate()
Definition: ellipsearc.cpp:347
Superclass of all schematic drawing elements.
Definition: element.h:142
bool MousePressing()
Definition: ellipsearc.cpp:300
QPen Pen
Definition: ellipsearc.h:53
void MouseResizeMoving(int, int, Schematic *)
Definition: ellipsearc.cpp:205
int ArcLen
Definition: ellipsearc.h:54
Painting * newOne()
Definition: ellipsearc.cpp:83
void setCenter(int, int, bool relative=false)
Definition: ellipsearc.cpp:76
bool Dialog()
Definition: ellipsearc.cpp:383
bool resizeTouched(float, float, float)
Definition: ellipsearc.cpp:183
void paintScheme(Schematic *)
Definition: ellipsearc.cpp:62
QString saveCpp()
Definition: ellipsearc.cpp:158
QString save()
Definition: ellipsearc.cpp:146