Make scale work a little better...

This commit is contained in:
Jaime Thomas 2009-01-16 04:07:47 +00:00
parent a4ef973a31
commit 465756bb63
12 changed files with 51 additions and 6 deletions

View File

@ -58,6 +58,7 @@ group {
name: "ecdb/burn_data/return"; name: "ecdb/burn_data/return";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -80,6 +81,7 @@ group {
name: "ecdb/burn_data/begin"; name: "ecdb/burn_data/begin";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -102,6 +104,7 @@ group {
name: "ecdb/burn_data/drive"; name: "ecdb/burn_data/drive";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -124,6 +127,7 @@ group {
name: "ecdb/burn_data/speed"; name: "ecdb/burn_data/speed";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -146,6 +150,7 @@ group {
name: "ecdb/burn_data/settings"; name: "ecdb/burn_data/settings";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -169,6 +174,7 @@ group {
name: "ecdb/burn_data/filelist"; name: "ecdb/burn_data/filelist";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -191,6 +197,7 @@ group {
name: "ecdb/burn_data/capacity"; name: "ecdb/burn_data/capacity";
type: SWALLOW; type: SWALLOW;
repeat_events: 0; repeat_events: 0;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -314,6 +321,7 @@ group {
name: "disabled_hack"; name: "disabled_hack";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -79,6 +79,7 @@ group {
name: "ecdb/burn_image/return"; name: "ecdb/burn_image/return";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -101,6 +102,7 @@ group {
name: "ecdb/burn_image/begin"; name: "ecdb/burn_image/begin";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -123,6 +125,7 @@ group {
name: "ecdb/burn_image/file"; name: "ecdb/burn_image/file";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -145,6 +148,7 @@ group {
name: "ecdb/burn_image/drive"; name: "ecdb/burn_image/drive";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -167,6 +171,7 @@ group {
name: "ecdb/burn_image/speed"; name: "ecdb/burn_image/speed";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -291,6 +296,7 @@ group {
name: "disabled_hack"; name: "disabled_hack";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -31,6 +31,7 @@ group {
name: "button_clip"; name: "button_clip";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -54,6 +55,7 @@ group {
name: "focus_clip"; name: "focus_clip";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -209,6 +211,7 @@ group {
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
clip_to: "button_clip"; clip_to: "button_clip";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -18,6 +18,7 @@ group {
name: "confine"; name: "confine";
mouse_events: 0; mouse_events: 0;
type: RECT; type: RECT;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -104,6 +105,7 @@ group {
name: "draggie"; name: "draggie";
type: RECT; type: RECT;
clip_to: "confine"; clip_to: "confine";
scale: 1;
dragable { dragable {
confine: "confine"; confine: "confine";

View File

@ -59,6 +59,7 @@ group {
part { part {
name: "check_shadow"; name: "check_shadow";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -10,7 +10,6 @@ group {
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 0 0 0 0; color: 0 0 0 0;
min: 20 20;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
@ -85,6 +84,7 @@ group {
name: "focus_clip"; name: "focus_clip";
type: RECT; type: RECT;
mouse_events: 0; mouse_events: 0;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -250,6 +250,7 @@ group {
part { part {
name: "ecdb.header.swallow"; name: "ecdb.header.swallow";
type: SWALLOW; type: SWALLOW;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -388,6 +389,7 @@ group {
part { part {
name: "ecdb.box"; name: "ecdb.box";
type: BOX; type: BOX;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -10,7 +10,6 @@ group {
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 0 0 0 0; color: 0 0 0 0;
min: 20 20;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;

View File

@ -74,6 +74,7 @@ group {
name: "ecdb/erase/return"; name: "ecdb/erase/return";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -96,6 +97,7 @@ group {
name: "ecdb/erase/begin"; name: "ecdb/erase/begin";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -118,6 +120,7 @@ group {
name: "ecdb/erase/speed"; name: "ecdb/erase/speed";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -140,6 +143,7 @@ group {
name: "ecdb/erase/drive"; name: "ecdb/erase/drive";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -264,6 +268,7 @@ group {
name: "disabled_hack"; name: "disabled_hack";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -1,16 +1,17 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */ /* vim: set sw=3 ts=3 sts=3 expandtab: */
group { group {
name: "ecdb/welcome_page"; name: "ecdb/welcome_page";
min: 640 170;
parts { parts {
part { part {
name: "bg"; name: "bg";
type: RECT; type: RECT;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 0 0 0 0; color: 0 0 0 0;
min: 640 170;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
@ -58,6 +59,7 @@ group {
name: "ecdb/burn_data"; name: "ecdb/burn_data";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -80,6 +82,7 @@ group {
name: "ecdb/burn_audio"; name: "ecdb/burn_audio";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -102,6 +105,7 @@ group {
name: "ecdb/burn_image"; name: "ecdb/burn_image";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -124,6 +128,7 @@ group {
name: "ecdb/erase"; name: "ecdb/erase";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -7,6 +7,7 @@ group {
part { part {
name: "background"; name: "background";
mouse_events: 0; mouse_events: 0;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -32,6 +33,7 @@ group {
part { part {
name: "paned_container"; name: "paned_container";
type: RECT; type: RECT;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -70,6 +72,7 @@ group {
part { part {
name: "paned_draggie"; name: "paned_draggie";
type: RECT; type: RECT;
scale: 1;
dragable { dragable {
confine: "paned_container"; confine: "paned_container";
@ -102,6 +105,7 @@ group {
name: "paned_image"; name: "paned_image";
repeat_events: 1; repeat_events: 1;
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -130,6 +134,7 @@ group {
part { part {
name: "filelist_clip"; name: "filelist_clip";
type: RECT; type: RECT;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -156,6 +161,7 @@ group {
name: "filelist_container"; name: "filelist_container";
type: IMAGE; type: IMAGE;
clip_to: "filelist_clip"; clip_to: "filelist_clip";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -187,6 +193,7 @@ group {
name: "filelist"; name: "filelist";
type: SWALLOW; type: SWALLOW;
clip_to: "filelist_clip"; clip_to: "filelist_clip";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -209,6 +216,7 @@ group {
clip_to: "filelist_clip"; clip_to: "filelist_clip";
mouse_events: 1; mouse_events: 1;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -242,6 +250,7 @@ group {
clip_to: "filelist_clip"; clip_to: "filelist_clip";
mouse_events: 1; mouse_events: 1;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -278,6 +287,7 @@ group {
type: SWALLOW; type: SWALLOW;
mouse_events: 1; mouse_events: 1;
repeat_events: 1; repeat_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -183,6 +183,7 @@ ecdb_create_main_gui(void)
Evas_Object *gui; Evas_Object *gui;
Evas_Coord mw, mh; Evas_Coord mw, mh;
const char *scale; const char *scale;
float scalef;
/* This would be wonderful, but its a bit glitchy /* This would be wonderful, but its a bit glitchy
em->main_win_ee = ecore_evas_gl_x11_new(0, 0, 0, 0, 255, 255); em->main_win_ee = ecore_evas_gl_x11_new(0, 0, 0, 0, 255, 255);
@ -216,14 +217,16 @@ ecdb_create_main_gui(void)
/* Make this configurable at some point */ /* Make this configurable at some point */
ecdb_set_main_theme(NULL); ecdb_set_main_theme(NULL);
scale = getenv("ECDB_SCALE"); scale = getenv("ECDB_SCALE");
if (scale) scalef = (scale) ? atof(scale) : 1.0;
edje_scale_set(atof(scale)); edje_scale_set(scalef);
gui = edje_object_add(ecore_evas_get(em->main_win_ee)); gui = edje_object_add(ecore_evas_get(em->main_win_ee));
edje_object_file_set(gui, em->theme_path, "ecdb/window"); edje_object_file_set(gui, em->theme_path, "ecdb/window");
edje_object_size_min_get(gui, &mw, &mh); edje_object_size_min_get(gui, &mw, &mh);
if (mw <= 0) mw = 400; if (mw <= 0) mw = 400;
if (mh <= 0) mh = 300; if (mh <= 0) mh = 300;
mw = (int)((float)mw * scalef);
mh = (int)((float)mh * scalef);
evas_object_resize(gui, mw, mh); evas_object_resize(gui, mw, mh);
ecore_evas_resize(em->main_win_ee, mw, mh); ecore_evas_resize(em->main_win_ee, mw, mh);
ecore_evas_size_min_set(em->main_win_ee, mw, mh); ecore_evas_size_min_set(em->main_win_ee, mw, mh);

View File

@ -889,7 +889,8 @@ ecdb_combo_expand(Evas_Object *c)
min_size = edje_object_data_get(o, "ecdb/combo_item/minh"); min_size = edje_object_data_get(o, "ecdb/combo_item/minh");
if (min_size) if (min_size)
{ {
h2 += atoi(min_size); // FIXME Change this to config val
h2 += (int)(atof(min_size) * edje_scale_get());
} }
else else
{ {