Logo Search packages:      
Sourcecode: kbruch version File versions  Download package

Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

FractionPainter Class Reference

#include <FractionPainter.h>

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

List of all members.

Public Slots

void update ()

Public Member Functions

 FractionPainter (QWidget *parent)
void paintFraction (const QString &str_operation, ratio &leftRatio, int leftMult, ratio &rightRatio, int rightMult)
void updateAndRepaint ()
 ~FractionPainter ()

Protected Member Functions

virtual QSize minimumSizeHint () const
void paintEvent (QPaintEvent *event)
void paintMiddle (QPainter &paint, const QString &paint_str, int &x_pos, int &y_pos, QFontMetrics &fm, const QColor &color, bool addMargin=true)
void paintRatio (QPainter &paint, ratio tmp_ratio, int &x_pos, int &y_pos, QFontMetrics &fm, bool addMargin=true, bool show_mixed=true, bool show_center=false)
void paintWidget (QPainter &paint)

Protected Attributes

QColor m_colorLine
QColor m_colorNumber
QColor m_colorOperation
QFont m_font

Private Attributes

int leftMult
ratio leftRatio
int rightMult
ratio rightRatio
QString str_operation

Detailed Description

Constructs a QWidget bla bla bla

Author:
Danilo Balzaque

Definition at line 43 of file FractionPainter.h.


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

Generated by  Doxygen 1.6.0   Back to index