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

#include <painting.h>

Inheritance diagram for Painting:
Element Arrow Ellipse EllipseArc GraphicLine GraphicText ID_Text PortSymbol Rectangle

Public Member Functions

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

Data Fields

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 27 of file painting.h.

Constructor & Destructor Documentation

Painting::Painting ( )

Definition at line 22 of file painting.cpp.

Painting::~Painting ( )
inline

Definition at line 30 of file painting.h.

Member Function Documentation

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

Reimplemented in Arrow, GraphicLine, GraphicText, and PortSymbol.

Definition at line 33 of file painting.cpp.

virtual bool Painting::Dialog ( )
inlinevirtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, and GraphicText.

Definition at line 51 of file painting.h.

virtual void Painting::getCenter ( int &  ,
int &   
)
inlinevirtual

Reimplemented from Element.

Reimplemented in ID_Text, Arrow, Ellipse, EllipseArc, Rectangle, GraphicLine, PortSymbol, and GraphicText.

Definition at line 32 of file painting.h.

virtual bool Painting::getSelected ( float  ,
float  ,
float   
)
inlinevirtual

Reimplemented in ID_Text, Ellipse, Rectangle, Arrow, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 33 of file painting.h.

virtual bool Painting::load ( const QString &  )
inlinevirtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 36 of file painting.h.

virtual void Painting::mirrorX ( )
inlinevirtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 49 of file painting.h.

virtual void Painting::mirrorY ( )
inlinevirtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 50 of file painting.h.

virtual void Painting::MouseMoving ( Schematic ,
int  ,
int  ,
int  ,
int  ,
Schematic ,
int  ,
int  ,
bool   
)
inlinevirtual

Reimplemented in Ellipse, Rectangle, Arrow, EllipseArc, GraphicLine, and GraphicText.

Definition at line 41 of file painting.h.

virtual bool Painting::MousePressing ( )
inlinevirtual

Reimplemented in Ellipse, Rectangle, Arrow, EllipseArc, GraphicLine, and GraphicText.

Definition at line 43 of file painting.h.

virtual void Painting::MouseResizeMoving ( int  ,
int  ,
Schematic  
)
inlinevirtual

Reimplemented in Arrow, Ellipse, Rectangle, EllipseArc, and GraphicLine.

Definition at line 46 of file painting.h.

Painting * Painting::newOne ( )
virtual

Reimplemented in Arrow, Ellipse, EllipseArc, Rectangle, GraphicLine, and GraphicText.

Definition at line 28 of file painting.cpp.

virtual void Painting::paint ( ViewPainter )
inlinevirtual

Reimplemented in ID_Text, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, PortSymbol, and Arrow.

Definition at line 40 of file painting.h.

virtual bool Painting::resizeTouched ( float  ,
float  ,
float   
)
inlinevirtual

Reimplemented in Arrow, Ellipse, Rectangle, EllipseArc, and GraphicLine.

Definition at line 45 of file painting.h.

virtual void Painting::rotate ( )
inlinevirtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 48 of file painting.h.

QString Painting::save ( )
virtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 39 of file painting.cpp.

QString Painting::saveCpp ( )
virtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 44 of file painting.cpp.

QString Painting::saveJSON ( )
virtual

Reimplemented in ID_Text, Arrow, Ellipse, Rectangle, EllipseArc, GraphicLine, GraphicText, and PortSymbol.

Definition at line 49 of file painting.cpp.

QString Painting::toBrushString ( int  brush)

Definition at line 67 of file painting.cpp.

QString Painting::toPenString ( int  pen)

Definition at line 54 of file painting.cpp.

Field Documentation

QString Painting::Name

Definition at line 55 of file painting.h.

int Painting::State

Definition at line 56 of file painting.h.


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