TheChess
|
00001 /* 00002 * thechess, chess game web application written in C++ and based on Wt 00003 * Copyright (C) 2010 Boris Nagaev 00004 * 00005 * thechess is licensed under the GNU GPL Version 2. 00006 * Other versions of the GPL do not apply. 00007 * See the LICENSE file for terms of use. 00008 */ 00009 00010 #ifndef THECHESS_WIDGETS_GAMAPARAMETERSWIDGET_HPP_ 00011 #define THECHESS_WIDGETS_GAMAPARAMETERSWIDGET_HPP_ 00012 00013 #include <Wt/WContainerWidget> 00014 #include <Wt/WCheckBox> 00015 00016 #include "model/GameParameters.hpp" 00017 #include "widgets/TableForm.hpp" 00018 00019 namespace thechess { 00020 namespace widgets { 00021 00022 class MySpinBox; 00023 class TimeDeltaWidget; 00024 class MovesWidget; 00025 00026 class GameParametersWidget : public TableForm { 00027 public: 00028 GameParametersWidget(const model::GameParameters* gp, 00029 Wt::WContainerWidget* parent=0); 00030 void apply_parameters(model::GameParameters* gp); 00031 00032 private: 00033 MovesWidget* moves_widget_; 00034 00035 TimeDeltaWidget* limit_std_; 00036 TimeDeltaWidget* limit_private_init_; 00037 00038 Wt::WCheckBox* norating_; 00039 00040 TimeDeltaWidget* pause_limit_init_; 00041 MySpinBox* first_draw_; 00042 }; 00043 00044 } 00045 } 00046 00047 00048 #endif 00049