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

#include <graphicline.h>

Inheritance diagram for GraphicLine:
Painting Element

Public Member Functions

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

Data Fields

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

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 284 of file graphicline.cpp.

bool GraphicLine::Dialog ( )
virtual

Reimplemented from Painting.

Definition at line 324 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 249 of file graphicline.cpp.

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

Definition at line 90 of file graphicline.cpp.

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 307 of file graphicline.cpp.

void GraphicLine::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 315 of file graphicline.cpp.

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

Reimplemented from Painting.

Definition at line 206 of file graphicline.cpp.

bool GraphicLine::MousePressing ( )
virtual

Reimplemented from Painting.

Definition at line 235 of file graphicline.cpp.

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

Reimplemented from Painting.

Definition at line 194 of file graphicline.cpp.

Painting * GraphicLine::newOne ( )
virtual

Reimplemented from Painting.

Definition at line 84 of file graphicline.cpp.

void GraphicLine::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 45 of file graphicline.cpp.

void GraphicLine::paintScheme ( Schematic p)
virtual

Reimplemented from Element.

Definition at line 63 of file graphicline.cpp.

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

Reimplemented from Painting.

Definition at line 172 of file graphicline.cpp.

void GraphicLine::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 295 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.

QString GraphicLine::saveJSON ( )
virtual

Reimplemented from Painting.

Definition at line 159 of file graphicline.cpp.

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

Reimplemented from Element.

Definition at line 77 of file graphicline.cpp.

Field Documentation

QPen GraphicLine::Pen

Definition at line 53 of file graphicline.h.


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