summaryrefslogtreecommitdiff
path: root/main/layout/ivug-main.edc
diff options
context:
space:
mode:
Diffstat (limited to 'main/layout/ivug-main.edc')
-rwxr-xr-xmain/layout/ivug-main.edc168
1 files changed, 119 insertions, 49 deletions
diff --git a/main/layout/ivug-main.edc b/main/layout/ivug-main.edc
index 1b8e803..76264ea 100755
--- a/main/layout/ivug-main.edc
+++ b/main/layout/ivug-main.edc
@@ -1,27 +1,26 @@
-/*
- * Copyright 2012 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.tizenopensource.org/license
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
// main view
-#define LAYOUT_INDICATOR_HEIGHT_INC 50
-#define LAYOUT_INDICATOR_COLOR 92 92 92 255 // Same as Naviframe
+#include "ivug-theme.edc"
#define NAVI_VIEW_HEIGHT 120
-#define CTRL_VIEW_HEIGHT 95
+#define CTRL_VIEW_HEIGHT 114
collections {
group {
@@ -72,7 +71,7 @@ group {
state: "default" 0.0;
align: 0.5 0.0;
visible: 1;
- rel1 { relative: 0.0 0.0;}
+ rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0;}
}
@@ -83,14 +82,27 @@ group {
}
}
+ part { name: "mainview.area";
+ type: SWALLOW;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events : 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ visible: 1;
+ rel1 { relative: 0.0 0.0; offset: 0 LAYOUT_INDICATOR_HEIGHT_INC;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ }
}
programs {
program {
- name: "main_view_click";
- signal: "mouse,down,1";
- source: "mainview";
- action: SIGNAL_EMIT "elm,action,press" "";
+ name: "main_view_click";
+ signal: "mouse,down,1";
+ source: "mainview";
+ action: SIGNAL_EMIT "elm,action,press" "";
}
program {
name: "hide_menu";
@@ -111,21 +123,18 @@ group {
after: "show_end";
}
program {
- name: "show_end";
- action: SIGNAL_EMIT "menu,show,finished" "edc";
+ name: "show_end";
+ action: SIGNAL_EMIT "menu,show,finished" "edc";
}
program {
- name: "hide_end";
- action: SIGNAL_EMIT "menu,hide,finished" "edc";
+ name: "hide_end";
+ action: SIGNAL_EMIT "menu,hide,finished" "edc";
}
}
}
-#define EMPTY_VIEW_HEIGHT (720-LAYOUT_INDICATOR_HEIGHT_INC-NAVI_VIEW_HEIGHT-CTRL_VIEW_HEIGHT)
-//#define EMPTY_VIEW_HEIGHT 1000
-
group {
name: "navi_content";
parts {
@@ -133,7 +142,8 @@ group {
name: "base";
type: RECT;
scale: 1;
- repeat_events: 1;
+ mouse_events: 1;
+ repeat_events: 0;
description {
state: "default" 0.0;
@@ -142,7 +152,6 @@ group {
color: 0 0 0 0;
}
}
-
part { name: "mainview.slider";
type: SWALLOW;
mouse_events: 1;
@@ -153,7 +162,46 @@ group {
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
}
- }
+ }
+
+ part {
+ name: "controlbar_area";
+ type: RECT;
+ scale : 1;
+ mouse_events:0;
+ description {
+ state: "default" 0.0;
+ min : 0 114;
+ fixed : 0 1;
+ rel1{ relative : 0.0 1.0; }
+ rel2{ relative : 1.0 1.0; }
+ align: 0.5 1.0;
+ color: 0 0 0 0;
+ visible : 1;
+ }
+ }
+
+ part {
+ name: "zoom_slider_area";
+ type: SWALLOW;
+ scale : 1;
+ mouse_events:1;
+ description {
+ state: "default" 0.0;
+ visible : 1;
+ min : 375 100;
+ fixed : 0 1;
+ color: 255 0 0 255;
+ rel1{ relative : 0.5 0.0; to_y:"controlbar_area";}
+ rel2{ relative : 0.5 0.0; to_y:"controlbar_area";}
+ align: 0.5 1.0;
+ }
+ description {
+ state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
#define ICON_ZOOM_GAP 50
@@ -180,19 +228,23 @@ group {
type: IMAGE;
scale: 1;
- mouse_events: 1;
+ mouse_events: 0;
description {
visible: 1;
fixed: 1 1;
min: 56 56;
state: "default" 0.0;
- align: 0.5 0.0;
- /*rel1 { relative: (238/720) ((EMPTY_VIEW_HEIGHT-50-56)/EMPTY_VIEW_HEIGHT);}
- rel2 { relative: (238/720) ((EMPTY_VIEW_HEIGHT-50-56)/EMPTY_VIEW_HEIGHT);}*/
- rel1 { relative: ((238+28)/720) 1.0;
- offset: 0.0 -56-CTRL_VIEW_HEIGHT;}
+ align: 1.0 0.0;
+ /*rel1 { relative: ((238+28)/720) 1.0;
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-10;}
rel2 { relative: ((238+28)/720) 1.0;
- offset: 0.0 -56-CTRL_VIEW_HEIGHT;}
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-10;}*/
+ rel1 { relative: 0.0 1.0;
+ to_x: "zoom_slider_area";
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-20;}
+ rel2 { relative: 0.0 1.0;
+ to_x: "zoom_slider_area";
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-20;}
image.normal: ICON_ZOOM_OUT;
}
@@ -243,19 +295,23 @@ group {
type: IMAGE;
scale: 1;
- mouse_events: 1;
+ mouse_events: 0;
description {
visible: 1;
fixed: 1 1;
min: 56 56;
state: "default" 0.0;
- align: 0.5 0.0;
- /*rel1 { relative: ((238+56+132)/720) ((EMPTY_VIEW_HEIGHT-50-56)/EMPTY_VIEW_HEIGHT);}
- rel2 { relative: ((238+56+132)/720) ((EMPTY_VIEW_HEIGHT-50-56)/EMPTY_VIEW_HEIGHT);}*/
- rel1 { relative: ((720-238-28)/720) 1.0;
- offset: 0.0 -56-CTRL_VIEW_HEIGHT;}
+ align: 0.0 0.0;
+ /*rel1 { relative: ((720-238-28)/720) 1.0;
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-10;}
rel2 { relative: ((720-238-28)/720) 1.0;
- offset: 0.0 -56-CTRL_VIEW_HEIGHT;}
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-10;}*/
+ rel1 { relative: 1.0 1.0;
+ to_x: "zoom_slider_area";
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-20;}
+ rel2 { relative: 1.0 1.0;
+ to_x: "zoom_slider_area";
+ offset: 0.0 -56-CTRL_VIEW_HEIGHT-20;}
image.normal: ICON_ZOOM_IN;
}
@@ -350,7 +406,21 @@ group {
}
- programs {
+ programs {
+ program {
+ name: "hide_zoom_slider";
+ signal: "elm,state,zoom_slider,hide";
+ source: "elm";
+ action: STATE_SET "hide" 0.0;
+ target: "zoom_slider_area";
+ }
+ program {
+ name: "show_zoom_slider";
+ signal: "elm,state,zoom_slider,show";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "zoom_slider_area";
+ }
program {
name: "hide_btn_zoom_out";
signal: "elm,state,btn_zoom_out,hide";
@@ -455,7 +525,7 @@ group {
target: "mainview.btn_zoom_in";
}
}
-
}
+
}