Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

UI.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           UI.h  -  description
00003                              -------------------
00004     begin                : Thu Dec 30 1999
00005     copyright            : (C) 1999 by Jurrien Loonstra
00006     email                : j.h.loonstra@st.hanze.nl
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef UI_H
00018 #define UI_H
00019 
00020 #include <qpe/qpeapplication.h>
00021 #include <qobject.h>
00022 #include <qpixmap.h>
00023 #include <qpainter.h>
00024 #include <qstring.h>
00025 
00026 #include "Picture.h"
00027 #include "MCursor.h"
00028 
00029 #include "field.h"
00030 #include "kbill.h"
00031 
00032 class UI {
00033 public:
00034         ~UI();
00035         void restart_timer();
00036         void kill_timer();
00037 
00038         void initialize(int *argc, char **argv);
00039         void make_mainwin();
00040         void make_windows() {};
00041         void popup_dialog (int dialog);
00042 
00043         void set_cursor (int cursor);
00044         void load_cursors();
00045         void graph_init();
00046         void clear();
00047         void refresh();
00048         void draw (Picture picture, int x, int y);
00049         void draw_centered (Picture picture);
00050         void draw_line (int x1, int y1, int x2, int y2);
00051         void draw_str (char *str, int x, int y);
00052 
00053         void set_pausebutton (int action);
00054         int MainLoop();
00055 
00056         void update_scorebox(int level, int score);
00057         void update_hsbox(char *str);
00058 private:
00059         MCursor defaultcursor, downcursor;
00060 
00061         QPEApplication *app;
00062         QTimer* timer;
00063 
00064         Field* field;
00065         KBill* main;
00066         
00067         QPixmap *pix;
00068         QPainter paint;
00069 
00070         QString scorestr, highscorestr;
00071 };
00072 
00073 #endif

Generated on Sat Nov 5 16:17:20 2005 for OPIE by  doxygen 1.4.2