2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.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.
19 #ifndef BROWSER_NEW_FOLDER_VIEW_H
20 #define BROWSER_NEW_FOLDER_VIEW_H
22 #include "browser-common-view.h"
23 #include "browser-config.h"
25 class Browser_New_Folder_View : public Browser_Common_View {
27 Browser_New_Folder_View(void);
28 ~Browser_New_Folder_View(void);
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);
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);
42 /* genlist event callback functions */
43 static Evas_Object *__genlist_icon_get_cb(void *data, Evas_Object *obj, const char *part);
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;
51 Elm_Genlist_Item_Class m_item_class;
52 Elm_Object_Item *m_navi_it;
57 #endif /* BROWSER_NEW_FOLDER_VIEW_H */