Add wxTimePickerCtrl class.

Implement wxTimePickerCtrl natively for MSW and add a generic implementation
(very loosely based on the original class by Paul Breen) for the other
platforms.

Also update the calendar sample to show the new control.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-09-29 13:43:15 +00:00
parent 1319b2684f
commit 569c7d8ccb
39 changed files with 2140 additions and 166 deletions

54
configure vendored
View File

@@ -1870,6 +1870,7 @@ Optional Features:
--enable-taskbaricon use wxTaskBarIcon class
--enable-tbarnative use native wxToolBar class
--enable-textctrl use wxTextCtrl class
--enable-timepick use wxTimePickerCtrl class
--enable-tipwindow use wxTipWindow class
--enable-togglebtn use wxToggleButton class
--enable-toolbar use wxToolBar class
@@ -9911,6 +9912,7 @@ if test "$wxUSE_CONTROLS" = "no"; then
DEFAULT_wxUSE_STATBOX=no
DEFAULT_wxUSE_STATLINE=no
DEFAULT_wxUSE_STATUSBAR=no
DEFAULT_wxUSE_TIMEPICKCTRL=no
DEFAULT_wxUSE_TIPWINDOW=no
DEFAULT_wxUSE_TOGGLEBTN=no
DEFAULT_wxUSE_TOOLBAR=no
@@ -12608,6 +12610,50 @@ fi
echo "${ECHO_T}$result" >&6; }
enablestring=
defaultval=$wxUSE_ALL_FEATURES
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
defaultval=yes
else
defaultval=no
fi
fi
{ echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
# Check whether --enable-datepick was given.
if test "${enable_datepick+set}" = set; then
enableval=$enable_datepick;
if test "$enableval" = yes; then
wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes'
else
wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no'
fi
else
wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}"
fi
eval "$wx_cv_use_datepick"
if test x"$enablestring" = xdisable; then
if test $wxUSE_TIMEPICKCTRL = no; then
result=yes
else
result=no
fi
else
result=$wxUSE_TIMEPICKCTRL
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
enablestring=
defaultval=$wxUSE_ALL_FEATURES
if test -z "$defaultval"; then
@@ -47955,6 +48001,14 @@ _ACEOF
fi
if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define wxUSE_TIMEPICKCTRL 1
_ACEOF
USES_CONTROLS=1
fi
if test "$wxUSE_TOGGLEBTN" = "yes"; then
if test "$wxUSE_OLD_COCOA" = 1 ; then
{ echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5