My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
PortSymbol Class Reference

#include <portsymbol.h>

Inheritance diagram for PortSymbol:
Inheritance graph
[legend]
Collaboration diagram for PortSymbol:
Collaboration graph
[legend]

Public Member Functions

 PortSymbol (int cx_=0, int cy_=0, const QString &numberStr_="1", const QString &nameStr_="")
 
 ~PortSymbol ()
 
void paintScheme (QPainter *)
 
void getCenter (int &, int &)
 
void setCenter (int, int, bool relative=false)
 
bool load (const QString &)
 
QString save ()
 
QString saveCpp ()
 
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 (QPainter *, int, int, int, int, QPainter *, int, int, bool)
 
virtual bool MousePressing ()
 
virtual bool resizeTouched (float, float, float)
 
virtual void MouseResizeMoving (int, int, QPainter *)
 
virtual bool Dialog ()
 
QString toPenString (int)
 
QString toBrushString (int)
 
- Public Member Functions inherited from Element
 Element ()
 
virtual ~Element ()
 

Public Attributes

int Angel
 
QString numberStr
 
QString nameStr
 
- Public Attributes inherited from Painting
QString Name
 
int State
 
- Public Attributes 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 22 of file portsymbol.cpp.

PortSymbol::~PortSymbol ( )

Definition at line 41 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 184 of file portsymbol.cpp.

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

Reimplemented from Painting.

Definition at line 114 of file portsymbol.cpp.

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

Reimplemented from Painting.

Definition at line 173 of file portsymbol.cpp.

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

Reimplemented from Painting.

Definition at line 129 of file portsymbol.cpp.

void PortSymbol::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 200 of file portsymbol.cpp.

void PortSymbol::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 208 of file portsymbol.cpp.

void PortSymbol::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 46 of file portsymbol.cpp.

Here is the call graph for this function:

void PortSymbol::paintScheme ( QPainter *  p)
virtual

Reimplemented from Element.

Definition at line 107 of file portsymbol.cpp.

void PortSymbol::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 192 of file portsymbol.cpp.

QString PortSymbol::save ( )
virtual

Reimplemented from Painting.

Definition at line 154 of file portsymbol.cpp.

QString PortSymbol::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 162 of file portsymbol.cpp.

Here is the call graph for this function:

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

Reimplemented from Element.

Definition at line 122 of file portsymbol.cpp.

Member Data Documentation

int PortSymbol::Angel

Definition at line 45 of file portsymbol.h.

QString PortSymbol::nameStr

Definition at line 46 of file portsymbol.h.

QString PortSymbol::numberStr

Definition at line 46 of file portsymbol.h.


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