From de32bd643e7b878b60726f4bceeea476445bceba Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 2 Jun 2015 16:48:19 +0100 Subject: [PATCH] Revert "Update elm_code widget .eo doc for EFL master" This reverts commit 398e8ad2a06ef3eacac7be7518c1fe5b172a2341. --- elm_code/src/lib/widget/elm_code_widget.eo | 34 ++++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/elm_code/src/lib/widget/elm_code_widget.eo b/elm_code/src/lib/widget/elm_code_widget.eo index fd1350e5..041450bd 100644 --- a/elm_code/src/lib/widget/elm_code_widget.eo +++ b/elm_code/src/lib/widget/elm_code_widget.eo @@ -1,8 +1,8 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) { eo_prefix: elm_code_widget; - methods { - @property code { + properties { + code { set { /*@ Set the underlying code object that this widget renders. @@ -21,7 +21,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) Elm_Code *code; /*@ Our underlying Elm_Code object */ } } - @property font { + font { set { /*@ Set the font that this widget uses, the font should be a monospaced scalable font. @@ -41,7 +41,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) Evas_Font_Size font_size; /*@ The font size of the widgget */ } } - @property gravity { + gravity { set { /*@ Set how this widget's scroller should respond to new lines being added. @@ -62,7 +62,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) double y; /*@ The vertical gravity of the widget's scroller - valid values are 0.0 and 1.0 */ } } - @property policy { + policy { set { /*@ Set the policy for scrollbar visibility. @@ -76,11 +76,11 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) @ingroup Layout */ } values { - policy_h: Elm_Scroller_Policy; /*@ The horizontal scrollbar visibility policy */ - policy_v: Elm_Scroller_Policy; /*@ The vertical scrollbar visibility policy */ + Elm_Scroller_Policy policy_h; /*@ The horizontal scrollbar visibility policy */ + Elm_Scroller_Policy policy_v; /*@ The vertical scrollbar visibility policy */ } } - @property tabstop { + tabstop { set { /*@ Set the width of a tab stop, used purely for visual layout of tab characters. @@ -100,7 +100,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) uint tabstop; /*@ Maximum width of a tab character */ } } - @property editable { + editable { set { /*@ Set whether this widget allows editing @@ -126,7 +126,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) Eina_Bool editable; /*@ The editable state of the widget */ } } - @property line_numbers { + line_numbers { set { /*@ Set whether line numbers should be displayed in the left gutter. @@ -146,7 +146,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) Eina_Bool line_numbers; /*@ Whether or not line numbers (or their placeholder) should be shown */ } } - @property line_width_marker { + line_width_marker { set { /*@ Set where the line width market should be shown. @@ -166,7 +166,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) uint line_width_marker; /*@ Where to display a line width marker, if at all */ } } - @property show_whitespace { + show_whitespace { set { /*@ Set where white space should be shown. @@ -183,7 +183,7 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) Eina_Bool show_whitespace; /*@ Whether or not we show whitespace characters */ } } - @property cursor_position { + cursor_position { set { /*@ Set the current location of the text cursor. @@ -201,6 +201,8 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) uint line; /*@ The vertical position of the cursor - the top row is 1 an */ } } + } + methods { line_refresh { params { Elm_Code_Line *line; /*@ @in The line to refresh. */ @@ -229,9 +231,9 @@ class Elm_Code_Widget (Elm.Layout, Elm_Interface_Atspi_Text) Eo.Base.constructor; Eo.Base.finalize; Evas.Object_Smart.add; - Elm.Widget.event; - Elm.Widget.focus_next_manager_is; - Elm.Widget.focus_direction_manager_is; + Elm_Widget.event; + Elm_Widget.focus_next_manager_is; + Elm_Widget.focus_direction_manager_is; } events { line,clicked;