summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-16 12:36:51 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-26 10:55:18 -0300
commit5ddc8e4f5061d47c83e213be41e06f4dcd00ac14 (patch)
tree5b89b39faac196528517e0a604f60d91a21fa406 /unsorted
parent989e1b73b8b27f1c5ec973bf5b9d9ff423ca55c5 (diff)
efl_mono: Use PascalCase in events
Summary: To deal with events with the same name as some methods (Del, Invalidate, etc), the suffix Evt was added. Thus, now we use obj.ButtonClickedEvt += callback; Instead of obj.BUTTON_CLICKED += cal The argument classes use the same scheme, being called <Evt name>_Args. Depends on D5991 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5992
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/elementary/efl_ui_slider_mono.cs4
-rw-r--r--unsorted/elementary/efl_ui_unit_converter.cs6
-rw-r--r--unsorted/evas/evas_mono_rectangle.cs2
-rw-r--r--unsorted/evas/evas_mono_text.cs4
4 files changed, 8 insertions, 8 deletions
diff --git a/unsorted/elementary/efl_ui_slider_mono.cs b/unsorted/elementary/efl_ui_slider_mono.cs
index 64c31ab9..6a5c6af1 100644
--- a/unsorted/elementary/efl_ui_slider_mono.cs
+++ b/unsorted/elementary/efl_ui_slider_mono.cs
@@ -10,7 +10,7 @@ public class Example
10 button.SetText(text); 10 button.SetText(text);
11 button.SetSize(new eina.Size2D(w, h)); 11 button.SetSize(new eina.Size2D(w, h));
12 12
13 button.CLICKED += callback; 13 button.ClickedEvt += callback;
14 14
15 return button; 15 return button;
16 } 16 }
@@ -56,7 +56,7 @@ public class Example
56 efl.ui.Slider slider = new efl.ui.SliderConcrete(box); 56 efl.ui.Slider slider = new efl.ui.SliderConcrete(box);
57 slider.SetSize(new eina.Size2D(W, H)); 57 slider.SetSize(new eina.Size2D(W, H));
58 58
59 slider.CHANGED += (object sender, EventArgs e) => { 59 slider.ChangedEvt += (object sender, EventArgs e) => {
60 bar.SetRangeValue(slider.GetRangeValue()); 60 bar.SetRangeValue(slider.GetRangeValue());
61 }; 61 };
62 62
diff --git a/unsorted/elementary/efl_ui_unit_converter.cs b/unsorted/elementary/efl_ui_unit_converter.cs
index 91dd3189..a1505a8b 100644
--- a/unsorted/elementary/efl_ui_unit_converter.cs
+++ b/unsorted/elementary/efl_ui_unit_converter.cs
@@ -23,7 +23,7 @@ public class Example
23 popup.SetVisible(true); 23 popup.SetVisible(true);
24 popup.SetButton(efl.ui.popup_alert.Button.Positive, "Ok"); 24 popup.SetButton(efl.ui.popup_alert.Button.Positive, "Ok");
25 popup.SetSize(new eina.Size2D(150, 30)); 25 popup.SetSize(new eina.Size2D(150, 30));
26 popup.BUTTON_CLICKED += (object sender, efl.ui.BUTTON_CLICKED_Args e) => { 26 popup.ButtonClickedEvt += (object sender, efl.ui.ButtonClickedEvt_Args e) => {
27 popup.SetParent(null); 27 popup.SetParent(null);
28 popup.Del(); 28 popup.Del();
29 }; 29 };
@@ -99,7 +99,7 @@ public class Example
99 kms_box.Pack(kms_input); 99 kms_box.Pack(kms_input);
100 kms_box.Pack(kms_button); 100 kms_box.Pack(kms_button);
101 101
102 kms_button.CLICKED += (object sender, EventArgs e) => { 102 kms_button.ClickedEvt += (object sender, EventArgs e) => {
103 try 103 try
104 { 104 {
105 string text = kms_input.GetText(); 105 string text = kms_input.GetText();
@@ -115,7 +115,7 @@ public class Example
115 } 115 }
116 }; 116 };
117 117
118 miles_button.CLICKED += (object sender, EventArgs e) => { 118 miles_button.ClickedEvt += (object sender, EventArgs e) => {
119 try 119 try
120 { 120 {
121 string text = miles_input.GetText(); 121 string text = miles_input.GetText();
diff --git a/unsorted/evas/evas_mono_rectangle.cs b/unsorted/evas/evas_mono_rectangle.cs
index de686b06..48d45ba2 100644
--- a/unsorted/evas/evas_mono_rectangle.cs
+++ b/unsorted/evas/evas_mono_rectangle.cs
@@ -30,7 +30,7 @@ class TestMain
30 rect.SetSize(size); 30 rect.SetSize(size);
31 rect.SetVisible(true); 31 rect.SetVisible(true);
32 32
33 canvas.KEY_DOWN += (object sender, efl.input.KEY_DOWN_Args e) => { 33 canvas.KeyDownEvt += (object sender, efl.input.KeyDownEvt_Args e) => {
34 color_index = (color_index + 1) % 3; 34 color_index = (color_index + 1) % 3;
35 Console.WriteLine("Key Down"); 35 Console.WriteLine("Key Down");
36 Console.WriteLine("Got key obj at {0}", e.arg.raw_handle.ToString("X")); 36 Console.WriteLine("Got key obj at {0}", e.arg.raw_handle.ToString("X"));
diff --git a/unsorted/evas/evas_mono_text.cs b/unsorted/evas/evas_mono_text.cs
index 071cba21..2c288c28 100644
--- a/unsorted/evas/evas_mono_text.cs
+++ b/unsorted/evas/evas_mono_text.cs
@@ -45,7 +45,7 @@ class TestMain
45 bg.SetVisible(true); 45 bg.SetVisible(true);
46 bg.SetKeyFocus(true); 46 bg.SetKeyFocus(true);
47 47
48 bg.KEY_DOWN += On_KeyDown; 48 bg.KeyDownEvt += On_KeyDown;
49 49
50 text = new evas.TextConcrete(canvas); 50 text = new evas.TextConcrete(canvas);
51 text.SetStyle(evas.Text_Style_Type.OutlineSoftShadow); 51 text.SetStyle(evas.Text_Style_Type.OutlineSoftShadow);
@@ -87,7 +87,7 @@ class TestMain
87 87
88 } 88 }
89 89
90 private void On_KeyDown(object sender, efl.input.KEY_DOWN_Args e) 90 private void On_KeyDown(object sender, efl.input.KeyDownEvt_Args e)
91 { 91 {
92 var key = e.arg.GetKey(); 92 var key = e.arg.GetKey();
93 93