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_CLASSIFICATION_WIDGET_HPP 00011 #define THECHESS_WIDGETS_CLASSIFICATION_WIDGET_HPP 00012 00013 #include <Wt/WComboBox> 00014 00015 #include "model/UserClassification.hpp" 00016 00017 namespace thechess { 00018 namespace widgets { 00019 00020 class ClassificationWidget : public Wt::WComboBox { 00021 public: 00022 typedef model::Classification Classification; 00023 00024 ClassificationWidget(Classification min=model::NO_CLASSIFICATION, 00025 Classification value=model::NO_CLASSIFICATION, 00026 Classification max=model::SUPER_GRANDMASTER, 00027 Wt::WContainerWidget* parent=0); 00028 Classification value() const; 00029 00030 private: 00031 int first_i_; 00032 }; 00033 00034 } 00035 } 00036 00037 #endif 00038