From 2be7a27c5126855fac8d0c6f48c72066b8f87705 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 6 Mar 2016 19:48:47 +0100 Subject: Add some deprecation notices --- demos/quickstart/protected/pages/ActiveControls/AutoComplete.page | 4 ++++ demos/quickstart/protected/pages/ActiveControls/DragDrop.page | 8 ++++++++ demos/quickstart/protected/pages/ActiveControls/Home.page | 4 ++-- framework/Web/UI/ActiveControls/TAutoComplete.php | 4 ++++ framework/Web/UI/ActiveControls/TDraggable.php | 4 ++++ framework/Web/UI/ActiveControls/TDropContainer.php | 5 +++++ 6 files changed, 27 insertions(+), 2 deletions(-) diff --git a/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page b/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page index 898822a0..525904cd 100755 --- a/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page +++ b/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page @@ -2,6 +2,10 @@

TAutoComplete

+

+This widget is deprecated. Please use TJuiAutoComplete instead. +

+

TAutoComplete is an extended ActiveTextBox that provides a list of suggestions on the current partial word typed in the textbox. The suggestions are requested using callbacks. The Frequency and MinChars properties sets the delay and minimum number of characters typed, respectively, before requesting for sugggestions. An embedded TRepeater is used to Display the list of suggestions. It can be accessed and styled through the Suggestions property and its sub-properties.

diff --git a/demos/quickstart/protected/pages/ActiveControls/DragDrop.page b/demos/quickstart/protected/pages/ActiveControls/DragDrop.page index 8ad0f730..16f48666 100755 --- a/demos/quickstart/protected/pages/ActiveControls/DragDrop.page +++ b/demos/quickstart/protected/pages/ActiveControls/DragDrop.page @@ -2,6 +2,10 @@

TDropContainer

+

+This widget is deprecated. Please use TJuiDroppable instead. +

+

TDropContainer represent an area where TDraggable controls can be dropped. When a TDraggable is dropped, a @@ -14,6 +18,10 @@ the OnDrop event.

TDraggable

+

+This widget is deprecated. Please use TJuiDraggable instead. +

+

TDraggable will make its child controls 'draggable'. When a TDraggable is dropped, a callback request is initiated. The OnCallback event is raised diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index 25590089..eabfe78f 100755 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -165,7 +165,7 @@ TActiveButton control. See also the later part of the

  • - TAutoComplete + TAutoComplete (deprecated) extends TActiveTextBox to offer text completion suggestions.
  • @@ -196,7 +196,7 @@ TActiveButton control. See also the later part of the TDropContainer & TDraggable represents drag and drop containers. + TDropContainer & TDraggable (deprecated) represents drag and drop containers. The former will make its child controls "draggable" while the latter will raise a callback when a draggable control is dropped on it. diff --git a/framework/Web/UI/ActiveControls/TAutoComplete.php b/framework/Web/UI/ActiveControls/TAutoComplete.php index e396e114..e80d587e 100644 --- a/framework/Web/UI/ActiveControls/TAutoComplete.php +++ b/framework/Web/UI/ActiveControls/TAutoComplete.php @@ -18,6 +18,9 @@ Prado::using('System.Web.UI.ActiveControls.TCallbackEventParameter'); /** * TAutoComplete class. * + * Warning: this class is deprecatd and will be removed in a future release. + * We suggest you to investigate using {@link TJuiAutoComplete} instead. + * * TAutoComplete is a textbox that provides a list of suggestion on * the current partial word typed in the textbox. The suggestions are * requested using callbacks, and raises the {@link onSuggestion OnSuggestion} @@ -78,6 +81,7 @@ Prado::using('System.Web.UI.ActiveControls.TCallbackEventParameter'); * @author Wei Zhuo * @package System.Web.UI.ActiveControls * @since 3.1 + * @deprecated Use TJuiAutoComplete instead */ class TAutoComplete extends TActiveTextBox implements INamingContainer { diff --git a/framework/Web/UI/ActiveControls/TDraggable.php b/framework/Web/UI/ActiveControls/TDraggable.php index 3f6008bc..830200e3 100755 --- a/framework/Web/UI/ActiveControls/TDraggable.php +++ b/framework/Web/UI/ActiveControls/TDraggable.php @@ -11,6 +11,9 @@ /** * TDraggable is a control which can be dragged * + * Warning: this class is deprecatd and will be removed in a future release. + * We suggest you to investigate using {@link TJuiDraggable} instead. + * * This control will make "draggable" control. * Properties : * @@ -25,6 +28,7 @@ * @copyright Copyright © 2008, PradoSoft * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT * @package System.Web.UI.ActiveControls + * @deprecated Use TJuiDraggable instead */ class TDraggable extends TPanel { diff --git a/framework/Web/UI/ActiveControls/TDropContainer.php b/framework/Web/UI/ActiveControls/TDropContainer.php index 49eb0db6..216d3dba 100755 --- a/framework/Web/UI/ActiveControls/TDropContainer.php +++ b/framework/Web/UI/ActiveControls/TDropContainer.php @@ -21,6 +21,10 @@ Prado::using('System.Web.UI.ActiveControls.TActivePanel'); /** * TDropContainer is a panel where TDraggable controls can be dropped. + * + * Warning: this class is deprecatd and will be removed in a future release. + * We suggest you to investigate using {@link TJuiDroppable} instead. + * * When a TDraggable component is dropped into a TDropContainer, the {@link OnDrop OnDrop} event is raised. * The {@link TDropContainerEventParameter} param will contain the dropped control. * @@ -39,6 +43,7 @@ Prado::using('System.Web.UI.ActiveControls.TActivePanel'); * @copyright Copyright © 2008, PradoSoft * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT * @package System.Web.UI.ActiveControls + * @deprecated Use TJuiDroppable instead */ class TDropContainer extends TPanel implements IActiveControl, ICallbackEventHandler { -- cgit v1.2.3