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

#include <rectangle.h>

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

Public Member Functions

 Rectangle (bool _filled=false)
 
 ~Rectangle ()
 
void paintScheme (QPainter *)
 
void getCenter (int &, int &)
 
void setCenter (int, int, bool relative=false)
 
PaintingnewOne ()
 
bool load (const QString &)
 
QString save ()
 
QString saveCpp ()
 
void paint (ViewPainter *)
 
void MouseMoving (QPainter *, int, int, int, int, QPainter *, int, int, bool)
 
bool MousePressing ()
 
bool getSelected (float, float, float)
 
bool resizeTouched (float, float, float)
 
void MouseResizeMoving (int, int, QPainter *)
 
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)
 

Public Attributes

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

Constructor & Destructor Documentation

Rectangle::Rectangle ( bool  _filled = false)

Definition at line 26 of file rectangle.cpp.

Here is the caller graph for this function:

Rectangle::~Rectangle ( )

Definition at line 38 of file rectangle.cpp.

Member Function Documentation

bool Rectangle::Dialog ( )
virtual

Reimplemented from Painting.

Definition at line 353 of file rectangle.cpp.

Here is the call graph for this function:

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

Reimplemented from Painting.

Definition at line 73 of file rectangle.cpp.

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

Reimplemented from Painting.

Definition at line 298 of file rectangle.cpp.

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

Definition at line 94 of file rectangle.cpp.

Here is the call graph for this function:

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

Definition at line 104 of file rectangle.cpp.

Here is the call graph for this function:

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

Reimplemented from Painting.

Definition at line 114 of file rectangle.cpp.

void Rectangle::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 338 of file rectangle.cpp.

void Rectangle::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 345 of file rectangle.cpp.

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

Reimplemented from Painting.

Definition at line 242 of file rectangle.cpp.

bool Rectangle::MousePressing ( )
virtual

Reimplemented from Painting.

Definition at line 277 of file rectangle.cpp.

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

Reimplemented from Painting.

Definition at line 220 of file rectangle.cpp.

Here is the call graph for this function:

Painting * Rectangle::newOne ( )
virtual

Reimplemented from Painting.

Definition at line 88 of file rectangle.cpp.

Here is the call graph for this function:

void Rectangle::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 43 of file rectangle.cpp.

Here is the call graph for this function:

void Rectangle::paintScheme ( QPainter *  p)
virtual

Reimplemented from Element.

Definition at line 67 of file rectangle.cpp.

Here is the caller graph for this function:

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

Reimplemented from Painting.

Definition at line 198 of file rectangle.cpp.

void Rectangle::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 327 of file rectangle.cpp.

QString Rectangle::save ( )
virtual

Reimplemented from Painting.

Definition at line 167 of file rectangle.cpp.

QString Rectangle::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 181 of file rectangle.cpp.

Here is the call graph for this function:

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

Reimplemented from Element.

Definition at line 81 of file rectangle.cpp.

Member Data Documentation

QBrush Rectangle::Brush

Definition at line 54 of file rectangle.h.

bool Rectangle::filled

Definition at line 55 of file rectangle.h.

QPen Rectangle::Pen

Definition at line 53 of file rectangle.h.


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