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

#include <rectangle.h>

Inheritance diagram for Rectangle:
Painting Element

Public Member Functions

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

Static Public Member Functions

static Elementinfo (QString &, char *&, bool getNewOne=false)
 
static Elementinfo_filled (QString &, char *&, bool getNewOne=false)
 

Data Fields

QPen Pen
 
QBrush Brush
 
bool filled
 
- 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 26 of file rectangle.h.

Constructor & Destructor Documentation

Rectangle::Rectangle ( bool  _filled = false)

Definition at line 27 of file rectangle.cpp.

Rectangle::~Rectangle ( )

Definition at line 39 of file rectangle.cpp.

Member Function Documentation

bool Rectangle::Dialog ( )
virtual

Reimplemented from Painting.

Definition at line 370 of file rectangle.cpp.

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

Reimplemented from Painting.

Definition at line 74 of file rectangle.cpp.

bool Rectangle::getSelected ( float  fX,
float  fY,
float  w 
)
virtual

Reimplemented from Painting.

Definition at line 315 of file rectangle.cpp.

Element * Rectangle::info ( QString &  Name,
char *&  BitmapFile,
bool  getNewOne = false 
)
static

Definition at line 95 of file rectangle.cpp.

Element * Rectangle::info_filled ( QString &  Name,
char *&  BitmapFile,
bool  getNewOne = false 
)
static

Definition at line 105 of file rectangle.cpp.

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

Reimplemented from Painting.

Definition at line 115 of file rectangle.cpp.

void Rectangle::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 355 of file rectangle.cpp.

void Rectangle::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 362 of file rectangle.cpp.

void Rectangle::MouseMoving ( Schematic paintScale,
int  ,
int  ,
int  gx,
int  gy,
Schematic p,
int  x,
int  y,
bool  drawn 
)
virtual

Reimplemented from Painting.

Definition at line 259 of file rectangle.cpp.

bool Rectangle::MousePressing ( )
virtual

Reimplemented from Painting.

Definition at line 294 of file rectangle.cpp.

void Rectangle::MouseResizeMoving ( int  x,
int  y,
Schematic p 
)
virtual

Reimplemented from Painting.

Definition at line 237 of file rectangle.cpp.

Painting * Rectangle::newOne ( )
virtual

Reimplemented from Painting.

Definition at line 89 of file rectangle.cpp.

void Rectangle::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 44 of file rectangle.cpp.

void Rectangle::paintScheme ( Schematic p)
virtual

Reimplemented from Element.

Definition at line 68 of file rectangle.cpp.

bool Rectangle::resizeTouched ( float  fX,
float  fY,
float  len 
)
virtual

Reimplemented from Painting.

Definition at line 215 of file rectangle.cpp.

void Rectangle::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 344 of file rectangle.cpp.

QString Rectangle::save ( )
virtual

Reimplemented from Painting.

Definition at line 168 of file rectangle.cpp.

QString Rectangle::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 182 of file rectangle.cpp.

QString Rectangle::saveJSON ( )
virtual

Reimplemented from Painting.

Definition at line 197 of file rectangle.cpp.

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

Reimplemented from Element.

Definition at line 82 of file rectangle.cpp.

Field Documentation

QBrush Rectangle::Brush

Definition at line 55 of file rectangle.h.

bool Rectangle::filled

Definition at line 56 of file rectangle.h.

QPen Rectangle::Pen

Definition at line 54 of file rectangle.h.


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