/usr/include/Wt/WTimePicker is in libwt-dev 3.3.4+dfsg-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | #ifndef WTIME_PICKER_H_
#define WTIME_PICKER_H_
#include "WCompositeWidget"
#include "WContainerWidget"
#include "WTime"
namespace Wt {
/*! \class WTimePicker Wt/WTimePicker Wt/WTimePicker
* \brief A Time Picker
*
* \sa WTimeEdit
* \sa WTime
* \sa WTimeValidator
*
* Styling through CSS is not applicable.
*
*/
class WT_API WTimePicker : public WCompositeWidget
{
public:
/*! \brief Creates a new time picker.
*/
WTimePicker(WContainerWidget *parent = 0);
/*! \brief Creates a new time picker.
*/
WTimePicker(const WTime &time, WContainerWidget *parent = 0);
WTime time();
/*! \brief sets the time
*/
void setTime(const WTime& time);
/*! \brief returns the minutes step
*/
int minuteStep() const { return minuteStep_; }
/*! \brief sets the minute step
*/
void setMinuteStep(int step) { minuteStep_ = step; }
/*! \brief Signal emitted when the value is changed
*/
Signal<>& selectionChanged() { return selectionChanged_; }
private:
int minuteStep_;
void init(const WTime &time = WTime());
WText *hourText_;
WText *minuteText_;
void incrementMinutes();
void decrementMinutes();
void incrementHours();
void decrementHours();
Signal<> selectionChanged_;
};
} // end namespace Wt
#endif // WTIME_PICKER_H_
|