estring.h

00001 #ifndef _estring_h_
00002 #define _estring_h_
00003 
00004 #include <qstring.h>
00005 #include "teglobal.h"
00006 
00007 enum SEffect
00008 {
00009         se_scrollleft,
00010         se_scrollright,
00011         se_wobble
00012 };
00013 
00014 QString deControl(const QString & sin);
00015 
00016 class LIB_EXPORT EString
00017 {
00018 public:
00019         EString():wwidth(20),pos(0),dir(1),delay(4){};
00020         EString(QString _text, int windowwidth):wwidth(windowwidth),pos(0),dir(1),delay(4)
00021         {
00022                 text=deControl(_text);
00023         };
00024         EString(const EString & in):text(in.text),wwidth(in.wwidth),pos(0),dir(1),delay(4){};
00025         ~EString(){};
00026 
00027 
00028         QString update();
00029         QString current();
00030         void setEffect(SEffect _eff);
00031         uint width()
00032         {
00033                 return wwidth;
00034         };
00035 protected:
00036         QString text,_current;
00037         uint wwidth;
00038         int pos,dir,delay;
00039         SEffect eff;
00040 };
00041 
00042 #endif

Generated on Sun Jul 2 23:37:24 2006 for Trade equipment common library. by  doxygen 1.4.7