[ACR-564] deprecate unused API
[platform/core/csapi/tizenfx.git] / src / ElmSharp / ElmSharp / ToolbarItem.cs
old mode 100755 (executable)
new mode 100644 (file)
index 072baab..6e71c98
@@ -19,21 +19,32 @@ using System;
 namespace ElmSharp
 {
     /// <summary>
-    /// The ToolbarItem is a item of Toolbar.
+    /// The ToolbarItem is an item of the toolbar.
     /// </summary>
+    /// <since_tizen> preview </since_tizen>
+    [Obsolete("This has been deprecated in API12")]
     public class ToolbarItem : ItemObject
     {
         string _icon;
         string _text;
+
         internal ToolbarItem(string text, string icon) : base(IntPtr.Zero)
         {
             _text = text;
             _icon = icon;
         }
 
+        internal ToolbarItem(string text, string icon, EvasObject parent) : base(IntPtr.Zero, parent)
+        {
+            _text = text;
+            _icon = icon;
+        }
+
         /// <summary>
         /// Sets or gets the icon path of the item.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public string Icon
         {
             get
@@ -50,6 +61,8 @@ namespace ElmSharp
         /// <summary>
         /// Sets or gets the text string of the item.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public string Text
         {
             get
@@ -66,6 +79,7 @@ namespace ElmSharp
         /// <summary>
         /// Sets or gets the enable of the item.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
         [Obsolete("Enabled is obsolete as of version v1.1.0-beta-023. Please use IsEnabled instead.")]
         public bool Enabled
         {
@@ -82,7 +96,9 @@ namespace ElmSharp
         /// <summary>
         /// Sets or gets whether displaying the item as a separator.
         /// </summary>
-        /// <remarks>Items aren't set as a separator by default. If set as a separator it displays a separator theme, so it won't display icons or labels.</remarks>
+        /// <remarks>Items aren't set as a separator by default. If set as a separator, it displays a separator theme, so it won't display the icons or labels.</remarks>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public bool IsSeparator
         {
             get
@@ -98,6 +114,8 @@ namespace ElmSharp
         /// <summary>
         /// Sets or gets whether the item is selected.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public bool IsSelected
         {
             get
@@ -113,16 +131,22 @@ namespace ElmSharp
         /// <summary>
         /// Selected will be triggered when the item is selected.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler Selected;
 
         /// <summary>
-        /// LongPressed will be triggered when the item is pressed long time.
+        /// LongPressed will be triggered when the item is pressed for a long time.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler LongPressed;
 
         /// <summary>
         /// Clicked will be triggered when the item is clicked.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler Clicked;
 
         internal void SendSelected()