merge with master
[apps/osp/Internet.git] / inc / IntReaderFontSizeForm.h
1 //\r
2 \r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Flora License, Version 1.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //     http://floralicense.org/license/\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an AS IS BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 \r
18 //!Internet IntFontSize class\r
19 /*@file:        IntFontSize.h\r
20  *@brief:       This class defines IntFontSize used to change the font size\r
21  *\r
22  */\r
23 \r
24 #ifndef _INT_READER_FONT_SIZE_FORM_H_\r
25 #define _INT_READER_FONT_SIZE_FORM_H_\r
26 \r
27 #include <FBase.h>\r
28 #include <FUi.h>\r
29 \r
30 class ReaderFontSizeForm\r
31         : public Tizen::Ui::Controls::Form\r
32         , public Tizen::Ui::IActionEventListener\r
33         , public Tizen::Ui::Controls::IFormBackEventListener\r
34         , public Tizen::Ui::Scenes::ISceneEventListener\r
35         , public Tizen::Ui::Controls::ISliderEventListener\r
36 {\r
37 public:\r
38         /**\r
39          * @brief               The Default Constructor\r
40          */\r
41         ReaderFontSizeForm(void);\r
42 \r
43         /**\r
44          * @brief               The Default Destructor\r
45          */\r
46         virtual ~ReaderFontSizeForm(void);\r
47 \r
48         /**\r
49          * @brief               Initializes this IntFontSize Form.\r
50          * @return              An error code\r
51          * @param[in]   void\r
52          * @exception   true                            The method is successful.\r
53          * @exception   false                           An error occurred.\r
54          */\r
55         bool Initialize(void);\r
56 \r
57         /**\r
58          * @brief               Initializes the controls of the UI for IntFontSize.\r
59          *\r
60          * @return              An error code\r
61          * @exception   E_SUCCESS                       The method is successful.\r
62          * @exception   E_INVALID_STATE         This instance has already been constructed.\r
63          * @exception   E_INVALID_ARG       A specified input parameter is invalid.\r
64          * @exception   E_OUT_OF_MEMORY     The memory is insufficient.\r
65          * @exception   E_SYSTEM                        A system error has occurred.\r
66          *\r
67          */\r
68         result OnInitializing(void);\r
69 \r
70 protected:\r
71         //IActionEventListener\r
72         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
73 \r
74         //IFormBackEventListener\r
75         virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);\r
76 \r
77         //ISceenEventListener\r
78         virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);\r
79         virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);\r
80 \r
81         //ISliderEventListener\r
82         virtual void OnSliderBarMoved(Tizen::Ui::Controls::Slider& source, int value);\r
83 \r
84 private:\r
85         Tizen::Ui::Controls::Slider* __pFontSlider;\r
86         Tizen::Base::Integer* __pFontValue;\r
87 };\r
88 \r
89 #endif /* _INT_READER_FONT_SIZE_FORM_H_ */\r