From 82caf3442d0cac52b94f2afa670c459184f99cb4 Mon Sep 17 00:00:00 2001 From: Jaime Thomas Date: Wed, 17 Sep 2008 13:56:08 +0000 Subject: [PATCH] Bit more work on welcome page --- .../themes/default/groups/welcome_page.edc | 102 ++++++++++++++++++ experimental/ecdb/trunk/src/ecdb_gui.c | 17 ++- 2 files changed, 118 insertions(+), 1 deletion(-) diff --git a/experimental/ecdb/trunk/data/themes/default/groups/welcome_page.edc b/experimental/ecdb/trunk/data/themes/default/groups/welcome_page.edc index 5e29213b..bd9da351 100644 --- a/experimental/ecdb/trunk/data/themes/default/groups/welcome_page.edc +++ b/experimental/ecdb/trunk/data/themes/default/groups/welcome_page.edc @@ -1,4 +1,106 @@ group { name: "ecdb/welcome_page"; min: 640 170; + + parts { + part { + name: "background"; + type: RECT; + + description { + state: "default" 0.0; + color: 0 255 0 255; + + rel1 { + relative: 0.0 0.0; + offset: 0 0; + } + + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + } + } + } + + part { + name: "b1"; + type: SWALLOW; + + description { + state: "default" 0.0; + min: 88 24; + + rel1 { + relative: 0.0 0.0; + offset: 10 10; + } + + rel2 { + relative: 0.5 0.5; + offset: -11 -11; + } + } + } + + part { + name: "b2"; + type: SWALLOW; + + description { + state: "default" 0.0; + min: 88 24; + + rel1 { + relative: 0.5 0.0; + offset: 10 10; + } + + rel2 { + relative: 1.0 0.5; + offset: -11 -11; + } + } + } + + part { + name: "b3"; + type: SWALLOW; + + description { + state: "default" 0.0; + min: 88 24; + + rel1 { + relative: 0.0 0.5; + offset: 10 10; + } + + rel2 { + relative: 0.5 1.0; + offset: -11 -11; + } + } + } + + part { + name: "b4"; + type: SWALLOW; + + description { + state: "default" 0.0; + min: 88 24; + + rel1 { + relative: 0.5 0.5; + offset: 10 10; + } + + rel2 { + relative: 1.0 1.0; + offset: -11 -11; + } + } + } + } } diff --git a/experimental/ecdb/trunk/src/ecdb_gui.c b/experimental/ecdb/trunk/src/ecdb_gui.c index a01a223e..13526da9 100644 --- a/experimental/ecdb/trunk/src/ecdb_gui.c +++ b/experimental/ecdb/trunk/src/ecdb_gui.c @@ -208,7 +208,22 @@ ecdb_create_main_gui(void) _cb_filelist_key_down, gui); evas_object_show(swallow); - /* Set up the paned stuff necessary */ + // Set up the welcome page + Evas_Object *welcome_page, *buttons; + + welcome_page = edje_object_add(ecore_evas_get(em->main_win_ee)); + evas_object_name_set(welcome_page, "welcome_page"); + // XXX Don't hardcode this + edje_object_file_set(welcome_page, PACKAGE_DATA_DIR + "/themes/default.edj", "ecdb/welcome_page"); + edje_object_part_swallow(gui, "action_area", welcome_page); + edje_object_part_geometry_get(gui, "active_area", &x, &y, &w, &h); + evas_object_move(welcome_page, x, y); + evas_object_resize(welcome_page, w, h); + evas_object_show(welcome_page); + + /* Buttons next */ + return TRUE; }