summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-01-14 18:17:10 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-02-09 13:34:37 -0200
commita7c700648a779ea6a2697ff5dc51798a6a9fdded (patch)
treef9f1ebdad9002c26ceb9d26750da3a6ed086d203
parent888103a1465e927fea1bb203ba2628fe9e2ab37f (diff)
elm entry: Move the declaration of Elm_Cnp_Mode to elm_entry.eo
Move the enumeration Elm_Cnp_Mode to elm_entry.eo to make it more accessible for binding generation. Also rename it to Elm.Cnp_Mode.
-rw-r--r--src/lib/elm_entry.eo16
-rw-r--r--src/lib/elm_entry_common.h12
2 files changed, 15 insertions, 13 deletions
diff --git a/src/lib/elm_entry.eo b/src/lib/elm_entry.eo
index 5bdcda212..1609cb3ed 100644
--- a/src/lib/elm_entry.eo
+++ b/src/lib/elm_entry.eo
@@ -96,6 +96,20 @@ enum Elm.Input.Hints
96 @since 1.12]] 96 @since 1.12]]
97} 97}
98 98
99
100enum Elm.Cnp_Mode
101{
102 [[
103 Enum of entry's copy & paste policy.
104
105 See also @Elm.Entry.cnp_mode.set,
106 @Elm.Entry.cnp_mode.get.
107 ]]
108 markup, [[ copy & paste text with markup tag ]]
109 no_image, [[ copy & paste text without item(image) tag ]]
110 plaintext, [[ copy & paste text without markup tag ]]
111}
112
99class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface, 113class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
100 Elm.Interface_Atspi_Text, Elm.Interface_Atspi_Editable_Text, Efl.File, 114 Elm.Interface_Atspi_Text, Elm.Interface_Atspi_Editable_Text, Efl.File,
101 Evas.Selectable_Interface, Evas.Scrollable_Interface) 115 Evas.Selectable_Interface, Evas.Scrollable_Interface)
@@ -172,7 +186,7 @@ class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
172 ]] 186 ]]
173 } 187 }
174 values { 188 values {
175 cnp_mode: Elm_Cnp_Mode; [[One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.]] 189 cnp_mode: Elm.Cnp_Mode; [[One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.]]
176 } 190 }
177 } 191 }
178 @property file_text_format { 192 @property file_text_format {
diff --git a/src/lib/elm_entry_common.h b/src/lib/elm_entry_common.h
index 82bf82bb4..cee23836c 100644
--- a/src/lib/elm_entry_common.h
+++ b/src/lib/elm_entry_common.h
@@ -228,18 +228,6 @@ struct _Elm_Entry_Filter_Accept_Set
228EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text); 228EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text);
229 229
230/** 230/**
231 * Enum of entry's copy & paste policy.
232 *
233 * @see elm_entry_cnp_mode_set()
234 * @see elm_entry_cnp_mode_get()
235 */
236typedef enum {
237 ELM_CNP_MODE_MARKUP, /**< copy & paste text with markup tag */
238 ELM_CNP_MODE_NO_IMAGE, /**< copy & paste text without item(image) tag */
239 ELM_CNP_MODE_PLAINTEXT /**< copy & paste text without markup tag */
240} Elm_Cnp_Mode;
241
242/**
243 * Get the text of the contextual menu item of entry. 231 * Get the text of the contextual menu item of entry.
244 * 232 *
245 * @param item The item to get the label 233 * @param item The item to get the label