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_TIMEDELTA_HPP_ 00011 #define THECHESS_WIDGETS_TIMEDELTA_HPP_ 00012 00013 #include <Wt/WCompositeWidget> 00014 #include <Wt/Dbo/ptr> 00015 namespace dbo = Wt::Dbo; 00016 00017 #include "time_intervals.hpp" 00018 00019 namespace Wt { 00020 class WContainerWidget; 00021 class WFormWidget; 00022 } 00023 00024 namespace thechess { 00025 namespace widgets { 00026 00027 class TimeDeltaWidgetImpl; 00028 00029 class TimeDeltaWidget : public Wt::WCompositeWidget { 00030 public: 00031 TimeDeltaWidget(const Td& min, const Td& value, const Td& max, 00032 Wt::WContainerWidget* parent=0); 00033 Td value() const; 00034 Wt::WFormWidget* form_widget(); // for labbels 00035 00036 private: 00037 TimeDeltaWidgetImpl* impl_; 00038 }; 00039 00040 } 00041 } 00042 00043 #endif