Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
graphicline.h
Go to the documentation of this file.
1 /***************************************************************************
2  graphicline.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 GRAPHICLINE_H
19 #define GRAPHICLINE_H
20 
21 #include "painting.h"
22 
23 
24 class GraphicLine : public Painting {
25 public:
26  GraphicLine(int cx_=0, int cy_=0, int x2_=0, int y2_=0,
27  QPen Pen_=QPen(QColor()));
28  ~GraphicLine();
29 
30  void paintScheme(Schematic*);
31  void getCenter(int&, int&);
32  void setCenter(int, int, bool relative=false);
33 
34  Painting* newOne();
35  static Element* info(QString&, char* &, bool getNewOne=false);
36  bool load(const QString&);
37  QString save();
38  QString saveCpp();
39  QString saveJSON();
40  void paint(ViewPainter*);
41  void MouseMoving(Schematic*, int, int, int, int, Schematic*, int, int, bool);
42  bool MousePressing();
43  bool getSelected(float, float, float);
44  void Bounding(int&, int&, int&, int&);
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 };
55 
56 #endif
void setCenter(int, int, bool relative=false)
Definition: graphicline.cpp:77
void MouseMoving(Schematic *, int, int, int, int, Schematic *, int, int, bool)
QString saveCpp()
bool getSelected(float, float, float)
void paintScheme(Schematic *)
Definition: graphicline.cpp:63
void paint(ViewPainter *)
Definition: graphicline.cpp:45
void Bounding(int &, int &, int &, int &)
QString saveJSON()
GraphicLine(int cx_=0, int cy_=0, int x2_=0, int y2_=0, QPen Pen_=QPen(QColor()))
Definition: graphicline.cpp:28
QString save()
Painting * newOne()
Definition: graphicline.cpp:84
void mirrorX()
void getCenter(int &, int &)
Definition: graphicline.cpp:69
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: graphicline.cpp:90
bool load(const QString &)
void mirrorY()
void MouseResizeMoving(int, int, Schematic *)
bool MousePressing()
Superclass of all schematic drawing elements.
Definition: element.h:142
bool resizeTouched(float, float, float)