summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/textlabel.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /superkaramba/src/textlabel.h
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/textlabel.h')
-rw-r--r--superkaramba/src/textlabel.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/superkaramba/src/textlabel.h b/superkaramba/src/textlabel.h
index e8fc9e4..f3774e6 100644
--- a/superkaramba/src/textlabel.h
+++ b/superkaramba/src/textlabel.h
@@ -10,13 +10,13 @@
#ifndef TEXTLABEL_H
#define TEXTLABEL_H
#include "meter.h"
-#include <qstring.h>
-#include <qpainter.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qstringlist.h>
-#include <qrect.h>
+#include <tqstring.h>
+#include <tqpainter.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqstringlist.h>
+#include <tqrect.h>
#include "textfield.h"
@@ -32,55 +32,55 @@ public:
~TextLabel();
void setTextProps( TextField* );
- void setValue( QString );
+ void setValue( TQString );
void setValue( long );
- //virtual QString getStringValue() const { return value.join("\n"); };
- QString getStringValue() const { return value.join("\n"); };
+ //virtual TQString getStringValue() const { return value.join("\n"); };
+ TQString getStringValue() const { return value.join("\n"); };
void setFontSize( int );
- void setBGColor(QColor clr);
- void setFont( QString );
- void setAlignment( QString );
+ void setBGColor(TQColor clr);
+ void setFont( TQString );
+ void setAlignment( TQString );
void setFixedPitch( bool );
void setShadow( int );
- void mUpdate( QPainter * );
+ void mUpdate( TQPainter * );
virtual void show();
virtual void hide();
int getFontSize() const;
- QColor getBGColor() const;
- QString getFont() const;
- QString getAlignment() const;
+ TQColor getBGColor() const;
+ TQString getFont() const;
+ TQString getAlignment() const;
bool getFixedPitch() const;
int getShadow() const;
- void setScroll(ScrollType type, QPoint speed, int gap, int pause);
- void setScroll(char* type, QPoint speed, int gap, int pause);
+ void setScroll(ScrollType type, TQPoint speed, int gap, int pause);
+ void setScroll(char* type, TQPoint speed, int gap, int pause);
- void attachClickArea(QString leftMouseButton, QString middleMouseButton,
- QString rightMouseButton);
+ void attachClickArea(TQString leftMouseButton, TQString middleMouseButton,
+ TQString rightMouseButton);
- virtual bool click(QMouseEvent*);
+ virtual bool click(TQMouseEvent*);
private:
int alignment;
int clip;
- QStringList value;
- QFont font;
- QColor bgColor;
+ TQStringList value;
+ TQFont font;
+ TQColor bgColor;
int lineHeight;
- QSize textSize;
+ TQSize textSize;
int shadow;
TextField text;
- QPoint scrollSpeed;
- QPoint scrollPos;
+ TQPoint scrollSpeed;
+ TQPoint scrollPos;
int scrollGap;
int scrollPause;
int pauseCounter;
ScrollType scrollType;
- int drawText(QPainter *p, int x, int y, int width, int height,
- QString text);
- bool calculateScrollCoords(QRect meterRect, QRect &textRect,
- QPoint &next, int &x, int &y);
+ int drawText(TQPainter *p, int x, int y, int width, int height,
+ TQString text);
+ bool calculateScrollCoords(TQRect meterRect, TQRect &textRect,
+ TQPoint &next, int &x, int &y);
void calculateTextSize();
};