My Project  0.0.16
QUCS Mapping
 All Classes Namespaces 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.h>
24 
25 
26 class EllipseArc : public Painting {
27 public:
28  EllipseArc();
29  ~EllipseArc();
30 
31  void paintScheme(QPainter*);
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  void paint(ViewPainter*);
41  void MouseMoving(QPainter*, int, int, int, int, QPainter*, int, int, bool);
42  bool MousePressing();
43  bool getSelected(float, float, float);
44  bool resizeTouched(float, float, float);
45  void MouseResizeMoving(int, int, QPainter*);
46 
47  void rotate();
48  void mirrorX();
49  void mirrorY();
50  bool Dialog();
51 
52  QPen Pen;
53  int Angle, ArcLen; // start angle and arc length
54 };
55 
56 #endif