2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __DEF_CAM_TOOLBAR_EDC_H_
19 #define __DEF_CAM_TOOLBAR_EDC_H_
21 #include "cam_property.h"
31 TOOLBAR_ITEM_STATE_NORMAL,
32 TOOLBAR_ITEM_STATE_PRESS,
33 TOOLBAR_ITEM_STATE_EDIT,
34 TOOLBAR_ITEM_STATE_DIM,
35 TOOLBAR_ITEM_STATE_INVISIBLE,
38 typedef struct __Shortcuts_List_Prop {
39 CAM_EDIT_SHORTCUTS_INDEX index;
41 } Shortcuts_List_Prop;
43 int cam_toolbar_create(struct appdata *ad);
44 void cam_toolbar_destroy(struct appdata *ad);
45 void cam_toolbar_update(struct appdata *ad);
46 int cam_toolbar_rotate(struct appdata *ad);
47 int show_toolbar_edje(struct appdata *ad);
48 int hide_toolbar_edje(struct appdata *ad);
50 gboolean toolbar_update_quickview_thumbnail(struct appdata *ad);
52 * @brief update thumbnail
53 * @param[in] data appdata
54 * @return Operation result
57 gboolean toolbar_update_quickview_thumbnail_no_animation(struct appdata *ad);
59 #ifdef ENABLE_CAPTURE_ANIMATION
60 int toolbar_update_quickview_thumbnail_by_screennail(struct appdata *ad);
63 int cam_toolbar_setting_popup_create(struct appdata *ad);
64 void cam_toolbar_setting_popup_update(struct appdata *ad);
65 void cam_toolbar_setting_popup_destroy(struct appdata *ad);
67 Eina_Bool cam_animation_effect(void *data, char *type, Evas_Object *obj);
68 Eina_Bool cam_icon_animation_effect(void *data);
69 int toolbar_shot_guide_popup_create(struct appdata *ad, int shot_mode);
70 int toolbar_shot_guide_popup_destory(struct appdata *ad);
71 int toolbar_shot_guide_popup_move();
73 Eina_Bool cam_show_setting_menu(void *data);
74 Eina_Bool cam_show_setting_menu_option_popup(void *data);
75 gboolean cam_check_timer_is_running(void *data);
76 int cam_guideline_create(struct appdata *ad);
77 void settings_guideline_refresh(struct appdata *ad);
78 void toolbar_destroy_shortcuts_popup(struct appdata *ad);
79 void cam_toolbar_shutter_button_cb(void *data, Evas_Object *o, const char *emission, const char *source);
80 void cam_toolbar_recording_button_cb(void *data, Evas_Object *o, const char *emission, const char *source);
81 void cam_toolbar_recording_stop_button_cb(void *data, Evas_Object *o, const char *emission, const char *source);
85 * @brief create tip popup
86 * @param[in] ad cam appdata handle
87 * @param[in] ad tip popup type
88 * @return Operation result
91 void cam_tip_popup_create(struct appdata *ad, const CamTipPopupType type);
94 * @brief destroy tip popup
95 * @param[in] ad cam appdata handle
96 * @return Operation result
99 void cam_tip_popup_destroy(struct appdata *ad);
102 * @brief rotate tip popup
103 * @param[in] ad cam appdata handle
104 * @return Operation result
107 void cam_tip_popup_rotate(struct appdata *ad);
110 * @brief set show state of caf button
111 * @param[in] ad cam appdata handle
112 * @param[in] show caf button show state
113 * @return Operation result
116 void cam_toolbar_show_cafbutton(struct appdata *ad, gboolean show);
117 void cam_toolbar_update_shutter_button(struct appdata *ad, ToolbarItemState state);
119 #endif /* __DEF_CAM_TOOLBAR_EDC_H_ */