00001 #ifndef QTPP3 00002 #define QTPP3 00003 00004 #include <qdialog.h> 00005 00006 class QLabel; 00007 class QLineEdit; 00008 class QSlider; 00009 class QPushButton; 00010 class QTextEdit; 00011 class QTimer; 00012 class hdyn; 00013 00014 class pp3_widget : public QDialog { 00015 00016 Q_OBJECT 00017 00018 public: 00019 pp3_widget(int config = 0, QWidget *parent = 0, const char *name = 0); 00020 void start_timer(); 00021 void initialize_slider(hdyn *b); 00022 void set_node(hdyn *b); 00023 00024 private slots: 00025 void set_node_from_string(const QString &line); 00026 void set_node_from_line(); 00027 void set_node_from_index(int); 00028 void quit_pp3(); 00029 void timeout_quit_pp3(); 00030 void update_time(); 00031 00032 private: 00033 00034 hdyn *node; 00035 bool slider_initialized; 00036 int timeout; 00037 int seconds; 00038 00039 QLabel *label; 00040 QLineEdit *idline; 00041 QSlider *slider; 00042 QLabel *tlabel; 00043 QPushButton *next; 00044 QPushButton *quit; 00045 QTextEdit *text; 00046 QTimer *timer; 00047 QTimer *counter; 00048 }; 00049 00050 #endif