summaryrefslogtreecommitdiff
path: root/src/examples/elementary/efl_ui_unit_converter.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-03 01:02:11 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-03 18:04:41 -0300
commitfe7106d4600edb368a51a7c683d5fd35a4e211fe (patch)
tree29ae683965c0e62d1c9560298ade51e38d3f8837 /src/examples/elementary/efl_ui_unit_converter.cs
parent4636d6e0eb1f4a66b202b6cf6df793ec40c135a6 (diff)
efl_mono: Update tests and examples after rename
Summary: Separated from the generator and libs for easier review Depends on D6050 Reviewers: felipealmeida, vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D6051
Diffstat (limited to 'src/examples/elementary/efl_ui_unit_converter.cs')
-rw-r--r--src/examples/elementary/efl_ui_unit_converter.cs42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/examples/elementary/efl_ui_unit_converter.cs b/src/examples/elementary/efl_ui_unit_converter.cs
index d8c5691865..85fd0213e8 100644
--- a/src/examples/elementary/efl_ui_unit_converter.cs
+++ b/src/examples/elementary/efl_ui_unit_converter.cs
@@ -16,14 +16,14 @@ public class Example
16 16
17 private static void ShowErrorPopup(efl.ui.Win win, string message) 17 private static void ShowErrorPopup(efl.ui.Win win, string message)
18 { 18 {
19 efl.ui.Popup_Alert popup = new efl.ui.Popup_AlertConcrete(win); 19 efl.ui.IPopup_Alert popup = new efl.ui.Popup_Alert(win);
20 efl.ui.Text popup_text = new efl.ui.TextConcrete(popup); 20 efl.ui.Text popup_text = new efl.ui.Text(popup);
21 popup_text.SetText($"Error: {message}"); 21 popup_text.SetText($"Error: {message}");
22 popup.SetContent(popup_text); 22 popup.SetContent(popup_text);
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.ButtonClickedEvt += (object sender, efl.ui.Popup_AlertConcrete.ButtonClickedEvt_Args e) => { 26 popup.ButtonClickedEvt += (object sender, efl.ui.Popup_Alert.ButtonClickedEvt_Args e) => {
27 popup.SetParent(null); 27 popup.SetParent(null);
28 popup.Del(); 28 popup.Del();
29 }; 29 };
@@ -41,63 +41,63 @@ public class Example
41 41
42 efl.All.Init(efl.Components.Ui); 42 efl.All.Init(efl.Components.Ui);
43 43
44 efl.ui.Win win = new efl.ui.WinConcrete(null); 44 efl.ui.Win win = new efl.ui.Win(null);
45 win.SetText("C# Unit Converter"); 45 win.SetText("C# Unit Converter");
46 win.SetAutohide(true); 46 win.SetAutohide(true);
47 47
48 efl.ui.Box_Flow box = new efl.ui.Box_FlowConcrete(win); 48 efl.ui.Box_Flow box = new efl.ui.Box_Flow(win);
49 box.SetDirection(efl.ui.Dir.Horizontal); 49 box.SetDirection(efl.ui.Dir.Horizontal);
50 50
51 efl.ui.Box_Flow miles_box = new efl.ui.Box_FlowConcrete(box); 51 efl.ui.Box_Flow miles_box = new efl.ui.Box_Flow(box);
52 miles_box.SetDirection(efl.ui.Dir.Down); 52 miles_box.SetDirection(efl.ui.Dir.Down);
53 53
54 box.Pack(miles_box); 54 box.DoPack(miles_box);
55 55
56 efl.ui.Text miles_label = new efl.ui.TextConcrete(miles_box); 56 efl.ui.Text miles_label = new efl.ui.Text(miles_box);
57 miles_label.SetText("Miles:"); 57 miles_label.SetText("Miles:");
58 miles_label.SetSize(size); 58 miles_label.SetSize(size);
59 miles_label.SetVisible(true); 59 miles_label.SetVisible(true);
60 60
61 efl.ui.Text_Editable miles_input = new efl.ui.Text_EditableConcrete(miles_box); 61 efl.ui.Text_Editable miles_input = new efl.ui.Text_Editable(miles_box);
62 miles_input.SetText(""); 62 miles_input.SetText("");
63 miles_input.SetScrollable(true); 63 miles_input.SetScrollable(true);
64 miles_input.SetSize(size); 64 miles_input.SetSize(size);
65 miles_input.SetVisible(true); 65 miles_input.SetVisible(true);
66 66
67 efl.ui.Button miles_button = new efl.ui.ButtonConcrete(miles_box); 67 efl.ui.IButton miles_button = new efl.ui.Button(miles_box);
68 miles_button.SetText("To Km"); 68 miles_button.SetText("To Km");
69 miles_button.SetSize(size); 69 miles_button.SetSize(size);
70 miles_button.SetVisible(true); 70 miles_button.SetVisible(true);
71 71
72 miles_box.Pack(miles_label); 72 miles_box.DoPack(miles_label);
73 miles_box.Pack(miles_input); 73 miles_box.DoPack(miles_input);
74 miles_box.Pack(miles_button); 74 miles_box.DoPack(miles_button);
75 75
76 76
77 efl.ui.Box_Flow kms_box = new efl.ui.Box_FlowConcrete(box); 77 efl.ui.Box_Flow kms_box = new efl.ui.Box_Flow(box);
78 kms_box.SetDirection(efl.ui.Dir.Down); 78 kms_box.SetDirection(efl.ui.Dir.Down);
79 79
80 box.Pack(kms_box); 80 box.DoPack(kms_box);
81 81
82 efl.ui.Text kms_label = new efl.ui.TextConcrete(kms_box); 82 efl.ui.Text kms_label = new efl.ui.Text(kms_box);
83 kms_label.SetText("Kilometers:"); 83 kms_label.SetText("Kilometers:");
84 kms_label.SetSize(size); 84 kms_label.SetSize(size);
85 kms_label.SetVisible(true); 85 kms_label.SetVisible(true);
86 86
87 efl.ui.Text_Editable kms_input = new efl.ui.Text_EditableConcrete(kms_box); 87 efl.ui.Text_Editable kms_input = new efl.ui.Text_Editable(kms_box);
88 kms_input.SetText(""); 88 kms_input.SetText("");
89 kms_input.SetScrollable(true); 89 kms_input.SetScrollable(true);
90 kms_input.SetSize(size); 90 kms_input.SetSize(size);
91 kms_input.SetVisible(true); 91 kms_input.SetVisible(true);
92 92
93 efl.ui.Button kms_button = new efl.ui.ButtonConcrete(kms_box); 93 efl.ui.IButton kms_button = new efl.ui.Button(kms_box);
94 kms_button.SetText("To Miles"); 94 kms_button.SetText("To Miles");
95 kms_button.SetSize(size); 95 kms_button.SetSize(size);
96 kms_button.SetVisible(true); 96 kms_button.SetVisible(true);
97 97
98 kms_box.Pack(kms_label); 98 kms_box.DoPack(kms_label);
99 kms_box.Pack(kms_input); 99 kms_box.DoPack(kms_input);
100 kms_box.Pack(kms_button); 100 kms_box.DoPack(kms_button);
101 101
102 kms_button.ClickedEvt += (object sender, EventArgs e) => { 102 kms_button.ClickedEvt += (object sender, EventArgs e) => {
103 try 103 try