00001 00015 #ifndef _GUI__GAME_MENU_H_ 00016 #define _GUI__GAME_MENU_H_ 00017 00018 #include <qwidget.h> 00019 #include <qlayout.h> 00020 #include <qcombobox.h> 00021 #include <qslider.h> 00022 00023 #include "../game_configuration.h" 00024 00028 namespace GUI 00029 { 00030 class GameMenu; 00031 } 00032 00038 class GUI::GameMenu: public QWidget 00039 { 00040 private: 00041 // Allows to contain signals and/or slots 00042 Q_OBJECT 00043 00045 QGridLayout *_grid; 00046 00048 QComboBox *_environmentCB; 00049 00051 QComboBox *_avatarCB; 00052 00054 QComboBox *_playBoxGraphicsCB; 00055 00057 QComboBox *_playBoxPhysicsCB; 00058 00060 QComboBox *_difficultyCB; 00061 00063 QSlider *_numberOfDifferentBubblesSL; 00064 00066 QSlider *_numberOfFilledLayersSL; 00067 00069 QSlider *_bubblesDensitySL; 00070 00072 QSlider *_rearWallSpeedSL; 00073 00074 public: 00075 00082 GameMenu(QWidget *parent = 0, const char *name = 0); 00083 00087 GameConfiguration getGameConfig(); 00088 00089 public slots: 00090 00094 void difficultyChanged(); 00095 }; 00096 00097 #endif