-//\r
-\r
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
-//\r
-// Licensed under the Flora License, Version 1.0 (the License);\r
-// you may not use this file except in compliance with the License.\r
-// You may obtain a copy of the License at\r
-//\r
-// http://floralicense.org/license/\r
-//\r
-// Unless required by applicable law or agreed to in writing, software\r
-// distributed under the License is distributed on an AS IS BASIS,\r
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-// See the License for the specific language governing permissions and\r
-// limitations under the License.\r
-//\r
-\r
-//!Internet SettingToggleCustomItem class\r
-/*@file: SettingToggleCustomItem.cpp\r
- *@brief: The SettingToggleCustomItem\r
- *\r
- */\r
-\r
-#include <FUiControls.h>\r
-\r
-#include "IntSettingToggleCustomItem.h"\r
-\r
-using namespace Tizen::App;\r
-using namespace Tizen::Base;\r
-using namespace Tizen::Graphics;\r
-using namespace Tizen::Ui::Controls;\r
-\r
-static const int IDA_FORMAT_STRING = 101;\r
-\r
-SettingToggleCustomItem::SettingToggleCustomItem(void)\r
-{\r
- __text = L"";\r
- __width = 0 ;\r
- __height = 0 ;\r
-}\r
-\r
-SettingToggleCustomItem::~SettingToggleCustomItem(void)\r
-{\r
-\r
-}\r
-\r
-result\r
-SettingToggleCustomItem::Construct(int width, int height)\r
-{\r
- result r = E_FAILURE;\r
-\r
- __width = width;\r
- __height = height;\r
- const Dimension dim(width, height);\r
- r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_ONOFF_SLIDING);\r
-\r
- return r;\r
-}\r
-\r
-void\r
-SettingToggleCustomItem::SetText(Tizen::Base::String& text)\r
-{\r
- __text = text;\r
-}\r
-\r
-String\r
-SettingToggleCustomItem::GetText(void)\r
-{\r
- return __text;\r
-}\r
-\r
-result\r
-SettingToggleCustomItem::Make(void)\r
-{\r
- const Color textColor = CUSTOM_COLOR_TRANSPARENT;\r
- const Color pressedTextColor = CUSTOM_COLOR_TRANSPARENT;\r
- const int X_Margin = 26;\r
- const int Y_Margin = 26;\r
- const int textSize = 40;\r
-\r
- AddElement(Rectangle(X_Margin, Y_Margin, __width - 180, 60), IDA_FORMAT_STRING, __text, textSize, textColor, pressedTextColor, pressedTextColor, true);\r
- SetElementSelectionEnabled(IDA_FORMAT_STRING, false);\r
-\r
- return E_SUCCESS;\r
-}\r
+//
+
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//!Internet SettingToggleCustomItem class
+/*@file: SettingToggleCustomItem.cpp
+ *@brief: The SettingToggleCustomItem
+ *
+ */
+
+#include <FUiControls.h>
+
+#include "IntCommonLib.h"
+#include "IntSettingToggleCustomItem.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_STRING = 101;
+
+SettingToggleCustomItem::SettingToggleCustomItem(void)
+{
+ __text = L"";
+ __width = 0 ;
+ __height = 0 ;
+}
+
+SettingToggleCustomItem::~SettingToggleCustomItem(void)
+{
+
+}
+
+result
+SettingToggleCustomItem::Construct(int width, int height)
+{
+ result r = E_FAILURE;
+
+ __fontSize = CommonUtil::GetFontSize();
+ __width = width;
+ __height = height;
+ const Dimension dim(width, height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_ONOFF_SLIDING);
+
+ return r;
+}
+
+void
+SettingToggleCustomItem::SetText(Tizen::Base::String& text)
+{
+ __text = text;
+}
+
+String
+SettingToggleCustomItem::GetText(void)
+{
+ return __text;
+}
+
+result
+SettingToggleCustomItem::Make(void)
+{
+ const Color textColor = CUSTOM_COLOR_TRANSPARENT;
+ const Color pressedTextColor = CUSTOM_COLOR_TRANSPARENT;
+ const int X_Margin = 26;
+ const int Y_Margin = 26;
+ const int textSize = 40;
+
+ AddElement(Rectangle(X_Margin, Y_Margin, __width - 180, 60 + (__fontSize - 44)), IDA_FORMAT_STRING, __text, __fontSize, textColor, pressedTextColor, pressedTextColor, true);
+// SetElementSelectionEnabled(IDA_FORMAT_STRING, false);
+
+ return E_SUCCESS;
+}