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