Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/paintings/graphicline.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                                graphicline.h
00003                               ---------------
00004     begin                : Mon Nov 24 2003
00005     copyright            : (C) 2003 by Michael Margraf
00006     email                : michael.margraf@alumni.tu-berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef GRAPHICLINE_H
00019 #define GRAPHICLINE_H
00020 
00021 #include "painting.h"
00022 
00023 #include <QPen>
00024 
00025 
00026 class GraphicLine : public Painting  {
00027 public:
00028   GraphicLine(int cx_=0, int cy_=0, int x2_=0, int y2_=0,
00029               QPen Pen_=QPen(QColor()));
00030  ~GraphicLine();
00031 
00032   void paintScheme(Schematic*);
00033   void getCenter(int&, int&);
00034   void setCenter(int, int, bool relative=false);
00035 
00036   Painting* newOne();
00037   static Element* info(QString&, char* &, bool getNewOne=false);
00038   bool load(const QString&);
00039   QString save();
00040   QString saveCpp();
00041   QString saveJSON();
00042   void paint(ViewPainter*);
00043   void MouseMoving(Schematic*, int, int, int, int, Schematic*, int, int, bool);
00044   bool MousePressing();
00045   bool getSelected(float, float, float);
00046   void Bounding(int&, int&, int&, int&);
00047   bool resizeTouched(float, float, float);
00048   void MouseResizeMoving(int, int, Schematic*);
00049 
00050   void rotate();
00051   void mirrorX();
00052   void mirrorY();
00053   bool Dialog();
00054 
00055   QPen   Pen;
00056 };
00057 
00058 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines