Merge branch 'master' into tizen_2.1
[apps/core/preloaded/settings.git] / setting-common / include / setting-common-data-type.h
index 9f8f8f7..7cc3dc9 100755 (executable)
@@ -1,22 +1,18 @@
 /*
  * setting
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd.
  *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
- *
- * Contact: MyoungJune Park <mj2004.park@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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.apache.org/licenses/LICENSE-2.0
+ *     http://floralicense.org/license/
  *
  * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 SETTING_IDLE_IMAGE_PATH "/etc/idle_image/"
 
-#ifdef SUPPORT_NAVIGATIONBAR
-#define NAVI_CONTROLBAR_STYLE "navigationbar"
-#define NAVI_DEF_BUTTON_STYLE "navigationbar_control/center"
-#define NAVI_BACK_BUTTON_STYLE "navigationbar_backbutton/default"
-#else
-#define NAVI_CONTROLBAR_STYLE "naviframe"
-#define NAVI_DEF_BUTTON_STYLE  "naviframe_control/default"
+#define NAVI_DEF_BUTTON_STYLE  "naviframe/toolbar/default"//"naviframe_control/default"
 #define NAVI_BACK_BUTTON_STYLE "naviframe/back_btn/default"
-#endif
 
-#if SUPPORT_BOTTOM_BTNS
 #define NAVI_CONTROLBAR_PART "controlbar"
-#else
-#define NAVI_CONTROLBAR_PART "optionheader"
-#endif
+
 #define BTN_STYLE_DEF "naviframe/title/default"
 #define NAVI_BTN_STYLE_LEFT "title_left_btn"
 #define NAVI_BTN_STYLE_RIGHT "title_right_btn"
 
 #define SETTING_FONT_CONF_FILE "/opt/etc/fonts/conf.avail/99-slp.conf"
 
+
+//#define GENLIST_LIST_SUB_TEXT_SETTINGS_COLOR_STYLE          "#3B73B6FF"
+#define BLUE_COLOR          "#3B73B6"  //3B73B6FF <== 59 115 182 255
+#define GRAY_COLOR "#7B7B7B"
+#define RED_COLOR "#FF0000"
+
 /**
 * @brief slider, button, and etc.
 *
@@ -156,7 +148,6 @@ typedef void (*setting_call_back_func) (void *data, Evas_Object *obj, void *even
 #define SYSTEM_SERVICE_LIST_PATH "/opt/osp/system/configuration/system-services.list"
 #define MAX_PKG_NAME_LEN                       128
 
-
 typedef struct
 {
        char* locale;                           // ex) "en_US.UTF"
@@ -180,6 +171,7 @@ typedef enum _GENDIAL_Type {
        GENDIAL_Type_1icon_2text = 2,
        GENDIAL_Type_2text_2icon_4 = 3,
        GENDIAL_Type_1text_2icon_2 = 4,
+       GENDIAL_Type_2text_2icon_3 = 5,
        GENDIAL_Type_sel_all,
 
        GENDIAL_Type_1line_icontext,
@@ -197,6 +189,7 @@ typedef enum _SWALLOW_Type {
        SWALLOW_Type_1CHECKICON = 4,
        SWALLOW_Type_1RADIO = 5,
        SWALLOW_Type_1TOGGLE = 6,
+       SWALLOW_Type_1ICON_1PROCESS,
        SWALLOW_Type_MULTILINE_1TOGGLE,
 
        SWALLOW_Type_1ICON_1IMAGE,
@@ -234,6 +227,14 @@ typedef enum _POPUP_BTN_RESPONSE_TYPE{
        POPUP_RESPONSE_OK = 0,
        POPUP_RESPONSE_CANCEL = 1,
 } POPUP_BTN_RESPONSE_TYPE;
+
+typedef enum {
+       SETTING_GROUP_STYLE_NONE = 0,
+       SETTING_GROUP_STYLE_TOP,
+       SETTING_GROUP_STYLE_CENTER,
+       SETTING_GROUP_STYLE_BOTTOM
+} setting_group_style;
+
 /**
  *an item node in genlist
  * @todo begings_to is requried?
@@ -248,6 +249,8 @@ typedef struct _Setting_GenGroupItem_Data {
        SWALLOW_Type swallow_type;
        const char *l_swallow_path;
        const char *r_swallow_path;
+       /* for shortcut item */
+       const char *exec_path;
 
        Evas_Object *win_main;
        Evas *evas;
@@ -301,7 +304,9 @@ typedef struct _Setting_GenGroupItem_Data {
        Elm_Entry_Filter_Accept_Set *digits_filter_data;
        Elm_Entry_Filter_Limit_Size *limit_filter_data;
 
-       Eina_List* childs;              /**< child nodes if this node has child nodes for handling radio buttons */
+       Eina_List* childs;              /**< child nodes if this has child nodes for handling radio buttons */
+
+       setting_group_style group_style;
 } Setting_GenGroupItem_Data;
 
 typedef enum {
@@ -327,6 +332,7 @@ typedef struct _Setting_Done_List_Data {
        void *UG_data;
        Evas_Object *ly_parent;
        Evas_Object *controllbar;
+       Elm_Object_Item *navi_it;
 
        /* internal output%input arguements */
        Item_Table chk_items[MAX_RESET_MENU_NUM];
@@ -338,6 +344,7 @@ typedef struct _Setting_Done_List_Data {
        Elm_Genlist_Item_Class itc_sel_all;
        Evas_Object *select_all_checkbox;
        Eina_Bool select_all_checked;
+       Eina_List *list;
 } Setting_Done_List_Data;
 
 #endif                         /* __SETTING_COMMON_DATA_TYPE_H__ */