blob: 8eaf6fde9e9d1b01b113c0043fe052e420acdf2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/***************************************************************************
UI.h - description
-------------------
begin : Thu Dec 30 1999
copyright : (C) 1999 by Jurrien Loonstra
email : j.h.loonstra@st.hanze.nl
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef UI_H
#define UI_H
#include <qpe/qpeapplication.h>
#include <qobject.h>
#include <qpixmap.h>
#include <qpainter.h>
#include <qstring.h>
#include "Picture.h"
#include "MCursor.h"
#include "field.h"
#include "kbill.h"
class UI {
public:
~UI();
void restart_timer();
void kill_timer();
void initialize(int *argc, char **argv);
void make_mainwin();
void make_windows() {};
void popup_dialog (int dialog);
void set_cursor (int cursor);
void load_cursors();
void graph_init();
void clear();
void refresh();
void draw (Picture picture, int x, int y);
void draw_centered (Picture picture);
void draw_line (int x1, int y1, int x2, int y2);
void draw_str (char *str, int x, int y);
void set_pausebutton (int action);
int MainLoop();
void update_scorebox(int level, int score);
void update_hsbox(char *str);
private:
MCursor defaultcursor, downcursor;
QPEApplication *app;
QTimer* timer;
Field* field;
KBill* main;
QPixmap *pix;
QPainter paint;
QString scorestr, highscorestr;
};
#endif
|