X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FToolbar.cs;h=2a123857df9c4a119f50f369ec33c5a5b5ef206a;hb=58283d6a09a7f531af61ae7b27b574603ef244df;hp=4c8eb08d204b0413ad0954c06c174d36e1f10d2a;hpb=6a9e8fd274834f116ea4eb6a84fbe9fab6faefe8;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/ElmSharp/ElmSharp/Toolbar.cs b/src/ElmSharp/ElmSharp/Toolbar.cs
old mode 100755
new mode 100644
index 4c8eb08..2a12385
--- a/src/ElmSharp/ElmSharp/Toolbar.cs
+++ b/src/ElmSharp/ElmSharp/Toolbar.cs
@@ -23,6 +23,7 @@ namespace ElmSharp
/// Enumeration for the selection mode of the toolbar.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public enum ToolbarSelectionMode
{
///
@@ -50,6 +51,7 @@ namespace ElmSharp
/// Enumeration for setting the toolbar items display behavior, it can be scrollable, can show a menu with exceeding items, or simply hide them.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public enum ToolbarShrinkMode
{
///
@@ -82,6 +84,7 @@ namespace ElmSharp
/// Enumeration for the icon lookup order of the toolbar.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public enum ToolbarIconLookupOrder
{
///
@@ -112,12 +115,14 @@ namespace ElmSharp
/// Inherits EventArgs.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public class ToolbarItemEventArgs : EventArgs
{
///
/// Gets the ToolbarItem.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem Item { get; private set; }
internal static ToolbarItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
@@ -131,6 +136,7 @@ namespace ElmSharp
/// The Toolbar is a widget that displays a list of items inside a box.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public class Toolbar : Widget
{
SmartEvent _clicked;
@@ -144,6 +150,7 @@ namespace ElmSharp
/// A EvasObject to which the new Table instance will be attached.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public Toolbar(EvasObject parent) : base(parent)
{
_selected = new SmartEvent(this, this.RealHandle, "selected", ToolbarItemEventArgs.CreateFromSmartEvent);
@@ -171,6 +178,7 @@ namespace ElmSharp
/// Selected will be triggered when toolbar has been selected.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler Selected;
///
@@ -178,6 +186,7 @@ namespace ElmSharp
///
/// True for homogeneous, False for no homogeneous.
/// preview
+ [Obsolete("This has been deprecated in API12")]
public bool Homogeneous
{
get
@@ -194,6 +203,7 @@ namespace ElmSharp
/// Sets or gets the slection mode of a given Toolbar widget.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarSelectionMode SelectionMode
{
get
@@ -210,6 +220,7 @@ namespace ElmSharp
/// Sets or gets the shrink mode of a given Toolbar widget.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarShrinkMode ShrinkMode
{
get
@@ -226,6 +237,7 @@ namespace ElmSharp
/// Sets or gets the toolbar's current orientation.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsHorizontal
{
@@ -245,6 +257,7 @@ namespace ElmSharp
/// Icons added before calling this function will not be affected.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarIconLookupOrder IconLookupOrder
{
get
@@ -262,6 +275,7 @@ namespace ElmSharp
/// Default value is 32 pixels, to be used by toolbar items.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public int IconSize
{
get
@@ -278,6 +292,7 @@ namespace ElmSharp
/// Gets the number of items in a Toolbar widget.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public int ItemsCount
{
get
@@ -291,6 +306,7 @@ namespace ElmSharp
///
/// The toolbar items alignment, a float between 0.0 and 1.0.
/// preview
+ [Obsolete("This has been deprecated in API12")]
public double ItemAlignment
{
get
@@ -311,6 +327,7 @@ namespace ElmSharp
/// By default it's false.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public bool TransverseExpansion
{
get
@@ -331,6 +348,7 @@ namespace ElmSharp
///
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem Append(string label)
{
return Append(label, null);
@@ -346,9 +364,10 @@ namespace ElmSharp
///
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem Append(string label, string icon)
{
- ToolbarItem item = new ToolbarItem(label, icon);
+ ToolbarItem item = new ToolbarItem(label, icon, this);
item.Handle = Interop.Elementary.elm_toolbar_item_append(RealHandle, icon, label, null, (IntPtr)item.Id);
return item;
}
@@ -362,6 +381,7 @@ namespace ElmSharp
///
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem Prepend(string label)
{
return Prepend(label, null);
@@ -377,9 +397,10 @@ namespace ElmSharp
///
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem Prepend(string label, string icon)
{
- ToolbarItem item = new ToolbarItem(label, icon);
+ ToolbarItem item = new ToolbarItem(label, icon, this);
item.Handle = Interop.Elementary.elm_toolbar_item_prepend(RealHandle, icon, label, null, (IntPtr)item.Id);
return item;
}
@@ -392,6 +413,7 @@ namespace ElmSharp
/// The new which is inserted into the toolbar.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem InsertBefore(ToolbarItem before, string label)
{
return InsertBefore(before, label, string.Empty);
@@ -406,9 +428,10 @@ namespace ElmSharp
/// The new which is inserted into the toolbar.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem InsertBefore(ToolbarItem before, string label, string icon)
{
- ToolbarItem item = new ToolbarItem(label, icon);
+ ToolbarItem item = new ToolbarItem(label, icon, this);
item.Handle = Interop.Elementary.elm_toolbar_item_insert_before(RealHandle, before, icon, label, null, (IntPtr)item.Id);
return item;
}
@@ -421,9 +444,10 @@ namespace ElmSharp
/// A string with the icon name or the absolute path of an image file.
/// The new which is inserted into the toolbar.
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem InsertAfter(ToolbarItem after, string label, string icon)
{
- ToolbarItem item = new ToolbarItem(label, icon);
+ ToolbarItem item = new ToolbarItem(label, icon, this);
item.Handle = Interop.Elementary.elm_toolbar_item_insert_after(RealHandle, after, icon, label, null, (IntPtr)item.Id);
return item;
}
@@ -434,6 +458,7 @@ namespace ElmSharp
/// The label of the item.
/// The into the toolbar.
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem FindItemByLabel(string label)
{
IntPtr handle = Interop.Elementary.elm_toolbar_item_find_by_label(RealHandle, label);
@@ -444,6 +469,7 @@ namespace ElmSharp
/// Gets the selected ToolbarItemItem of the toolbar.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem SelectedItem
{
get
@@ -457,6 +483,7 @@ namespace ElmSharp
/// Gets the first ToolbarItemItem of the toolbar.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem FirstItem
{
get
@@ -470,6 +497,7 @@ namespace ElmSharp
/// Gets the last ToolbarItemItem of the toolbar.
///
/// preview
+ [Obsolete("This has been deprecated in API12")]
public ToolbarItem LastItem
{
get
@@ -485,6 +513,7 @@ namespace ElmSharp
/// Parent EvasObject.
/// Handle IntPtr.
/// preview
+ [Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);