author | mark <mark> | 2002-04-14 17:08:03 (UTC) |
---|---|---|
committer | mark <mark> | 2002-04-14 17:08:03 (UTC) |
commit | bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 (patch) (side-by-side diff) | |
tree | ad77e90c90f4bfb598bbe93aa4b3e14b689c96f4 /noncore/games/kbill/UI.h | |
parent | a0fe593db4e700989cc19e28b67a58f87823afeb (diff) | |
download | opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.zip opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.gz opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.bz2 |
Import of kbill
-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 @@ +/*************************************************************************** + 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 |