X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FGenGrid.cs;h=8ec83eb2cd1376293300c9e9496468c2fb7ebfee;hb=58283d6a09a7f531af61ae7b27b574603ef244df;hp=2b1a6eef3962b8d9ffab738aed464ca58ad4588e;hpb=b527eb13d33cf1ac21a5a699a5cae554b93fac91;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/ElmSharp/ElmSharp/GenGrid.cs b/src/ElmSharp/ElmSharp/GenGrid.cs
index 2b1a6ee..8ec83eb 100644
--- a/src/ElmSharp/ElmSharp/GenGrid.cs
+++ b/src/ElmSharp/ElmSharp/GenGrid.cs
@@ -21,29 +21,35 @@ namespace ElmSharp
{
///
/// It inherits System.EventArgs.
- /// It contains Item which is type.
- /// All events of GenGrid contain GenGridItemEventArgs as a parameter.
+ /// It contains the item which is the type.
+ /// All events of the GenGrid contain GenGridItemEventArgs as a parameter.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public class GenGridItemEventArgs : EventArgs
{
///
- /// Gets or sets GenGrid item.The return type is .
+ /// Gets or sets the gengrid item. The return type is .
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem Item { get; set; }
internal static GenGridItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
{
GenGridItem item = ItemObject.GetItemByHandle(info) as GenGridItem;
- return new GenGridItemEventArgs() { Item = item };
+ return new GenGridItemEventArgs { Item = item };
}
}
///
/// It inherits .
- /// The GenGrid is a widget that aims to position objects in a grid layout while actually creating and rendering only the visible ones.
- /// It has two direction in which a given GenGrid widget expands while placing its items, horizontal and vertical.
- /// The GenGrid items are represented through definition field details.
+ /// The GenGrid is a widget that aims to position objects in a grid layout, while actually creating and rendering only the visible ones.
+ /// It has two directions in which a given GenGrid widget expands while placing its items, horizontal and vertical.
+ /// The gengrid items are represented through the definition field details.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public class GenGrid : Layout
{
HashSet _children = new HashSet();
@@ -57,72 +63,112 @@ namespace ElmSharp
SmartEvent _realized;
SmartEvent _unrealized;
SmartEvent _longpressed;
+ SmartEvent _focused;
+ SmartEvent _unfocused;
SmartEvent _changed;
///
/// Creates and initializes a new instance of the GenGrid class.
///
- /// The parent is a given container which will be attached by GenGrid as a child. It's type.
+ /// The parent is a given container which will be attached by GenGrid as a child. It's the type.
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGrid(EvasObject parent) : base(parent)
{
InitializeSmartEvent();
}
///
- /// ItemSelected is raised when a new gengrid item is selected.
+ /// ItemSelected is raised when a new GenGrid item is selected.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemSelected;
///
- /// ItemUnselected is raised when the gengrid item is Unselected.
+ /// ItemUnselected is raised when the gengrid item is unselected.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemUnselected;
///
/// ItemPressed is raised when a new gengrid item is pressed.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemPressed;
///
/// ItemReleased is raised when a new gengrid item is released.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemReleased;
///
- /// ItemActivated is raised when a new gengrid item is double clicked or pressed (enter|return|spacebar).
+ /// ItemActivated is raised when a new gengrid item is double-clicked or pressed (enter|return|spacebar).
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemActivated;
///
- /// ItemDoubleClicked is raised when a new gengrid item is double clicked.
+ /// ItemDoubleClicked is raised when a new gengrid item is double-clicked.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemDoubleClicked;
///
- /// ItemRealized is raised when a gengrid item is implementing through .
+ /// ItemRealized is raised when a gengrid item is implemented through .
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemRealized;
///
/// ItemUnrealized is raised when the gengrid item is deleted.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemUnrealized;
///
/// ItemLongPressed is raised when a gengrid item is pressed for a certain amount of time. By default it's 1 second.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ItemLongPressed;
///
+ /// ItemFocussed is raised when a gengrid item has received focus.
+ ///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
+ public event EventHandler ItemFocused;
+
+ ///
+ /// ItemUnfocussed is raised when a gengrid item has lost focus.
+ ///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
+ public event EventHandler ItemUnfocused;
+
+ ///
/// Changed is raised when an item is added, removed, resized or moved and when the gengrid is resized or gets "horizontal" property changes.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler Changed;
///
- /// Gets or sets the item's grid alignment along x-axis within a given gengrid widget.
+ /// Gets or sets the item's grid alignment along X-axis within a given GenGrid widget.
/// Accepted values are in the 0.0 to 1.0 range, with the special value -1.0 used to specify "justify" or "fill" by some users.
- /// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the left along x-axis.
+ /// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the left along X-axis.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public double ItemAlignmentX
{
get
@@ -139,10 +185,12 @@ namespace ElmSharp
}
///
- /// Gets or sets the item's grid alignment on y-axis within a given gengrid widget.
+ /// Gets or sets the item's grid alignment on Y-axis within a given GenGrid widget.
/// Accepted values are in the 0.0 to 1.0 range, with the special value -1.0 used to specify "justify" or "fill" by some users.
- /// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the top along y-axis.
+ /// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the top along Y-axis.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public double ItemAlignmentY
{
get
@@ -159,9 +207,11 @@ namespace ElmSharp
}
///
- /// Gets or sets the manner in which the items grid is filled within a given gengrid widget.
- /// It is filled if true, otherwise false.
+ /// Gets or sets the manner in which the items grid is filled within a given GenGrid widget.
+ /// It is filled if true, otherwise not filled if false.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public bool FillItems
{
get
@@ -175,7 +225,7 @@ namespace ElmSharp
}
///
- /// Gets or sets whether multi-selection is enabled or disabled for a given gengrid widget.
+ /// Gets or sets whether multi-selection is enabled or disabled for a given GenGrid widget.
///
///
/// Multi-selection is the ability to have more than one item selected, on a given gengrid, simultaneously.
@@ -183,6 +233,8 @@ namespace ElmSharp
/// A click on an already selected item unselects it. If interacting via the keyboard, multi-selection is enabled while holding the "Shift" key.
/// By default, multi-selection is disabled.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public bool MultipleSelection
{
get
@@ -196,13 +248,15 @@ namespace ElmSharp
}
///
- /// Gets or sets the width for the items of a given gengrid widget.
+ /// Gets or sets the width for the items of a given GenGrid widget.
///
///
/// A gengrid, after creation, still has no information on the size to give to each of its cells.
- /// The default width and height just have one finger wide.
+ /// The default width and height just are one finger wide.
/// Use this property to force a custom width for your items, making them as big as you wish.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public int ItemWidth
{
get
@@ -219,13 +273,15 @@ namespace ElmSharp
}
///
- /// Gets or sets the height for the items of a given gengrid widget.
+ /// Gets or sets the height for the items of a given GenGrid widget.
///
///
/// A gengrid, after creation, still has no information on the size to give to each of its cells.
- /// The default width and height just have one finger wide.
+ /// The default width and height just are one finger wide.
/// Use this property to force a custom height for your items, making them as big as you wish.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public int ItemHeight
{
get
@@ -242,8 +298,10 @@ namespace ElmSharp
}
///
- /// Gets or sets the gengrid select mode by .
+ /// Gets or sets the gengrid select mode by .
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenItemSelectionMode SelectionMode
{
get
@@ -257,12 +315,14 @@ namespace ElmSharp
}
///
- /// Gets or sets the direction for which a given gengrid widget expands while placing its items.
+ /// Gets or sets the direction for which a given GenGrid widget expands while placing its items.
///
///
/// If true, items are placed in columns from top to bottom and when the space for a column is filled, another one is started on the right, thus expanding the grid horizontally.
/// If false, items are placed in rows from left to right, and when the space for a row is filled, another one is started below, thus expanding the grid vertically.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public bool IsHorizontal
{
get
@@ -278,6 +338,8 @@ namespace ElmSharp
///
/// Gets or sets whether the gengrid items should be highlighted when an item is selected.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public bool IsHighlight
{
get
@@ -291,12 +353,14 @@ namespace ElmSharp
}
///
- /// Sets or gets the value of HorizontalScrollBarVisiblePolicy
+ /// Sets or gets the value of HorizontalScrollBarVisiblePolicy.
///
///
/// ScrollBarVisiblePolicy.Auto means the horizontal scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
@@ -313,12 +377,14 @@ namespace ElmSharp
}
///
- /// Sets or gets the value of VerticalScrollBarVisiblePolicy
+ /// Sets or gets the value of VerticalScrollBarVisiblePolicy.
///
///
/// ScrollBarVisiblePolicy.Auto means the vertical scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
@@ -335,8 +401,10 @@ namespace ElmSharp
}
///
- /// Gets the first item in a given gengrid widget.
+ /// Gets the first item in a given GenGrid widget.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem FirstItem
{
get
@@ -347,8 +415,10 @@ namespace ElmSharp
}
///
- /// Gets the last item in a given gengrid widget.
+ /// Gets the last item in a given GenGrid widget.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem LastItem
{
get
@@ -359,8 +429,10 @@ namespace ElmSharp
}
///
- /// Gets the items count in a given gengrid widget.
+ /// Gets the items count in a given GenGrid widget.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public uint ItemCount
{
get
@@ -370,8 +442,10 @@ namespace ElmSharp
}
///
- /// Gets the selected item in a given gengrid widget.
+ /// Gets the selected item in a given GenGrid widget.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem SelectedItem
{
get
@@ -382,8 +456,10 @@ namespace ElmSharp
}
///
- /// Gets or sets whether a given gengrid widget is or not able have items reordered.
+ /// Gets or sets whether a given GenGrid widget is able to or not able to have items reordered.
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public bool ReorderMode
{
get
@@ -397,85 +473,91 @@ namespace ElmSharp
}
///
- /// Appends a new item to a given gengrid widget. This adds an item to the end of the gengrid.
+ /// Appends a new item to a given GenGrid widget. This adds an item to the end of the gengrid.
///
/// The itemClass defines how to display the data.
/// The item data.
- /// Return a gengrid item that contains data and itemClass.
+ /// Return a gengrid item that contains the data and itemClass.
///
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem Append(GenItemClass itemClass, object data)
{
- GenGridItem item = new GenGridItem(data, itemClass);
- IntPtr handle = Interop.Elementary.elm_gengrid_item_append(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, null, (IntPtr)item.Id);
- item.Handle = handle;
+ GenGridItem item = new GenGridItem(data, itemClass, this);
+ item.Handle = Interop.Elementary.elm_gengrid_item_append(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, null, (IntPtr)item.Id);
AddInternal(item);
return item;
}
///
- /// Prepends a new item to a given gengrid widget. This adds an item to the beginning of the gengrid.
+ /// Prepends a new item to a given GenGrid widget. This adds an item to the beginning of the gengrid.
///
/// The itemClass defines how to display the data.
/// The item data.
- /// Return a gengrid item that contains data and itemClass.
+ /// Return a gengrid item that contains the data and itemClass.
///
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem Prepend(GenItemClass itemClass, object data)
{
- GenGridItem item = new GenGridItem(data, itemClass);
- IntPtr handle = Interop.Elementary.elm_gengrid_item_prepend(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, null, (IntPtr)item.Id);
- item.Handle = handle;
+ GenGridItem item = new GenGridItem(data, itemClass, this);
+ item.Handle = Interop.Elementary.elm_gengrid_item_prepend(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, null, (IntPtr)item.Id);
AddInternal(item);
return item;
}
///
- /// Inserts an item before another in a gengrid widget. This inserts an item before another in the gengrid.
+ /// Inserts an item before another in a GenGrid widget. This inserts an item before another in the gengrid.
///
/// The itemClass defines how to display the data.
/// The item data.
/// The item before which to place this new one.
- /// Return a gengrid item that contains data and itemClass./>
+ /// Return a gengrid item that contains the data and itemClass.
///
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem InsertBefore(GenItemClass itemClass, object data, GenGridItem before)
{
- GenGridItem item = new GenGridItem(data, itemClass);
- IntPtr handle = Interop.Elementary.elm_gengrid_item_insert_before(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, before, null, (IntPtr)item.Id);
- item.Handle = handle;
+ GenGridItem item = new GenGridItem(data, itemClass, this);
+ item.Handle = Interop.Elementary.elm_gengrid_item_insert_before(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, before, null, (IntPtr)item.Id);
AddInternal(item);
return item;
}
///
- /// Inserts an item before another in a gengrid widget. This inserts an item after another in the gengrid.
+ /// Inserts an item after another in a GenGrid widget. This inserts an item after another in the gengrid.
///
/// The itemClass defines how to display the data.
/// The item data.
/// The item after which to place this new one.
- /// Return a gengrid item that contains data and itemClass.
+ /// Return a gengrid item that contains the data and itemClass.
///
///
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem InsertAfter(GenItemClass itemClass, object data, GenGridItem after)
{
- GenGridItem item = new GenGridItem(data, itemClass);
- IntPtr handle = Interop.Elementary.elm_gengrid_item_insert_after(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, after, null, (IntPtr)item.Id);
- item.Handle = handle;
+ GenGridItem item = new GenGridItem(data, itemClass, this);
+ item.Handle = Interop.Elementary.elm_gengrid_item_insert_after(RealHandle, itemClass.UnmanagedPtr, (IntPtr)item.Id, after, null, (IntPtr)item.Id);
AddInternal(item);
return item;
}
///
- /// Insert an item in a gengrid widget using a user-defined sort function.
+ /// Inserts an item in a GenGrid widget using a user-defined sort function.
///
/// The itemClass defines how to display the data.
/// The item data.
- /// User defined comparison function that defines the sort order based on gengrid item and its data.
- /// Return a gengrid item that contains data and itemClass.
+ /// User defined comparison function that defines the sort order based on the gengrid item and its data.
+ /// Return a gengrid item that contains the data and itemClass.
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
public GenGridItem InsertSorted(GenItemClass itemClass, object data, Comparison