textfield.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef TEXTFIELD_H
00012 #define TEXTFIELD_H
00013 #include <qstring.h>
00014 #include <qcolor.h>
00015 #include <qfont.h>
00016
00021 class TextField
00022 {
00023 public:
00024 TextField();
00025 TextField( const TextField& );
00026 ~TextField();
00027
00028 TextField& operator=(const TextField& );
00029
00030 void setFontSize( int );
00031 void setColor(QColor clr);
00032 void setBGColor(QColor clr);
00033 void setFont( const QString& );
00034 void setAlignment( int );
00035 void setAlignment( const QString& );
00036 void setFixedPitch( bool );
00037 void setShadow( int );
00038
00039 int getFontSize() const;
00040 QColor getColor() const;
00041 QColor getBGColor() const;
00042 QString getFont() const;
00043 int getAlignment() const;
00044 QString getAlignmentAsString() const;
00045 bool getFixedPitch() const;
00046 int getShadow() const;
00047 int getLineHeight() const;
00048
00049 protected:
00050 int alignment;
00051 QFont font;
00052 QColor color;
00053 QColor bgColor;
00054 int shadow;
00055 int lineHeight;
00056
00057 }
00058 ;
00059 #endif // TEXTFIELD_H
|