* Add external property "play length" to Video widget and fix the test accordingly

also fix ChangeLog whitespacing: every news need a single tab


SVN revision: 76557
This commit is contained in:
Davide Andreoli 2012-09-12 20:30:17 +00:00
parent e77bd359ad
commit d9c1ca2207
3 changed files with 46 additions and 26 deletions

View File

@ -420,8 +420,8 @@
* Popup widget is now an elm layout. * Popup widget is now an elm layout.
* Panel widget is now an elm layout. * Panel widget is now an elm layout.
* All internal widget hooks (and related macros) were removed, due * All internal widget hooks (and related macros) were removed, due
to deprecation. Thus, people using that (unstable) API will have to deprecation. Thus, people using that (unstable) API will have
to adapt themselves. to adapt themselves.
2012-08-30 Shilpa Onkar Singh 2012-08-30 Shilpa Onkar Singh
@ -433,47 +433,51 @@
2012-09-03 Rajeev Ranjan 2012-09-03 Rajeev Ranjan
* Fix min/max limit setting to respect field boundaires EXCEPT * Fix min/max limit setting to respect field boundaires EXCEPT
for years which have no boundaries with for years which have no boundaries with
elm_datetime_field_limit_set() elm_datetime_field_limit_set()
2012-09-03 Bluezery 2012-09-03 Bluezery
* Fix re-order animation when it doesn't end correctly. * Fix re-order animation when it doesn't end correctly.
* Improve elm map module loading to onlt init the module needed * Improve elm map module loading to onlt init the module needed
when searching and not all modules. when searching and not all modules.
2012-09-03 Shinwoo Kim (kimcinoo) 2012-09-03 Shinwoo Kim (kimcinoo)
* Add in more access subsystem features like activation cb. * Add in more access subsystem features like activation cb.
* Fix popup to apply the same style to the notify sub-widget. * Fix popup to apply the same style to the notify sub-widget.
2012-09-04 Jihoon Kim (jihoon) 2012-09-04 Jihoon Kim (jihoon)
* Add ELM_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN. * Add ELM_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN.
2012-09-11 ChunEon Park (Hermet) 2012-09-11 ChunEon Park (Hermet)
* Even if the top item is inserted into the naviframe. Any transition * Even if the top item is inserted into the naviframe. Any transition
wouldn't be launched. wouldn't be launched.
2012-09-12 Jaehwan Kim 2012-09-12 Jaehwan Kim
* When the number of item is changed, the toolbar emits the signal * When the number of item is changed, the toolbar emits the signal
to theme. The theme can be changed something according the number to theme. The theme can be changed something according the number
of item. of item.
2012-09-12 Shinwoo Kim (kimcinoo) 2012-09-12 Shinwoo Kim (kimcinoo)
* Add access features to calendar. * Add access features to calendar.
* Add icon show/hide handling to diskselector ala button etc. * Add icon show/hide handling to diskselector ala button etc.
2012-09-12 Thiep Ha 2012-09-12 Thiep Ha
* Fix ctxpopup direction if -1 is uses as priority. * Fix ctxpopup direction if -1 is uses as priority.
2012-09-15 Jiyoun Park (jypark) 2012-09-12 Jiyoun Park (jypark)
* Add image deleted signal into plug. it help user notice socket service * Add image deleted signal into plug. it help user notice socket service
fail and they can retry service connection. fail and they can retry service connection.
* Add test code deal with this signal. * Add test code deal with this signal.
2012-09-12 Davide Andreoli (davemds)
* Add external property "play length" to Video widget, read-only.

View File

@ -924,6 +924,7 @@ embryo script and from C code.";
params { params {
string: "label" "Volume"; string: "label" "Volume";
string: "indicator format" "%.3f"; string: "indicator format" "%.3f";
bool: "disabled" 1;
} }
} }
} }
@ -940,7 +941,7 @@ embryo script and from C code.";
} }
params { params {
string: "label" "Position"; string: "label" "Position";
string: "indicator format" "%.3f"; string: "indicator format" "%.1f sec";
bool: "disabled" 1; bool: "disabled" 1;
} }
} }
@ -987,10 +988,10 @@ embryo script and from C code.";
signal: "changed"; signal: "changed";
source: "ext_slider2"; source: "ext_slider2";
script { script {
// here we need to get the lenght of the video from external new Float:len = external_param_get_float(PART:"ext_video1", "play length");
// to calc the play position... new Float:val = external_param_get_float(PART:"ext_slider2", "value");
new Float:myval = external_param_get_float(PART:"ext_slider2", "value"); external_param_set_float(PART:"ext_slider2", "max", len);
external_param_set_float(PART:"ext_video1", "play position", myval*100); external_param_set_float(PART:"ext_video1", "play position", val);
} }
} }
program { name: "file_chosen"; program { name: "file_chosen";
@ -1000,6 +1001,8 @@ embryo script and from C code.";
after: "enable_bt1"; after: "enable_bt1";
after: "enable_bt2"; after: "enable_bt2";
after: "enable_bt3"; after: "enable_bt3";
after: "enable_sl1";
after: "enable_sl2";
after: "update_volume_slider"; after: "update_volume_slider";
} }
program { name: "enable_bt1"; program { name: "enable_bt1";
@ -1011,6 +1014,12 @@ embryo script and from C code.";
program { name: "enable_bt3"; program { name: "enable_bt3";
action: PARAM_SET "ext_button3" "disabled" 0; action: PARAM_SET "ext_button3" "disabled" 0;
} }
program { name: "enable_sl1";
action: PARAM_SET "ext_slider1" "disabled" 0;
}
program { name: "enable_sl2";
action: PARAM_SET "ext_slider2" "disabled" 0;
}
program { name: "update_volume_slider"; program { name: "update_volume_slider";
action: PARAM_COPY "ext_video1" "audio level" "ext_slider1" "value"; action: PARAM_COPY "ext_video1" "audio level" "ext_slider1" "value";
} }

View File

@ -163,6 +163,12 @@ external_video_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_Ext
param->d = elm_video_play_position_get(obj); param->d = elm_video_play_position_get(obj);
return EINA_TRUE; return EINA_TRUE;
} }
else if ((param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
&& (!strcmp(param->name, "play length")))
{
param->d = elm_video_play_length_get(obj);
return EINA_TRUE;
}
else if ((param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) else if ((param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
&& (!strcmp(param->name, "remember position"))) && (!strcmp(param->name, "remember position")))
{ {
@ -253,6 +259,7 @@ static Edje_External_Param_Info external_video_params[] = {
EDJE_EXTERNAL_PARAM_INFO_BOOL("audio mute"), EDJE_EXTERNAL_PARAM_INFO_BOOL("audio mute"),
EDJE_EXTERNAL_PARAM_INFO_DOUBLE("audio level"), EDJE_EXTERNAL_PARAM_INFO_DOUBLE("audio level"),
EDJE_EXTERNAL_PARAM_INFO_DOUBLE("play position"), EDJE_EXTERNAL_PARAM_INFO_DOUBLE("play position"),
EDJE_EXTERNAL_PARAM_INFO_DOUBLE("play length"),
EDJE_EXTERNAL_PARAM_INFO_BOOL("remember position"), EDJE_EXTERNAL_PARAM_INFO_BOOL("remember position"),
EDJE_EXTERNAL_PARAM_INFO_SENTINEL EDJE_EXTERNAL_PARAM_INFO_SENTINEL
}; };