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

#include <graphictext.h>

Inheritance diagram for GraphicText:
Painting Element

Public Member Functions

 GraphicText ()
 
 ~GraphicText ()
 
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 &)
 
void rotate ()
 
void mirrorX ()
 
void mirrorY ()
 
bool Dialog ()
 
- Public Member Functions inherited from Painting
 Painting ()
 
 ~Painting ()
 
virtual bool resizeTouched (float, float, float)
 
virtual void MouseResizeMoving (int, int, Schematic *)
 
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

QColor Color
 
QFont Font
 
QString Text
 
int Angle
 
- 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 graphictext.h.

Constructor & Destructor Documentation

GraphicText::GraphicText ( )

Definition at line 34 of file graphictext.cpp.

GraphicText::~GraphicText ( )

Definition at line 46 of file graphictext.cpp.

Member Function Documentation

void GraphicText::Bounding ( int &  xmin,
int &  ymin,
int &  xmax,
int &  ymax 
)
virtual

Reimplemented from Painting.

Definition at line 269 of file graphictext.cpp.

bool GraphicText::Dialog ( )
virtual

Reimplemented from Painting.

Definition at line 322 of file graphictext.cpp.

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

Reimplemented from Painting.

Definition at line 108 of file graphictext.cpp.

bool GraphicText::getSelected ( float  fX,
float  fY,
float   
)
virtual

Reimplemented from Painting.

Definition at line 252 of file graphictext.cpp.

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

Definition at line 129 of file graphictext.cpp.

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

Reimplemented from Painting.

Definition at line 139 of file graphictext.cpp.

void GraphicText::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 309 of file graphictext.cpp.

void GraphicText::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 315 of file graphictext.cpp.

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

Reimplemented from Painting.

Definition at line 223 of file graphictext.cpp.

bool GraphicText::MousePressing ( )
virtual

Reimplemented from Painting.

Definition at line 244 of file graphictext.cpp.

Painting * GraphicText::newOne ( )
virtual

Reimplemented from Painting.

Definition at line 123 of file graphictext.cpp.

void GraphicText::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 51 of file graphictext.cpp.

void GraphicText::paintScheme ( Schematic p)
virtual

Reimplemented from Element.

Definition at line 94 of file graphictext.cpp.

void GraphicText::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 299 of file graphictext.cpp.

QString GraphicText::save ( )
virtual

Reimplemented from Painting.

Definition at line 178 of file graphictext.cpp.

QString GraphicText::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 191 of file graphictext.cpp.

QString GraphicText::saveJSON ( )
virtual

Reimplemented from Painting.

Definition at line 205 of file graphictext.cpp.

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

Reimplemented from Element.

Definition at line 116 of file graphictext.cpp.

Field Documentation

int GraphicText::Angle

Definition at line 53 of file graphictext.h.

QColor GraphicText::Color

Definition at line 50 of file graphictext.h.

QFont GraphicText::Font

Definition at line 51 of file graphictext.h.

QString GraphicText::Text

Definition at line 52 of file graphictext.h.


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