From 49f37de8842ffdb9bf51261b5937d8ebcfe3f9f4 Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Thu, 9 Apr 2015 20:50:15 +0200 Subject: Add preliminary 'function' type Signed-off-by: Olliver Schinagl --- src/eulogium.c | 12 +++++++++++- src/eulogium.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/eulogium.c b/src/eulogium.c index 31819fa..72caff8 100644 --- a/src/eulogium.c +++ b/src/eulogium.c @@ -593,6 +593,9 @@ Evas_Object *eulogium_multi_screen_menu(struct eulogium_data *eulogium, Evas_Obj evas_object_show(box); elm_box_pack_end(_top, box); break; + case FUNC: + /* call function pointer from screen_data.func */ + break; case END: /* fall through */ default: break; @@ -801,12 +804,19 @@ static struct multi_screen screen[] = { }, { .type = MATERIAL, - .text = NULL, + .text = "Choose material", .data = NULL, .prev_button = "Skip Wizzard!", .next_button = "Continue", }, { + .type = FUNC, + .text = "Level bed", + .data = "Bed leveling call", + .prev_button = "Skip Wizzard!", + .next_button = "Continue", + }, + { .type = PROGRESS, .text = "Heating ...", .data = "progress object", diff --git a/src/eulogium.h b/src/eulogium.h index 958504c..66f27d5 100644 --- a/src/eulogium.h +++ b/src/eulogium.h @@ -10,6 +10,7 @@ enum screen_type { NONE, MATERIAL, PROGRESS, + FUNC, END, }; -- cgit v0.12