summaryrefslogtreecommitdiff
path: root/doc/widgets
diff options
context:
space:
mode:
authorSumanth Krishna Mannam <sumanth.m@samsung.com>2012-03-05 11:07:05 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-03-05 11:07:05 +0000
commit3448bf2eb2d24b2e3177fe3d05ec24e17d4ddb18 (patch)
tree305da2c06586814ce88120f054946b67cfd879a6 /doc/widgets
parente6eb4e1008e29da7843aff641b38f59c37080cab (diff)
From: Sumanth Krishna Mannam <sumanth.m@samsung.com>
Subject: [E-devel] [Patch] Elementary : New widget Elm_datetime patch Attached to the mail is the patch for new elementary widget elm_datetime. Refer to the below EFL post history for more details. The datetime widget provides an option to display Date & time based on current locale format and the user can edit them through dynamic Modules. Dynamic modules can be based on 1. Content Popup/diskselector based list 2. Elm_entry with ISE based input 3. Elm_Spinner based etc. Refer to the Screenshots: <1.ctxpopup_diskselector_UI> <2.entry_ise_UI> <3.spinner_selection_UI> Can someone review and push this patch to EFL repository? Change description: New widget Elm_datetime is added. Datetime widget displays the Date &Time fields and provides a customizable way to edit them. The widget is implemented in a modular fashion for date/time field inputs. Ctxpopup based input is proposed as the default selection module. Localization support based on Libc is also supported. Sign-Off By: Sumanth M.V.K <sumanth.m@samsug.com> SVN revision: 68696
Diffstat (limited to 'doc/widgets')
-rw-r--r--doc/widgets/Makefile.am6
-rw-r--r--doc/widgets/widget_preview_datetime1.c16
-rw-r--r--doc/widgets/widget_preview_datetime2.c19
-rw-r--r--doc/widgets/widget_preview_datetime3.c19
4 files changed, 60 insertions, 0 deletions
diff --git a/doc/widgets/Makefile.am b/doc/widgets/Makefile.am
index 0bbb0b748..d9ec6e082 100644
--- a/doc/widgets/Makefile.am
+++ b/doc/widgets/Makefile.am
@@ -32,6 +32,9 @@ widget_preview_spinner \
32widget_preview_bubble1 \ 32widget_preview_bubble1 \
33widget_preview_bubble2 \ 33widget_preview_bubble2 \
34widget_preview_bubble3 \ 34widget_preview_bubble3 \
35widget_preview_datetime1 \
36widget_preview_datetime2 \
37widget_preview_datetime3 \
35widget_preview_fileselector_button1 \ 38widget_preview_fileselector_button1 \
36widget_preview_fileselector_button2 \ 39widget_preview_fileselector_button2 \
37widget_preview_fileselector_button3 \ 40widget_preview_fileselector_button3 \
@@ -122,6 +125,9 @@ EXTRA_DIST = \
122 widget_preview_mapbuf.c \ 125 widget_preview_mapbuf.c \
123 widget_preview_map.c \ 126 widget_preview_map.c \
124 widget_preview_ctxpopup.c \ 127 widget_preview_ctxpopup.c \
128 widget_preview_datetime1.c \
129 widget_preview_datetime2.c \
130 widget_preview_datetime3.c \
125 widget_preview_diskselector.c \ 131 widget_preview_diskselector.c \
126 widget_preview_entry1.c \ 132 widget_preview_entry1.c \
127 widget_preview_entry2.c \ 133 widget_preview_entry2.c \
diff --git a/doc/widgets/widget_preview_datetime1.c b/doc/widgets/widget_preview_datetime1.c
new file mode 100644
index 000000000..359753f07
--- /dev/null
+++ b/doc/widgets/widget_preview_datetime1.c
@@ -0,0 +1,16 @@
1#include "widget_preview_tmpl_head.c"
2
3Evas_Object *bx = elm_box_add(win);
4evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
5evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
6elm_win_resize_object_add(win, bx);
7evas_object_show(bx);
8evas_object_size_hint_min_set(bx, 360, 60);
9
10Evas_Object *datetime = elm_datetime_add(win);
11evas_object_size_hint_weight_set(datetime, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
12evas_object_size_hint_align_set(datetime, EVAS_HINT_FILL, EVAS_HINT_FILL);
13elm_box_pack_end(bx, datetime);
14evas_object_show(datetime);
15
16#include "widget_preview_tmpl_foot.c"
diff --git a/doc/widgets/widget_preview_datetime2.c b/doc/widgets/widget_preview_datetime2.c
new file mode 100644
index 000000000..59e9aa062
--- /dev/null
+++ b/doc/widgets/widget_preview_datetime2.c
@@ -0,0 +1,19 @@
1#include "widget_preview_tmpl_head.c"
2
3Evas_Object *bx = elm_box_add(win);
4evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
5evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
6elm_win_resize_object_add(win, bx);
7evas_object_show(bx);
8evas_object_size_hint_min_set(bx, 200, 60);
9
10Evas_Object *datetime = elm_datetime_add(win);
11evas_object_size_hint_weight_set(datetime, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
12evas_object_size_hint_align_set(datetime, EVAS_HINT_FILL, EVAS_HINT_FILL);
13elm_datetime_field_visible_set(datetime, ELM_DATETIME_HOUR, EINA_FALSE);
14elm_datetime_field_visible_set(datetime, ELM_DATETIME_MINUTE, EINA_FALSE);
15elm_datetime_field_visible_set(datetime, ELM_DATETIME_AMPM, EINA_FALSE);
16elm_box_pack_end(bx, datetime);
17evas_object_show(datetime);
18
19#include "widget_preview_tmpl_foot.c"
diff --git a/doc/widgets/widget_preview_datetime3.c b/doc/widgets/widget_preview_datetime3.c
new file mode 100644
index 000000000..bf51f7f4d
--- /dev/null
+++ b/doc/widgets/widget_preview_datetime3.c
@@ -0,0 +1,19 @@
1#include "widget_preview_tmpl_head.c"
2
3Evas_Object *bx = elm_box_add(win);
4evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
5evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
6elm_win_resize_object_add(win, bx);
7evas_object_show(bx);
8evas_object_size_hint_min_set(bx, 200, 60);
9
10Evas_Object *datetime = elm_datetime_add(win);
11evas_object_size_hint_weight_set(datetime, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
12evas_object_size_hint_align_set(datetime, EVAS_HINT_FILL, EVAS_HINT_FILL);
13elm_datetime_field_visible_set(datetime, ELM_DATETIME_YEAR, EINA_FALSE);
14elm_datetime_field_visible_set(datetime, ELM_DATETIME_MONTH, EINA_FALSE);
15elm_datetime_field_visible_set(datetime, ELM_DATETIME_DATE, EINA_FALSE);
16elm_box_pack_end(bx, datetime);
17evas_object_show(datetime);
18
19#include "widget_preview_tmpl_foot.c"