ECDB can scale now... Too bad it looks like crap with the current theme.

This commit is contained in:
Jaime Thomas 2009-01-16 03:30:54 +00:00
parent 8c9d88ff62
commit a4ef973a31
11 changed files with 39 additions and 0 deletions

View File

@ -18,6 +18,7 @@ TODO
-> don't load the sources all at one time (lots of memory consumed -- for my entire development tree containing 154256 files, ecdb uses 46mb) -> don't load the sources all at one time (lots of memory consumed -- for my entire development tree containing 154256 files, ecdb uses 46mb)
-> integrate exchange -> integrate exchange
-> instead of always swallowing widgets, allow theme to specify on a widget-by-widget basis if it wants to emit signals from internal parts (so, for example, the settings could be triggered by a small + in the corner, and expand from there) -> instead of always swallowing widgets, allow theme to specify on a widget-by-widget basis if it wants to emit signals from internal parts (so, for example, the settings could be triggered by a small + in the corner, and expand from there)
->able to allow entire gui to be handled by theme... so we only interact with signals (no widgets at all)
DONE DONE
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -189,6 +189,7 @@ group {
name: "progress_outline"; name: "progress_outline";
type: IMAGE; type: IMAGE;
mouse_events: 0; mouse_events: 0;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -216,6 +217,7 @@ group {
name: "progress_text"; name: "progress_text";
type: TEXT; type: TEXT;
effect: SOFT_SHADOW; effect: SOFT_SHADOW;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -255,6 +257,7 @@ group {
name: "progress_percent"; name: "progress_percent";
type: TEXT; type: TEXT;
effect: SOFT_SHADOW; effect: SOFT_SHADOW;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -13,6 +13,7 @@ group {
name: "base"; name: "base";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -81,6 +82,7 @@ group {
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
clip_to: "focus_clip"; clip_to: "focus_clip";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -105,6 +107,7 @@ group {
type: IMAGE; type: IMAGE;
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;
@ -140,6 +143,7 @@ group {
type: IMAGE; type: IMAGE;
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;
@ -172,6 +176,7 @@ group {
type: IMAGE; type: IMAGE;
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;
@ -224,6 +229,7 @@ group {
name: "ecdb.label"; name: "ecdb.label";
type: TEXT; type: TEXT;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -254,6 +260,7 @@ group {
name: "ecdb.swallow.icon"; name: "ecdb.swallow.icon";
type: SWALLOW; type: SWALLOW;
mouse_events: 1; mouse_events: 1;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -39,6 +39,7 @@ group {
part { part {
name: "bg"; name: "bg";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -69,6 +70,7 @@ group {
name: "progress_left"; name: "progress_left";
type: IMAGE; type: IMAGE;
clip_to: "confine"; clip_to: "confine";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -130,6 +132,7 @@ group {
type: IMAGE; type: IMAGE;
mouse_events: 0; mouse_events: 0;
clip_to: "confine"; clip_to: "confine";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -164,6 +167,7 @@ group {
part { part {
name: "progress_right"; name: "progress_right";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -25,6 +25,7 @@ group {
part { part {
name: "check_base"; name: "check_base";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -105,6 +106,7 @@ group {
part { part {
name: "check"; name: "check";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -153,6 +155,7 @@ group {
part { part {
name: "ecdb.label"; name: "ecdb.label";
type: TEXT; type: TEXT;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -67,6 +67,7 @@ group {
name: "base"; name: "base";
type: IMAGE; type: IMAGE;
mouse_events: 0; mouse_events: 0;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -110,6 +111,7 @@ group {
type: IMAGE; type: IMAGE;
mouse_events: 0; mouse_events: 0;
clip_to: "focus_clip"; clip_to: "focus_clip";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -132,6 +134,7 @@ group {
part { part {
name: "combo_button"; name: "combo_button";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -177,6 +180,7 @@ group {
part { part {
name: "combo_arrows"; name: "combo_arrows";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -208,6 +212,7 @@ group {
part { part {
name: "ecdb.header"; name: "ecdb.header";
type: TEXT; type: TEXT;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -59,6 +59,7 @@ group {
part { part {
name: "back"; name: "back";
mouse_events: 0; mouse_events: 0;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -90,6 +91,7 @@ group {
part { part {
name: "ecdb.table"; name: "ecdb.table";
type: TABLE; type: TABLE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -17,6 +17,7 @@ group {
parts { parts {
part { part {
name: "entry"; name: "entry";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -36,6 +37,7 @@ group {
part { part {
name: "entry_focus"; name: "entry_focus";
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -63,6 +65,7 @@ group {
name: "ecdb.text"; name: "ecdb.text";
type: TEXTBLOCK; type: TEXTBLOCK;
mouse_events: 1; mouse_events: 1;
scale: 1;
entry_mode: EDITABLE; entry_mode: EDITABLE;
multiline: 0; multiline: 0;
source2: "entry/selection/default"; source2: "entry/selection/default";

View File

@ -162,6 +162,7 @@ group {
name: "progress_outline"; name: "progress_outline";
type: IMAGE; type: IMAGE;
mouse_events: 0; mouse_events: 0;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -189,6 +190,7 @@ group {
name: "progress_text"; name: "progress_text";
type: TEXT; type: TEXT;
effect: SOFT_SHADOW; effect: SOFT_SHADOW;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -228,6 +230,7 @@ group {
name: "progress_percent"; name: "progress_percent";
type: TEXT; type: TEXT;
effect: SOFT_SHADOW; effect: SOFT_SHADOW;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -7,6 +7,7 @@ group {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -39,6 +40,7 @@ group {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -71,6 +73,7 @@ group {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
@ -103,6 +106,7 @@ group {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
scale: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;

View File

@ -182,6 +182,7 @@ ecdb_create_main_gui(void)
{ {
Evas_Object *gui; Evas_Object *gui;
Evas_Coord mw, mh; Evas_Coord mw, mh;
const char *scale;
/* 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);
@ -214,6 +215,9 @@ 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");
if (scale)
edje_scale_set(atof(scale));
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");