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