X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FPopup.cs;h=118318c1d3719b8c8def052cb3d511108913c395;hb=58283d6a09a7f531af61ae7b27b574603ef244df;hp=91da39750c597f572d1a3b4f0f4d5f614baf0d0a;hpb=2ab6e72541ec4c50b7c6034523463786924bfc92;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/ElmSharp/ElmSharp/Popup.cs b/src/ElmSharp/ElmSharp/Popup.cs old mode 100755 new mode 100644 index 91da397..118318c --- a/src/ElmSharp/ElmSharp/Popup.cs +++ b/src/ElmSharp/ElmSharp/Popup.cs @@ -20,12 +20,14 @@ using System.Collections.Generic; namespace ElmSharp { /// - /// Enumeration for the popup orientation type. + /// Enumeration for the popup orientation types. /// + /// preview + [Obsolete("This has been deprecated in API12")] public enum PopupOrientation { /// - /// Appears in the top of parent, default. + /// Appears in the top of parent, by default. /// Top, /// @@ -63,9 +65,11 @@ namespace ElmSharp } /// - /// The Popup is a widget that is an enhancement of Notify. + /// The Popup is a widget that is an enhancement of notify. /// In addition to content area, there are two optional sections, namely title area and action area. /// + /// preview + [Obsolete("This has been deprecated in API12")] public class Popup : Layout { HashSet _children = new HashSet(); @@ -77,7 +81,9 @@ namespace ElmSharp /// /// Creates and initializes a new instance of the Popup class. /// - /// The EvasObject to which the new Popup will be attached as a child. + /// The EvasObject to which the new popup will be attached as a child. + /// preview + [Obsolete("This has been deprecated in API12")] public Popup(EvasObject parent) : base(parent) { _dismissed = new SmartEvent(this, "dismissed"); @@ -106,28 +112,38 @@ namespace ElmSharp } /// - /// Dismissed will be triggered when Popup have been dismissed. + /// Dismissed will be triggered when the popup has been dismissed. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Dismissed; /// /// OutsideClicked will be triggered when users taps on the outside of Popup. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler OutsideClicked; /// - /// OutsideClicked will be triggered when Popup is closed as a result of timeout. + /// OutsideClicked will be triggered when the popup is closed as a result of timeout. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler TimedOut; /// - /// OutsideClicked will be triggered when the Popup transition is finished in showing. + /// OutsideClicked will be triggered when the popup transition has finished in showing. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ShowAnimationFinished; /// - /// Sets or gets the position in which Popup will appear in its parent. + /// Sets or gets the position in which the popup will appear in its parent. /// + /// preview + [Obsolete("This has been deprecated in API12")] public PopupOrientation Orientation { get @@ -141,8 +157,13 @@ namespace ElmSharp } /// - /// Sets or gets the wrapping type of content text packed in content area of Popup widget. + /// Sets or gets the wrapping type of content text packed in the content area of Popup widget. /// + /// + /// Popup need to wrap the content text, so not allowing WrapType.None. + /// + /// preview + [Obsolete("This has been deprecated in API12")] public WrapType ContentTextWrapType { get @@ -156,15 +177,17 @@ namespace ElmSharp } /// - /// Sets or gets the timeout value set to the Popup(in seconds). + /// Sets or gets the timeout value set to the popup (in seconds). /// /// /// Since calling Show() on a popup restarts the timer controlling when it is hidden, - /// setting this before the popup is shown will in effect mean starting the timer when the popup is shown. - /// TimedOut is called afterwards which can be handled if needed. - /// 0.0 and the popup is previously visible,]]> + /// setting this before the popup is shown, will in effect mean starting the timer when the popup is shown. + /// TimedOut is called afterwards, which can be handled, if needed. + /// 0.0 and the popup is previously visible,]]> /// the timer will be started with this value, canceling any running timer. /// + /// preview + [Obsolete("This has been deprecated in API12")] public double Timeout { get @@ -178,11 +201,13 @@ namespace ElmSharp } /// - /// Sets or gets whether events should be passed to event blocked area by a click outside. + /// Sets or gets whether events should be passed to the event blocked area by a click outside. /// /// - /// The visible region of popup is surrounded by a translucent region called Blocked Event area. + /// The visible region of the popup is surrounded by a translucent region called the Blocked event area. /// + /// preview + [Obsolete("This has been deprecated in API12")] public bool AllowEvents { get @@ -198,6 +223,8 @@ namespace ElmSharp /// /// Sets or gets the AlignmentX in which the popup will appear in its parent. /// + /// preview + [Obsolete("This has been deprecated in API12")] public override double AlignmentX { get @@ -213,6 +240,8 @@ namespace ElmSharp /// /// Sets or gets the AlignmentY in which the popup will appear in its parent. /// + /// preview + [Obsolete("This has been deprecated in API12")] public override double AlignmentY { get @@ -226,8 +255,10 @@ namespace ElmSharp } /// - /// Gets the Opacity value of the Popup. + /// Gets the opacity value of the popup. /// + /// preview + [Obsolete("This has been deprecated in API12")] public override int Opacity { get @@ -242,24 +273,28 @@ namespace ElmSharp } /// - /// Adds label to a Popup widget. + /// Adds the label to a Popup widget. /// /// - /// The new PopupItem which contains label . + /// The new PopupItem which contains a label. + /// preview + [Obsolete("This has been deprecated in API12")] public PopupItem Append(string label) { return Append(label, null); } /// - /// Adds Label and icon to a Popup widget. + /// Adds the Label and icon to a Popup widget. /// - /// The Label which will be added into a new PopupItem. - /// The icon which will be added into a new PopupItem. - /// The new PopupItem which contains label and icon. + /// The Label, which will be added into a new PopupItem. + /// The icon, which will be added into a new PopupItem. + /// The new PopupItem, which contains the label and icon. + /// preview + [Obsolete("This has been deprecated in API12")] public PopupItem Append(string label, EvasObject icon) { - PopupItem item = new PopupItem(label, icon); + PopupItem item = new PopupItem(label, icon, this); item.Handle = Interop.Elementary.elm_popup_item_append(Handle, label, icon, null, (IntPtr)item.Id); AddInternal(item); return item; @@ -267,8 +302,10 @@ namespace ElmSharp /// /// Uses this function to dismiss the popup in hide effect. - /// when the Popup is dismissed, the "dismissed" signal will be emitted. + /// When the Popup is dismissed, the "dismissed" signal will be emitted. /// + /// preview + [Obsolete("This has been deprecated in API12")] public void Dismiss() { Interop.Elementary.elm_popup_dismiss(Handle); @@ -277,8 +314,10 @@ namespace ElmSharp /// /// Creates a widget handle. /// - /// Parent EvasObject - /// Handle IntPtr + /// Parent EvasObject. + /// Handle IntPtr. + /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_popup_add(parent.Handle); @@ -293,4 +332,4 @@ namespace ElmSharp _children.Remove((PopupItem)sender); } } -} \ No newline at end of file +}