Merge branch 'tizen_3.0' into tizen
[platform/core/uifw/inputdelegator.git] / inc / MoreOption.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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 #pragma once
18
19 #include <Elementary.h>
20 #include <efl_extension.h>
21
22 #define NUM_ITEMS 1
23
24 class MoreOption
25 {
26         Evas_Object *nf;
27         Evas_Object *more_option_layout;
28         Eext_Object_Item *item;
29
30         Eina_Bool option_opened;
31         void *voicedata;
32
33         public :
34                 MoreOption(Evas_Object *naviframe, void *voicedata);
35
36                 ~MoreOption();
37
38                 void Create();
39
40                 /**
41                  * Set option
42                  *
43                  */
44                 void SetContentLayout(Evas_Object *content);
45
46                 void Update();
47
48                 Evas_Object *getMoreOptionLayout(){return more_option_layout;};
49
50         private :
51                 /**
52                  * Main layout
53                  *
54                  */
55                 void AddLayout();
56
57                 /**
58                  * Add layout for options
59                  *
60                  */
61                 void AddMorePage();
62
63                 /**
64                  * Add icon style button ( used in more option )
65                  *
66                  * @param parent evas object parent
67                  * @return launguage button object
68                  *
69                  */
70                 Evas_Object *AddLanguageIcon(Evas_Object *parent);
71 };
72