/* * * 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. * */ #define ICON_BUTTON(iName, img_default, img_focus)\ group {\ name: iName;\ images{\ image: img_default COMP;\ image: img_focus COMP;\ image: "00_picker_btn_press.png" COMP;\ image: "00_picker_btn_normal.png" COMP;\ }\ parts {\ PART_BG("bg")\ PART_BORDER_IMAGE("image_bg", "bg", "00_picker_btn_normal.png", 4, 4, 0, 0)\ PART_IMAGE("image_icon", "bg", img_default)\ PART_EVENT_RECT("event", "bg")\ }/* end parts */\ \ programs {\ program {\ name: "init";\ signal: "load";\ source: "";\ script {\ SCRIPT_CUSTOM_PART("image_bg");\ SCRIPT_CUSTOM_PART("image_icon");\ }\ } /* end program */\ program {\ name: "focus";\ signal: "focus";\ source: "elm";\ script {\ SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_press.png");\ SCRIPT_SET_IMAGE("image_icon", img_focus);\ }\ } /* end program */\ program {\ name: "normal";\ signal: "normal";\ source: "elm";\ script {\ SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_normal.png");\ SCRIPT_SET_IMAGE("image_icon", img_default);\ }\ } /* end program */\ }/* end programs */\ } ICON_BUTTON("tl_font_size", "P02_icon_font_size.png", "P02_icon_font_size_press.png") ICON_BUTTON("tl_font_color", "P02_icon_font_color.png", "P02_icon_font_color_press.png") ICON_BUTTON("tl_stroke_size", "P02_icon_stroke.png", "P02_icon_stroke_press.png") ICON_BUTTON("tl_stroke_color", "P02_icon_color.png", "P02_icon_color_focus.png") ICON_BUTTON("tl_stroke_eraser", "P02_icon_eraser.png", "P02_icon_eraser_press.png")