1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
/*
* 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.
*/
#ifndef __DEF_MF_UG_WINSET_H_
#define __DEF_MF_UG_WINSET_H_
#include <stdio.h>
#include <assert.h>
#include <Elementary.h>
#include <glib.h>
#include <vconf.h>
#include <vconf-keys.h>
#include "mf-ug-main.h"
#include "mf-ug-cb.h"
#include "mf-ug-conf.h"
/******************Navigation Bar Definition ***********/
#define MF_UG_NAVI_STYLE_ENABLE "1line"
#define MF_UG_UPPER_HEIGHT (113*elm_config_scale_get())
#define MF_UG_UPPER_WIDTH (480*elm_config_scale_get())
Evas_Object *mf_ug_navi_bar_create_navi_bar(Evas_Object *parent);
void mf_ug_navi_bar_set_new_content(Evas_Object *pLayout, Evas_Object *NaviContent);
void mf_ug_navi_bar_create_default_view(void *data);
ugNaviBar *mf_ug_navi_bar_get_in_use_navi(void *data);
ugNaviBar *mf_ug_navi_bar_get_navi_struct_by_navi(void *data, Evas_Object *pNaviBar);
void mf_ug_navi_bar_reset_navi_object(ugNaviBar *pNavi_s);
void mf_ug_navi_bar_refresh_navibar_recovered_view(void *data, ugNaviBar *pNaviStruct);
void mf_ug_navi_bar_remove_navi_list_item_by_label(void *data, const char *pNaviLabel);
void mf_ug_navi_bar_set_select_info_label(void *data, int dir_count, int file_count);
void mf_ug_navi_bar_set_blocking(void *data, bool bblock_during_transition);
void mf_ug_navi_bar_remove_previous_contents(void *data);
void mf_ug_navi_bar_del_item_directly(void *data);
/********** Control Bar Definition ********/
#define UG_CTRL_ICON_CANCEL UG_ICON_PATH"/myfile_icon_cancel.png"
#define UG_CTRL_ICON_SAVE UG_ICON_PATH"/myfile_icon_done.png"
typedef enum _eCtrlBarButtonType eCtrlBarButtonType;
enum _eCtrlBarButtonType {
CTRL_BUTTON_CANCEL = 0,
CTRL_BUTTON_DONE,
CTRL_BUTTON_ADD,
CTRL_BUTTON_OTHER_RIONTONGS,
CTRL_BUTTON_MUSIC,
CTRL_BUTTON_MAX
};
void mf_ug_ctrl_bar_set(void *data, ugNaviBar *pNavi_s);
void mf_ug_ctrl_bar_disable_item(void *data, bool disable);
void mf_ug_ctrl_bar_set_item_disable(void *data);
/**********Tab Bar Definition *************/
Evas_Object *mf_ug_tab_bar_create(Evas_Object *parent);
Elm_Object_Item *mf_ug_tab_bar_append_item(Evas_Object *pTabBar, char *pTabIconPath, char *pTabBarLabel, void *user_data);
void mf_ug_tab_bar_set_item_view(Evas_Object *parent, Evas_Object *tab_layout, Evas_Object *view);
void mf_ug_tab_bar_remove_item_by_label(Evas_Object *pTabBar, char *pTabLabel);
void mf_ug_tab_bar_remove_all_items(Evas_Object *pTabBar);
void mf_ug_tab_bar_set_selected_item(Elm_Object_Item *pItem);
void mf_ug_tab_bar_set_item_disable(Evas_Object *pTabBar, Eina_Bool disable);
void mf_ug_ctrl_bar_recover(void *data);
/*********** Popup Definition ************/
typedef enum _mf_ug_popup_mode mf_ug_popup_mode;
enum _mf_ug_popup_mode {
UG_POPMODE_MIN = 0,
UG_POPMODE_TEXT,
UG_POPMODE_TITLE_TEXT,
UG_POPMODE_TEXT_TWO_BTN,
UG_POPMODE_TITLE_TEXT_TWO_BTN,
UG_POPMODE_TEXT_BTN,
UG_POPMODE_TITLE_TEXT_BTN,
UG_POPMODE_TITLE_TEXT_THREE_BTN,
UG_POPMODE_PROGRESSBAR,
UG_POPMPDE_MAX
};
typedef enum _mf_ug_popup_event_type mf_ug_popup_event_type;
enum _mf_ug_popup_event_type {
UG_ELM_POPUP_NONE,
UG_ELM_POPUP_YES,
UG_ELM_POPUP_NO,
UG_ELM_POPUP_OK,
UG_ELM_POPUP_CANCLE,
UG_ELM_POPUP_AUTO_RENAME,
UG_ELM_POPUP_REPLACE,
UG_ELM_POPUP_PHONE,
UG_ELM_POPUP_MEMORY,
UG_ELM_POPUP_MAX
};
/*********** Popup API ************/
void mf_ug_popup_create(void *data, mf_ug_popup_mode popupMode, char *title, char *context, char *first_btn_text, char *second_btn_text,
char *third_btn_text, Evas_Smart_Cb func, void *param);
/******************* Genlist API *********************/
void mf_ug_upper_genlist_item_append(Evas_Object *pGenlist, void *data);
void mf_ug_genlist_goto_myfile_item_append(Evas_Object *pGenlist, void *data);
Evas_Object *mf_navi_bar_upper_create(Evas_Object *parent);
void mf_ug_genlist_goto_myfile_style_set(void *data);
void mf_ug_genlist_upper_style_set(void *data);
Evas_Object *mf_ug_genlist_create_content_list_view(void *data);
#endif
|