00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INPUT_H
00022 #define INPUT_H
00023
00024 #include <meter.h>
00025 #include <sklineedit.h>
00026
00027 #include <tqpainter.h>
00028 #include <tqcolor.h>
00029 #include <tqlineedit.h>
00030 #include <tqwidget.h>
00031 #include <tqstring.h>
00032 #include <tqfont.h>
00033
00034 #include "textfield.h"
00035
00036 class Input : public Meter
00037 {
00038 Q_OBJECT
00039 TQ_OBJECT
00040 public:
00041 Input(karamba* k, int ix, int iy, int iw, int ih);
00042 Input();
00043
00044 ~Input();
00045
00046 void mUpdate(TQPainter *p);
00047
00048 void setValue(TQString text);
00049 TQString getStringValue() const;
00050
00051 void setBGColor(TQColor c);
00052 TQColor getBGColor() const;
00053 void setColor(TQColor c);
00054 TQColor getColor() const;
00055 void setFontColor(TQColor fontColor);
00056 TQColor getFontColor() const;
00057 void setSelectionColor(TQColor selectionColor);
00058 TQColor getSelectionColor() const;
00059 void setSelectedTextColor(TQColor selectedTextColor);
00060 TQColor getSelectedTextColor() const;
00061 void setTextProps(TextField*);
00062
00063 void hide();
00064 void show();
00065
00066 void setSize(int ix, int iy, int iw, int ih);
00067 void setX(int ix);
00068 void setY(int iy);
00069 void setWidth(int iw);
00070 void setHeight(int ih);
00071
00072 void setFont(TQString f);
00073 TQString getFont() const;
00074 void setFontSize(int size);
00075 int getFontSize() const;
00076
00077 void setInputFocus();
00078 void clearInputFocus();
00079
00080 private:
00081 SKLineEdit *edit;
00082 TQFont font;
00083 };
00084
00085 #endif