Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields
PortSymbol Class Reference

#include <portsymbol.h>

Inheritance diagram for PortSymbol:
Painting Element

Public Member Functions

 PortSymbol (int cx_=0, int cy_=0, const QString &numberStr_="1", const QString &nameStr_="")
 
 ~PortSymbol ()
 
void paintScheme (Schematic *)
 
void getCenter (int &, int &)
 
void setCenter (int, int, bool relative=false)
 
bool load (const QString &)
 
QString save ()
 
QString saveCpp ()
 
QString saveJSON ()
 
void paint (ViewPainter *)
 
bool getSelected (float, float, float)
 
void Bounding (int &, int &, int &, int &)
 
void rotate ()
 
void mirrorX ()
 
void mirrorY ()
 
- Public Member Functions inherited from Painting
 Painting ()
 
 ~Painting ()
 
virtual PaintingnewOne ()
 
virtual void MouseMoving (Schematic *, int, int, int, int, Schematic *, int, int, bool)
 
virtual bool MousePressing ()
 
virtual bool resizeTouched (float, float, float)
 
virtual void MouseResizeMoving (int, int, Schematic *)
 
virtual bool Dialog ()
 
QString toPenString (int)
 
QString toBrushString (int)
 
- Public Member Functions inherited from Element
 Element ()
 
virtual ~Element ()
 

Data Fields

int Angel
 
QString numberStr
 
QString nameStr
 
- Data Fields inherited from Painting
QString Name
 
int State
 
- Data Fields inherited from Element
bool isSelected
 
int Type
 
int cx
 
int cy
 
int x1
 
int y1
 
int x2
 
int y2
 

Detailed Description

Definition at line 24 of file portsymbol.h.

Constructor & Destructor Documentation

PortSymbol::PortSymbol ( int  cx_ = 0,
int  cy_ = 0,
const QString &  numberStr_ = "1",
const QString &  nameStr_ = "" 
)

Definition at line 23 of file portsymbol.cpp.

PortSymbol::~PortSymbol ( )

Definition at line 42 of file portsymbol.cpp.

Member Function Documentation

void PortSymbol::Bounding ( int &  _x1,
int &  _y1,
int &  _x2,
int &  _y2 
)
virtual

Reimplemented from Painting.

Definition at line 198 of file portsymbol.cpp.

void PortSymbol::getCenter ( int &  x,
int &  y 
)
virtual

Reimplemented from Painting.

Definition at line 121 of file portsymbol.cpp.

bool PortSymbol::getSelected ( float  fX,
float  fY,
float   
)
virtual

Reimplemented from Painting.

Definition at line 187 of file portsymbol.cpp.

bool PortSymbol::load ( const QString &  s)
virtual

Reimplemented from Painting.

Definition at line 136 of file portsymbol.cpp.

void PortSymbol::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 214 of file portsymbol.cpp.

void PortSymbol::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 222 of file portsymbol.cpp.

void PortSymbol::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 47 of file portsymbol.cpp.

void PortSymbol::paintScheme ( Schematic p)
virtual

Reimplemented from Element.

Definition at line 114 of file portsymbol.cpp.

void PortSymbol::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 206 of file portsymbol.cpp.

QString PortSymbol::save ( )
virtual

Reimplemented from Painting.

Definition at line 161 of file portsymbol.cpp.

QString PortSymbol::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 169 of file portsymbol.cpp.

QString PortSymbol::saveJSON ( )
virtual

Reimplemented from Painting.

Definition at line 178 of file portsymbol.cpp.

void PortSymbol::setCenter ( int  x,
int  y,
bool  relative = false 
)
virtual

Reimplemented from Element.

Definition at line 129 of file portsymbol.cpp.

Field Documentation

int PortSymbol::Angel

Definition at line 46 of file portsymbol.h.

QString PortSymbol::nameStr

Definition at line 47 of file portsymbol.h.

QString PortSymbol::numberStr

Definition at line 47 of file portsymbol.h.


The documentation for this class was generated from the following files: