40 void Draw(QPainter *,
int,
int);
41 void DrawRegion(QPainter *, QRect &,
int,
int);
56 void bumpUpLayers(
int a_number);
60 UIType *GetType(
const QString &name);
63 void SetDrawFontShadow(
bool state);
78 class MPUBLIC
UIType :
public QObject
86 void SetOrder(
int order);
88 void SetScreen(
double wmult,
double hmult) { m_wmult = wmult; m_hmult = hmult; }
92 void allowFocus(
bool yes_or_no){takes_focus = yes_or_no;}
99 virtual void Draw(QPainter *,
int,
int);
100 virtual void DrawRegion(QPainter *, QRect &,
int,
int);
101 virtual void calculateScreenArea();
103 QString cutDown(
const QString &
data, QFont *font,
bool multiline =
false,
104 int overload_width = -1,
int overload_height = -1);
113 virtual bool takeFocus();
114 virtual void looseFocus();
116 virtual void refresh();
119 virtual bool toggleShow();
128 void requestUpdate();
129 void requestUpdate(
const QRect &);
130 void requestRegionUpdate(
const QRect &);
162 void SetImages(QPixmap *normal, QPixmap *focused, QPixmap *down,
163 QPixmap *downFocused);
164 void SetDefaultImages(QPixmap *normal, QPixmap *focused, QPixmap *down,
165 QPixmap *downFocused);
173 QString
GetType(
void)
const {
return m_type; }
175 void SetChars(QString normal, QString shift, QString alt, QString shiftAlt);
178 void SetMoves(QString moveLeft, QString moveRight, QString moveUp,
180 QString GetMove(QString direction);
182 void SetShiftState(
bool sh,
bool ag);
183 void SetOn(
bool bOn) { m_bDown = bOn; refresh(); }
184 bool IsOn(
void) {
return m_bDown; }
189 virtual void Draw(QPainter *,
int,
int);
190 virtual void calculateScreenArea();
201 QString decodeChar(QString c);
249 void SetEdit(QWidget* edit) { m_parentEdit = edit; }
251 { m_parentDialog = parentDialog; }
256 virtual void Draw(QPainter *,
int,
int);
257 virtual void calculateScreenArea();
258 virtual void keyPressEvent(QKeyEvent *e);
268 void updateButtons();
277 void insertChar(QString c);