00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef TEXTFIELD_H
00012 #define TEXTFIELD_H
00013 #include <tqstring.h>
00014 #include <tqcolor.h>
00015 #include <tqfont.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(TQColor clr);
00032 void setBGColor(TQColor clr);
00033 void setFont( const TQString& );
00034 void setAlignment( int );
00035 void setAlignment( const TQString& );
00036 void setFixedPitch( bool );
00037 void setShadow( int );
00038
00039 int getFontSize() const;
00040 TQColor getColor() const;
00041 TQColor getBGColor() const;
00042 TQString getFont() const;
00043 int getAlignment() const;
00044 TQString getAlignmentAsString() const;
00045 bool getFixedPitch() const;
00046 int getShadow() const;
00047 int getLineHeight() const;
00048
00049 protected:
00050 int alignment;
00051 TQFont font;
00052 TQColor color;
00053 TQColor bgColor;
00054 int shadow;
00055 int lineHeight;
00056
00057 }
00058 ;
00059 #endif // TEXTFIELD_H