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_MYSPINBOX_HPP_ 00011 #define THECHESS_WIDGETS_MYSPINBOX_HPP_ 00012 00013 #include <Wt/WSpinBox> 00014 #include <Wt/WDoubleSpinBox> 00015 00016 namespace Wt { 00017 class WContainerWidget; 00018 } 00019 00020 namespace thechess { 00021 namespace widgets { 00022 00023 class MySpinBox : public Wt::WSpinBox { 00024 public: 00025 MySpinBox(Wt::WContainerWidget* parent=0); 00026 int value() const; 00027 }; 00028 00029 class MyDoubleSpinBox : public Wt::WDoubleSpinBox { 00030 public: 00031 MyDoubleSpinBox(Wt::WContainerWidget* parent=0); 00032 double value() const; 00033 }; 00034 00035 } 00036 } 00037 00038 #endif 00039