commit add4a358527a6dba20eb9b1a7dc6734c9dd8006c
parent c06ce4a4057df9fe719a576841f015f481203275
Author: Kyle Milz <kmilz@ucalgary.ca>
Date: Sun, 28 Oct 2012 16:06:20 -0600
edje: commit intermediate edc file
Diffstat:
M | src/default.edc | | | 405 | +++++++++++++++++++++---------------------------------------------------------- |
1 file changed, 104 insertions(+), 301 deletions(-)
diff --git a/src/default.edc b/src/default.edc
@@ -1,338 +1,141 @@
collections {
group {
- name: "elm/label/base/highlighted";
+ name: "viking/main";
+
parts {
- part { name: "base";
+ part {
+ name: "backgrund";
type: RECT;
- mouse_events: 1;
- description { state: "default" 0.0;
- color: 255 255 0 255;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- mouse_events: 0;
- description { state: "default" 0.0;
- fixed: 1 0;
- visible: 0;
- align: 0.0 0.5;
- rel1.offset: 4 4;
- rel2.offset: 3 -5;
- rel2.relative: 0.0 1.0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- rel2.offset: 4 -5;
- }
- }
- part { name: "elm.text";
- type: TEXT;
mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to_x: "elm.swallow.content";
- rel1.relative: 1.0 0.0;
+
+ description {
+ state: "default" 0.0;
color: 0 0 0 255;
- text {
- font: "Monospace";
- size: 12;
- min: 0 0;
- text_class: "button";
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
}
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- }
- }
- programs {
- program { name: "button_unclick";
- signal: "mouse,up,1";
- source: "base";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "button_click";
- signal: "mouse,down,1";
- source: "base";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "icononly"))
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"elm.text", "visible", 0.0);
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1 -1;
}
}
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
+ }
+
+ part {
+ name: "webkit";
+ type: SWALLOW;
+
+ description {
+ state: "default" 0.0;
+ min: 240 160;
+ align: 0.5 0.5;
}
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ }
+
+ part {
+ name: "status_line";
+ type: BOX;
+
+ description {
+ state: "default" 0.0;
+ color: 255 0 0 255;
+ align: 0.0 0.0;
+
+ box {
+ layout: horizontal;
+ align: 0.0 0.0;
}
}
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "base";
- after: "disable_text";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
+
+ part {
+ name: "status_favicon";
+ type: SWALLOW;
+
+ description {
+ state: "default" 0.0;
+ max: 32 32;
+ align: 0.0 1.0;
}
}
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- after: "enable_text";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
+
+ part {
+ name: "status_url";
+ type: TEXT;
+
+ description {
+ state: "default" 0.0;
+ color: 0 0 255 255;
+ text {
+ size: 12;
+ font: "monospace";
+ min: 1 1;
+ align: 0.0 1.0;
+ }
}
}
}
- }
- }
- group {
- name: "inverted";
- parts {
- part { name: "base";
- type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 255;
+
+ part {
+ name: "event_box";
+ type: BOX;
+
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ color: 255 0 0 255;
+
+ box {
+ layout: vertical;
+ align: 0.0 1.0;
+ }
}
}
- part { name: "elm.swallow.content";
+
+ part {
+ name: "input_box";
type: SWALLOW;
- description { state: "default" 0.0;
- fixed: 1 0;
- visible: 1;
- align: 0.0 0.5;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- }
- part { name: "elm.text";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 1;
- color: 0 0 0 255;
- text {
- font: "Monospace";
- size: 12;
- min: 0 0;
- text_class: "button";
- }
+
+ description {
+ state: "default" 0.0;
+ align: 0.0 1.0;
+
}
}
}
}
+
group {
- name: "elm/label/base/default";
+ name: "viking/status_line";
+
parts {
- part { name: "base";
- type: RECT;
- mouse_events: 1;
- description { state: "disabled" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "elm.swallow.content";
+ part {
+ name: "status_favicon";
type: SWALLOW;
- mouse_events: 0;
- description { state: "default" 0.0;
- fixed: 1 0;
- visible: 0;
- align: 0.0 0.5;
- rel1.offset: 4 4;
- rel2.offset: 3 -5;
- rel2.relative: 0.0 1.0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- rel2.offset: 4 -5;
+
+ description {
+ state: "default" 0.0;
+ min: 32 32;
+ align: 0.5 0.5;
}
}
- part { name: "elm.text";
+
+ part {
+ name: "status_url";
type: TEXT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to_x: "elm.swallow.content";
- rel1.relative: 1.0 0.0;
- color: 0 0 0 255;
+
+ description {
+ state: "default" 0.0;
+ color: 0 0 255 255;
text {
- font: "Monospace";
size: 12;
- min: 0 0;
- text_class: "button";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- }
- }
- programs {
- program { name: "button_unclick";
- signal: "mouse,up,1";
- source: "base";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "button_click";
- signal: "mouse,down,1";
- source: "base";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "icononly"))
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- }
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "base";
- after: "disable_text";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- after: "enable_text";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
+ font: "monospace";
+ min: 1 1;
}
}
}
}
}
+
+}