00001 /*************************************************************************** 00002 prompt.h - description 00003 ------------------- 00004 begin : Fri May 19 2000 00005 copyright : (C) 2000 by Roman Merzlyakov 00006 email : roman@sbrf.barrt.ru 00007 copyright : (C) 2000 by Roman Razilov 00008 email : Roman.Razilov@gmx.de 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 ***************************************************************************/ 00019 #ifndef PROMPT_H 00020 #define PROMPT_H 00021 00022 #include <qwidget.h> 00023 #include "ballpainter.h" 00024 00025 class LinesPrompt : public QWidget 00026 { 00027 Q_OBJECT 00028 00029 BallPainter* bPainter; 00030 bool PromptEnabled; 00031 int cb[BALLSDROP]; 00032 00033 void paintEvent( QPaintEvent* ); 00034 void mousePressEvent( QMouseEvent* ); 00035 00036 public: 00037 LinesPrompt( BallPainter * abPainter, QWidget * parent=0, const char * name=0 ); 00038 ~LinesPrompt(); 00039 00040 void setPrompt(bool enabled); 00041 bool getState(); // enabled = true 00042 void SetBalls( int *pcb ); 00043 00044 int width(); 00045 int height(); 00046 int wPrompt(); 00047 int hPrompt(); 00048 00049 signals: 00050 void PromptPressed(); 00051 00052 }; 00053 00054 #endif
1.4.2