Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/paintings/portsymbol.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                                portsymbol.h
00003                               --------------
00004     begin                : Sun Sep 5 2004
00005     copyright            : (C) 2004 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 PORTSYMBOL_H
00019 #define PORTSYMBOL_H
00020 
00021 #include "painting.h"
00022 
00023 #include <QString>
00024 
00025 class PortSymbol : public Painting  {
00026 public:
00027   PortSymbol(int cx_=0, int cy_=0, const QString& numberStr_="1",
00028                                    const QString& nameStr_="");
00029  ~PortSymbol();
00030 
00031   void paintScheme(Schematic*);
00032   void getCenter(int&, int&);
00033   void setCenter(int, int, bool relative=false);
00034 
00035   bool load(const QString&);
00036   QString save();
00037   QString saveCpp();
00038   QString saveJSON();
00039   void paint(ViewPainter*);
00040   bool getSelected(float, float, float);
00041   void Bounding(int&, int&, int&, int&);
00042 
00043   void rotate();
00044   void mirrorX();
00045   void mirrorY();
00046 
00047   int Angel;
00048   QString numberStr, nameStr;
00049 };
00050 
00051 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines