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_COMPETITION_CREATE_WIDGET_HPP_ 00011 #define THECHESS_WIDGETS_COMPETITION_CREATE_WIDGET_HPP_ 00012 00013 #include <Wt/WContainerWidget> 00014 00015 #include "model/Competition.hpp" 00016 00017 namespace thechess { 00018 namespace widgets { 00019 00020 class CompetitionParametersWidget2; 00021 00022 class CompetitionCreateWidget : public Wt::WContainerWidget { 00023 public: 00024 CompetitionCreateWidget(Wt::WContainerWidget* p=0); 00025 CompetitionCreateWidget(model::CompetitionPtr c, Wt::WContainerWidget* p=0); 00026 Wt::EventSignal<Wt::WMouseEvent>& saved(); 00027 00028 private: 00029 CompetitionParametersWidget2* cpw_; 00030 model::CompetitionPtr c_; 00031 Wt::WPushButton* ok_; 00032 00033 void button_handler_(); 00034 }; 00035 00036 } 00037 } 00038 00039 #endif 00040