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
GraphicLine Class Reference

#include <graphicline.h>

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

Public Member Functions

 GraphicLine (int cx_=0, int cy_=0, int x2_=0, int y2_=0, QPen Pen_=QPen(QColor()))
 
 ~GraphicLine ()
 
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)
 
void Bounding (int &, int &, int &, int &)
 
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 ()
 
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)
 

Public Attributes

QPen Pen
 
- 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 graphicline.h.

Constructor & Destructor Documentation

GraphicLine::GraphicLine ( int  cx_ = 0,
int  cy_ = 0,
int  x2_ = 0,
int  y2_ = 0,
QPen  Pen_ = QPen(QColor()) 
)

Definition at line 28 of file graphicline.cpp.

Here is the caller graph for this function:

GraphicLine::~GraphicLine ( )

Definition at line 40 of file graphicline.cpp.

Member Function Documentation

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

Reimplemented from Painting.

Definition at line 273 of file graphicline.cpp.

bool GraphicLine::Dialog ( )
virtual

Reimplemented from Painting.

Definition at line 313 of file graphicline.cpp.

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

Reimplemented from Painting.

Definition at line 69 of file graphicline.cpp.

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

Reimplemented from Painting.

Definition at line 238 of file graphicline.cpp.

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

Definition at line 90 of file graphicline.cpp.

Here is the call graph for this function:

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

Reimplemented from Painting.

Definition at line 100 of file graphicline.cpp.

void GraphicLine::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 296 of file graphicline.cpp.

void GraphicLine::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 304 of file graphicline.cpp.

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

Reimplemented from Painting.

Definition at line 195 of file graphicline.cpp.

bool GraphicLine::MousePressing ( )
virtual

Reimplemented from Painting.

Definition at line 224 of file graphicline.cpp.

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

Reimplemented from Painting.

Definition at line 183 of file graphicline.cpp.

Here is the call graph for this function:

Painting * GraphicLine::newOne ( )
virtual

Reimplemented from Painting.

Definition at line 84 of file graphicline.cpp.

Here is the call graph for this function:

void GraphicLine::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 45 of file graphicline.cpp.

Here is the call graph for this function:

void GraphicLine::paintScheme ( QPainter *  p)
virtual

Reimplemented from Element.

Definition at line 63 of file graphicline.cpp.

Here is the caller graph for this function:

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

Reimplemented from Painting.

Definition at line 161 of file graphicline.cpp.

void GraphicLine::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 284 of file graphicline.cpp.

QString GraphicLine::save ( )
virtual

Reimplemented from Painting.

Definition at line 139 of file graphicline.cpp.

QString GraphicLine::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 149 of file graphicline.cpp.

Here is the call graph for this function:

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

Reimplemented from Element.

Definition at line 77 of file graphicline.cpp.

Member Data Documentation

QPen GraphicLine::Pen

Definition at line 52 of file graphicline.h.


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