Add wxAddRemoveCtrl class.

This is a simple high level helper combining an arbitrary control showing
multiple items with the buttons allowing to add items to and remove items from
this control, but using the buttons and the layout appropriate for the current
platform.

Add the implementation itself, an example of using it to the dialogs sample
and the documentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2015-02-09 00:26:11 +00:00
parent adb339078e
commit 453897149f
36 changed files with 1388 additions and 184 deletions

51
configure vendored
View File

@@ -1242,6 +1242,7 @@ enable_dnd
enable_controls
enable_markup
enable_accel
enable_addremovectrl
enable_animatectrl
enable_bannerwindow
enable_artstd
@@ -2173,6 +2174,7 @@ Optional Features:
--disable-controls disable compilation of all standard controls
--enable-markup support wxControl::SetLabelMarkup
--enable-accel use accelerators
--enable-addremovectrl use wxAddRemoveCtrl
--enable-animatectrl use wxAnimationCtrl class
--enable-bannerwindow use wxBannerWindow class
--enable-artstd use standard XPM icons in wxArtProvider
@@ -11243,6 +11245,50 @@ fi
$as_echo "$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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-addremovectrl" >&5
$as_echo_n "checking for --${enablestring:-enable}-addremovectrl... " >&6; }
# Check whether --enable-addremovectrl was given.
if test "${enable_addremovectrl+set}" = set; then :
enableval=$enable_addremovectrl;
if test "$enableval" = yes; then
wx_cv_use_addremovectrl='wxUSE_ADDREMOVECTRL=yes'
else
wx_cv_use_addremovectrl='wxUSE_ADDREMOVECTRL=no'
fi
else
wx_cv_use_addremovectrl='wxUSE_ADDREMOVECTRL=${'DEFAULT_wxUSE_ADDREMOVECTRL":-$defaultval}"
fi
eval "$wx_cv_use_addremovectrl"
if test x"$enablestring" = xdisable; then
if test $wxUSE_ADDREMOVECTRL = no; then
result=yes
else
result=no
fi
else
result=$wxUSE_ADDREMOVECTRL
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
$as_echo "$result" >&6; }
enablestring=
defaultval=$wxUSE_ALL_FEATURES
if test -z "$defaultval"; then
@@ -35704,6 +35750,11 @@ if test "$wxUSE_ACCEL" = "yes"; then
USES_CONTROLS=1
fi
if test "$wxUSE_ADDREMOVECTRL" = "yes"; then
$as_echo "#define wxUSE_ADDREMOVECTRL 1" >>confdefs.h
fi
if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
$as_echo "#define wxUSE_ANIMATIONCTRL 1" >>confdefs.h