Modify flora license version(LICENSE.Flora)
[apps/core/preloaded/gallery.git] / include / widget / gl-controlbar.h
1 /*
2   * Copyright (c) 2012  Samsung Electronics Co., Ltd
3   *
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
7   *
8   *     http://floralicense.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 #ifndef _GL_CONTROLBAR_H_
18 #define _GL_CONTROLBAR_H_
19
20 #include <Elementary.h>
21 #include "gallery.h"
22
23 #define GL_CBAR_OCCUPIED_PBAR 4
24 #define GL_CBAR_OCCUPIED_SEGMENT 4
25
26 typedef enum _gl_ctrl_tab_mode
27 {
28         GL_CTRL_TAB_ALBUMS,
29         GL_CTRL_TAB_TAGS,
30         GL_CTRL_TAB_CNT,
31 } gl_ctrl_tab_mode;
32
33 void _gl_ctrl_segment_change_cb(void *data, Evas_Object *obj, void *event_info);
34 Evas_Object *gl_ctrl_create_ctrlbar_view(Evas_Object * parent);
35 Evas_Object *gl_ctrl_create_ctrlbar_ly(Evas_Object *parent);
36 Evas_Object *gl_ctrl_create_ctrlbar(void *data, int mode);
37 int gl_ctrl_disable_tab_event(void *data, bool disabled);
38 int _gl_ctrl_sel_tabbar_item(void *data, const char *aul_type);
39 int _gl_ctrl_show_tabbar(void *data, bool b_show);
40 bool gl_ctrl_rotate_ctrlbar(void *data, int mode);
41 int gl_ctrl_disable_ctrlbar(void *data, bool disabled);
42 int _gl_ctrl_disable_btn(void *data, bool disabled, int mode);
43 int _gl_ctrl_disable_btns(void *data, Elm_Object_Item *nf_it, bool b_disable);
44
45 #endif /* _GL_CONTROLBAR_H_ */