00001 #ifndef PLAYERDIALOG_H 00002 #define PLAYERDIALOG_H 00003 00004 #include <qradiobutton.h> 00005 #include <qdialog.h> 00006 00007 class PlayerDialog : public QDialog 00008 { 00009 Q_OBJECT 00010 private: 00011 bool auto1; 00012 bool auto2; 00013 QRadioButton* manual_button1; 00014 QRadioButton* auto_button1; 00015 QRadioButton* manual_button2; 00016 QRadioButton* auto_button2; 00017 public: 00018 PlayerDialog(QWidget* parent=0,const char* name=0,bool modal=TRUE,WFlags f=0); 00019 ~PlayerDialog(); 00020 private slots: 00021 void button_manual1(); 00022 void button_auto1(); 00023 void button_manual2(); 00024 void button_auto2(); 00025 private: 00026 void button1_state(bool computer); 00027 void button2_state(bool computer); 00028 public: 00029 void setAuto1(bool newstate); 00030 bool getAuto1(); 00031 void setAuto2(bool newstate); 00032 bool getAuto2(); 00033 }; 00034 00035 #endif //PLAYERDIALOG_H
1.4.2