/* * Copyright (c) Samsung Electronics Co., Ltd. All rights reserved. * * Licensed under the Flora Software License (the "License"). * * You may obtain a copy of the License at * http://www.tizenopensource.org/license * * Your use of this source code is conditioned on your acceptance of the * terms and conditions of the License. * If you do not agree to the terms and conditions of the License, * do not use the source code herein. * * THIS SOURCE CODE IS LICENSED ONLY UNDER THE TERMS OF THE LICENSE. * * THIS SOURCE CODE IS DISTRIBUTED ON AN "AS-IS" BASIS AND "WITH ALL FAULTS", * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EXPRESS OR IMPLIED. * * See the License for specific language governing permissions and limitations. */ #define UG_BASIC_W 480 #define UG_BASIC_H 800 #define UG_MAIN_W 720 #define UG_MAIN_H 1280 #define UG_MF_SCALE_W (UG_MAIN_W/UG_BASIC_W) #define UG_MF_SCALE_H (UG_MAIN_H/UG_BASIC_H) #define UG_THUMBNAIL_W 50*UG_MF_SCALE_W #define UG_THUMBNAIL_H 50*UG_MF_SCALE_H #define UG_MEMORY_SUB_THUMB_W 40*UG_MF_SCALE_W #define UG_MEMORY_SUB_THUMB_H 25*UG_MF_SCALE_H #define UG_SOUND_BUTTON_W 240*UG_MF_SCALE_W #define UG_SOUND_BUTTON_H 46*UG_MF_SCALE_H #define GENLIST_ITEM_H 71*UG_MF_SCALE_H #define PATH_INFO_H 30*UG_MF_SCALE_H #define PATH_INFO_LABEL_H 25 #define PATH_INFO_BG_COLOR 200 200 200 127 #define BOTTOM_LINE_COLOR 199 199 199 255 #define MF_UG_PART_PADDING_TOP( param_padding_size ) \ part { name: "elm.padding.top"; \ type: RECT; \ scale: 1; \ description { \ state: "default" 0.0; \ min: 0 param_padding_size; \ fixed: 0 1; \ visible: 0; \ rel2.relative: 1.0 0.0; \ align: 0.0 0.0; \ } \ } #define MF_UG_PART_PADDING_BOTTOM( param_padding_size ) \ part { name: "elm.padding.bottom"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: 0 param_padding_size; \ fixed: 0 1; \ visible: 0; \ rel1.relative: 0.0 1.0; \ align: 0.0 1.0; \ } \ } #define MF_UG_PART_PADDING_LEFT( param_padding_size ) \ part { name: "elm.padding.left"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: param_padding_size 0; \ fixed: 1 0; \ visible: 0; \ rel2.relative: 0.0 1.0; \ align: 0.0 0.0; \ } \ } #define EFFECT_PROGRAMS(part_name, part_state, after_name) \ program \ { \ name: part_name; \ action: STATE_SET part_state 0.0;\ target: "icon"; \ transition: DECELERATE 0.03; \ after: after_name; \ } collections { group { name: "navigation_view"; parts { part { name: "base"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0 0; offset: 0 0; } rel2 { relative: 1 1; offset: -1 -1; } color: 0 0 0 0; } } part { name: "part1"; type: SWALLOW; scale: 1; description { state: "default" 0.0; visible: 1; rel1 { relative: 0.0 0.0; to:"base"; } rel2 { relative: 1.0 1.0; to:"base"; } } } } } group { name: "noContent"; parts { part { name: "myfile.noContent.upper"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; offset: 0 90; } } } part { name: "myfile.noContent.content"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "myfile.noContent.upper"; } rel2 { relative: 1.0 1.0; } } } } } group { name: "effect/model/list"; parts { part { name: "icon"; type: RECT; mouse_events: 0; scale: 1; description { state: "default" 0.0; max : UG_THUMBNAIL_W UG_THUMBNAIL_H; fixed: 1 1; align: 0.5 0.5; aspect: 1.0 1.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } visible: 0; color: 0 0 0 255; } description { state: "min" 0.0; inherit: "default" 0.0; max: 0 0; } description { state: "level1" 0.0; inherit: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } part { name: "swallow_thumb"; type: SWALLOW; mouse_events: 0; scale: 1; description { state: "default" 0.0; align: 0.5 0.5; rel1 { to: "icon"; } rel2 { to: "icon"; } } } part { name: "myfile.memory_icon.sub"; type: SWALLOW; scale: 1; description { state: "default" 0.0; max : UG_MEMORY_SUB_THUMB_W UG_MEMORY_SUB_THUMB_H; min : UG_MEMORY_SUB_THUMB_W UG_MEMORY_SUB_THUMB_H; fixed: 1 1; rel1 { relative:0.5 0.5; to:"icon"; } rel2 { relative:1.0 1.0;to:"icon"; } } } } programs { program { name: "effect_gen"; signal: "effect.gen"; source: "thumb"; action: STATE_SET "min" 0.0; target: "icon"; after: "thumb_gen_1"; } EFFECT_PROGRAMS("thumb_gen_1", "level1", "thumb_gen_2"); program { name: "thumb_gen_2"; action: STATE_SET "default" 0.0; target: "icon"; transition: SINUSOIDAL 0.1; } } } group { name: "goto_myfile"; parts { part { name: "gotoButton"; type: SWALLOW; description { state: "default" 0.0; fixed: 1 1; max : UG_SOUND_BUTTON_W UG_SOUND_BUTTON_H; min : UG_SOUND_BUTTON_W UG_SOUND_BUTTON_H; align: 0.5 0.5; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } } } group { name:"upper_folder"; parts { part { name: "upper"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; min: UG_MAIN_W GENLIST_ITEM_H; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } align: 0.5 0.5; } } } } group { name: "pathinfo"; parts { part { name: "base"; type: RECT; repeat_events: 0; scale: 1; description { state: "default" 0.0; min: UG_MAIN_W PATH_INFO_H; color: PATH_INFO_BG_COLOR; } } part { name: "bg"; type: RECT; clip_to: "disclip"; repeat_events: 0; mouse_events: 0; description { state: "default" 0.0; color: PATH_INFO_BG_COLOR; } } MF_UG_PART_PADDING_TOP(0) MF_UG_PART_PADDING_BOTTOM( 0 ) MF_UG_PART_PADDING_LEFT( 10 ) part { name: "bottom_line"; type: RECT; mouse_events: 0; description { state: "default" 0.0; min: 0 1; fixed: 0 1; visible: 1; color: BOTTOM_LINE_COLOR; rel1 { relative: 0.0 1.0; offset: 0 -1; } } } part { name: "info"; clip_to: "disclip"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 PATH_INFO_LABEL_H; max: 0 PATH_INFO_LABEL_H; fixed: 0 1; align: 0.0 0.5; rel1 { relative: 1.0 1.0; offset: 0 0; to_x: "elm.padding.left"; to_y: "elm.padding.top"; } rel2 { relative: 1.0 0.0; offset: 0 0; to_x: "elm.padding.left"; to_y: "elm.padding.bottom"; } } } part { name: "disclip"; type: RECT; description { state: "default" 0.0; } } } } }