elm test - progress - add vertical wheel test...
yes. in theory it can exist, so add a test for it. because for flat theme i actually have an idea where vrtical vs horizontal do look different and the theme already procvided both via an alias and code would use them if needed... so... why not?
This commit is contained in:
parent
348a332b32
commit
b6a772cb27
|
@ -12,6 +12,7 @@ typedef struct Progressbar_Data
|
|||
Evas_Object *pb5;
|
||||
Evas_Object *pb6;
|
||||
Evas_Object *pb7;
|
||||
Evas_Object *pb8;
|
||||
Ecore_Timer *timer;
|
||||
Evas_Object *btn_start;
|
||||
Evas_Object *btn_stop;
|
||||
|
@ -49,7 +50,9 @@ my_progressbar_test_start(void *data, Evas_Object *obj EINA_UNUSED, void *event_
|
|||
elm_progressbar_pulse(pd->pb5, EINA_TRUE);
|
||||
fprintf(stderr, "s3 %p\n", pd->pb7);
|
||||
elm_progressbar_pulse(pd->pb7, EINA_TRUE);
|
||||
fprintf(stderr, "s4\n");
|
||||
fprintf(stderr, "s4 %p\n", pd->pb8);
|
||||
elm_progressbar_pulse(pd->pb8, EINA_TRUE);
|
||||
fprintf(stderr, "s5\n");
|
||||
|
||||
elm_object_disabled_set(pd->btn_start, EINA_TRUE);
|
||||
elm_object_disabled_set(pd->btn_stop, EINA_FALSE);
|
||||
|
@ -67,6 +70,7 @@ my_progressbar_test_stop(void *data, Evas_Object *obj EINA_UNUSED, void *event_i
|
|||
elm_progressbar_pulse(pd->pb2, EINA_FALSE);
|
||||
elm_progressbar_pulse(pd->pb5, EINA_FALSE);
|
||||
elm_progressbar_pulse(pd->pb7, EINA_FALSE);
|
||||
elm_progressbar_pulse(pd->pb8, EINA_FALSE);
|
||||
elm_object_disabled_set(pd->btn_start, EINA_FALSE);
|
||||
elm_object_disabled_set(pd->btn_stop, EINA_TRUE);
|
||||
|
||||
|
@ -217,6 +221,17 @@ test_progressbar(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
|
|||
evas_object_show(pb);
|
||||
pd->pb7 = pb;
|
||||
|
||||
pb = elm_progressbar_add(win);
|
||||
elm_progressbar_horizontal_set(pb, EINA_FALSE);
|
||||
elm_object_style_set(pb, "wheel");
|
||||
elm_object_text_set(pb, "Style: wheel vert");
|
||||
elm_progressbar_pulse_set(pb, EINA_TRUE);
|
||||
evas_object_size_hint_weight_set(pb, EVAS_HINT_EXPAND, 0.0);
|
||||
evas_object_size_hint_align_set(pb, EVAS_HINT_FILL, 0.5);
|
||||
elm_box_pack_end(bx, pb);
|
||||
evas_object_show(pb);
|
||||
pd->pb8 = pb;
|
||||
|
||||
bt_bx = elm_box_add(win);
|
||||
elm_box_horizontal_set(bt_bx, EINA_TRUE);
|
||||
evas_object_size_hint_weight_set(bt_bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
|
|
Loading…
Reference in New Issue