[Title] Set separator between list items.
[profile/ivi/org.tizen.browser.git] / src / browser-bookmark / browser-new-folder-view.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (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
7  *
8  *    http://www.tizenopensource.org/license
9  *
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.
15  *
16  */
17
18
19 #ifndef BROWSER_NEW_FOLDER_VIEW_H
20 #define BROWSER_NEW_FOLDER_VIEW_H
21
22 #include "browser-common-view.h"
23 #include "browser-config.h"
24
25 class Browser_New_Folder_View : public Browser_Common_View {
26 public:
27         Browser_New_Folder_View(void);
28         ~Browser_New_Folder_View(void);
29
30         Eina_Bool init(void);
31 private:
32         Eina_Bool _create_main_layout(void);
33         Eina_Bool _create_new_folder(const char *folder_name);
34         string _get_default_new_folder_name(void);
35
36         /* Elementary event callback functions */
37         static void __cancel_button_clicked_cb(void *data, Evas_Object *obj, void *event_info);
38         static void __save_button_clicked_cb(void *data, Evas_Object *obj, void *event_info);
39         static void __title_entry_changed_cb(void *data, Evas_Object *obj, void *event_info);
40         static void __naviframe_pop_finished_cb(void *data , Evas_Object *obj, void *event_info);
41
42         /* genlist event callback functions */
43         static Evas_Object *__genlist_icon_get_cb(void *data, Evas_Object *obj, const char *part);
44
45         Evas_Object *m_genlist;
46         Evas_Object *m_conformant;
47         Evas_Object *m_save_button;
48         Evas_Object *m_cancel_button;
49         Evas_Object *m_folder_name_edit_field;
50
51         Elm_Genlist_Item_Class m_item_class;
52         Elm_Object_Item *m_navi_it;
53
54         string m_folder_name;
55 };
56
57 #endif /* BROWSER_NEW_FOLDER_VIEW_H */
58