//IWebUiEventListener
virtual void OnWebPageBlockSelected(Tizen::Web::Controls::Web& source, Tizen::Graphics::Point& startPoint, Tizen::Graphics::Point& endPoint);
virtual void OnWebPageShowRequested(Tizen::Web::Controls::Web& source){}
- virtual Tizen::Web::Controls::Web* OnWebWindowCreateRequested(void){}
+ virtual Tizen::Web::Controls::Web* OnWebWindowCreateRequested(void){return null;}
virtual void OnWebWindowCloseRequested(Tizen::Web::Controls::Web& source) {}
result InitSelectTextContextMenu(Tizen::Graphics::Point p);
Tizen::Base::String GetText(void);
/**
- * @brief The method used to get selection state of the Radio Button
- * @return True if selected or false if unselected
- */
- bool GetSelected(void);
-
-
- /**
* @brief Add all the required elements and create the Custom Item.
*
* @return An error code
*/
void SetText(Tizen::Base::String& text);
- /**
- * @brief The method used to set the selection state of the Radio Button
- * @return void
- */
- void SetSelected(bool selectedValue);
-
protected:
static const int IDA_FORMAT_STRING;
- static const int IDA_FORMAT_RADIO_BUTTON;
private:
- bool __isSelected;
int __height; ///Height of the SettingToggleCustomItem Instance
Tizen::Base::String __text; ///The Text for the Toggle Button
int __width; ///Width of the SettingToggleCustomItem Instance
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201306101756" Dversion="20120315">
+<Scene Bversion="2.0.0.201306251414" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
- <Form id="IDL_FORM_HW_KEY">
+ <Form id="IDL_FORM">
<property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic:4Dir" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
- <layout mode="Portrait" style="FORM_STYLE_INDICATOR" type="LAYOUT_RELATIVE"/>
- <layout mode="Landscape" style="FORM_STYLE_INDICATOR" type="LAYOUT_RELATIVE"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
</Form>
- <Panel id="IDC_ADDRESSBAR_PANEL" parent="IDL_FORM_HW_KEY">
+ <Panel id="IDC_ADDRESSBAR_PANEL" parent="IDL_FORM">
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="94.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="94.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="94.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
</Panel>
- <Panel id="IDC_FOOTER_PANEL" parent="IDL_FORM_HW_KEY">
+ <Panel id="IDC_FOOTER_PANEL" parent="IDL_FORM">
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="1108.0"/>
<layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="105.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="555.0"/>
<Label id="IDC_CHECK_LABEL" parent="IDC_FOOTER_PANEL">
<property accessibilityHint="" backgroundBitmapPath="I01_toolbar_bg_02.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="105.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="105.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
</Label>
<Button id="IDC_MULTIWINDOW_BUTTON" parent="IDC_FOOTER_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="20.0" NormalBitmapY="20.0" PressedBitmapX="20.0" PressedBitmapY="20.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_toolbar_icon_windows_manager_empty.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_controlbar_icon_multiview.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="60.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63.0" x="26.0" y="25.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="0.0" y="10.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FOOTER_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="15.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63.0" x="15.0" y="25.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FOOTER_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="0.0" y="10.0"/>
</Button>
<Button id="IDC_PAGEFORWARD_BUTTON" parent="IDC_FOOTER_PANEL">
<property DisabledBitmapX="20.0" DisabledBitmapY="20.0" NormalBitmapX="20.0" NormalBitmapY="20.0" PressedBitmapX="20.0" PressedBitmapY="20.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="EditBackground.png" disabledBitmapPath="I01_toolbar_icon_forward_web_disabled.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_toolbar_icon_forward_web.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_toolbar_icon_forward_press_web.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63.0" x="635.0" y="25.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="1168.0" y="10.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FOOTER_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="1168.0" y="10.0"/>
</Button>
<Button id="IDC_PAGEBACK_BUTTON" parent="IDC_FOOTER_PANEL">
<property DisabledBitmapX="20.0" DisabledBitmapY="20.0" NormalBitmapX="20.0" NormalBitmapY="20.0" PressedBitmapX="20.0" PressedBitmapY="20.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="EditBackground.png" disabledBitmapPath="I01_toolbar_icon_back_web_disabled.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="20.0" highlightedBitmapY="20.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_toolbar_icon_back_web.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_toolbar_icon_back_press_web.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="60.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63.0" x="542.0" y="25.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="1056.0" y="10.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_PAGEFORWARD_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="1056.0" y="10.0"/>
</Button>
<Label id="IDC_FOOTER_LABEL" parent="IDC_FOOTER_PANEL">
<property accessibilityHint="" backgroundBitmapPath="I01_toolbar_bg_02.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="71.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="363.0" x="149.0" y="25.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="944.0" x="112.0" y="19.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="71.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MULTIWINDOW_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="15.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="433.0" x="93.0" y="25.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MULTIWINDOW_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_PAGEBACK_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="944.0" x="112.0" y="19.0"/>
</Label>
<Button id="IDC_STOP_BUTTON" parent="IDC_FOOTER_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="I01_field_btn_Clear.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="43.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="42.0" x="454.0" y="40.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="64.0" x="982.0" y="35.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FOOTER_LABEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="64.0" x="982.0" y="35.0"/>
</Button>
<EditField id="IDC_URL_EDIT_FIELD" parent="IDC_FOOTER_PANEL">
<property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="EditBackground.png" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="2048" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="EditBackground.png" normalColor="" normalColorOpacity="100" normalTextColor="#4E4945" pressedBGBitmapPath="EditBackground.png" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="32.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="12.0" viewMode="false"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="71.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="304.0" x="149.0" y="25.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="870.0" x="112.0" y="19.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="71.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MULTIWINDOW_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="15.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_STOP_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="361.0" x="93.0" y="25.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MULTIWINDOW_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_STOP_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="870.0" x="112.0" y="19.0"/>
</EditField>
<Label id="IDC_PROGRESS_BAR_LABEL" parent="IDC_FOOTER_PANEL">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="12.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="12.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="12.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="12.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
</Label>
<Button id="IDC_CLEAR_BUTTON" parent="IDC_FOOTER_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="I01_field_btn_Clear.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="43.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="42.0" x="454.0" y="40.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="64.0" x="982.0" y="35.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FOOTER_LABEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="64.0" x="982.0" y="35.0"/>
</Button>
<Button id="IDC_REFRESH_BUTTON" parent="IDC_FOOTER_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="I01_search_icon_refresh.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="43.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="42.0" x="454.0" y="40.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="54.0" x="982.0" y="35.0"/>
+ <layout bottomRelation="IDC_STOP_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="43.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_STOP_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_STOP_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_STOP_BUTTON" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="42.0" x="454.0" y="40.0"/>
+ <layout bottomRelation="IDC_STOP_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_STOP_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_STOP_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_STOP_BUTTON" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="54.0" x="982.0" y="35.0"/>
</Button>
<Button id="IDC_READER_BUTTON" parent="IDC_FOOTER_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="I01_search_icon_refresh.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="43.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="42.0" x="212.0" y="40.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="54.0" x="982.0" y="35.0"/>
+ <layout bottomRelation="IDC_STOP_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="43.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_URL_EDIT_FIELD" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_STOP_BUTTON" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="42.0" x="93.0" y="40.0"/>
+ <layout bottomRelation="IDC_STOP_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_STOP_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_STOP_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_STOP_BUTTON" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="54.0" x="982.0" y="35.0"/>
</Button>
- <Panel id="IDC_FIND_ON_PAGE_PANEL" parent="IDL_FORM_HW_KEY">
+ <Panel id="IDC_FIND_ON_PAGE_PANEL" parent="IDL_FORM">
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
</Panel>
</Scene>
if ( exist == true)
{
- String msg = CommonUtil::GetString(L"IDS_BR_POP_BOOKMARK_ALREADY_EXISTS");
+ String msg = CommonUtil::GetString(L"IDS_BR_POP_ALREADY_EXISTS");
CreateMessage(msg);
AppLogDebug("Bookmark already exists");
AppLog("AddBookmarkForm::OnActionPerformed does url exist 2");
if ( exist == true)
{
- String msg = CommonUtil::GetString(L"IDS_BR_POP_BOOKMARK_ALREADY_EXISTS");
+ String msg = CommonUtil::GetString(L"IDS_BR_POP_ALREADY_EXISTS");
CreateMessage(msg);
AppLogDebug("Bookmark already exists");
if (__selectedIndex == index)
{
- radioItem->SetSelected(true);
+// radioItem->SetSelected(true);
+ __pList->SetItemChecked(index,true);
}
else
{
- radioItem->SetSelected(false);
+// radioItem->SetSelected(false);
+ __pList->SetItemChecked(index,false);
}
if(__selectedIndex == 0 && index == 1)
- radioItem->SetSelected(true);
- if (radioItem->GetSelected() == true)
+ {
+// radioItem->SetSelected(true);
+ __pList->SetItemChecked(index,true);
+ }
+ if (__pList->IsItemChecked(index) == true)
{
__folderName = radioItem->GetText();
}
pMsgBox = new(std::nothrow) MessageBox;
if (pMsgBox != null)
{
- pMsgBox->Construct(str, L"", MSGBOX_STYLE_OK, 3000);
+ pMsgBox->Construct(L"", str, MSGBOX_STYLE_OK, 3000);
pMsgBox->ShowAndWait(__modalMsgBoxResult);
delete pMsgBox;
pMsgBox = null;
Addressbar::OnTerminating(void)
{
DeviceManager::RemoveDeviceEventListener(DEVICE_TYPE_USB_CLIENT, *this);
+ return E_SUCCESS;
}
result
__pItemContextFolder->Construct();
__pItemContextFolder->AddElement(IDA_CONTEXT_ITEM_FOLDER_EDIT, CommonUtil::GetString(L"IDS_BR_SK_EDIT"));
- __pItemContextFolder->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE,LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL , CONTEXT_ITEM_DELETE_COLOR);
- __pItemContextFolder->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE,LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED , CONTEXT_ITEM_DELETE_COLOR);
- __pItemContextFolder->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE,LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED , CONTEXT_ITEM_DELETE_COLOR);
__pItemContextFolder->AddElement(IDA_CONTEXT_ITEM_FOLDER_DELETE, CommonUtil::GetString(L"IDS_BR_SK_DELETE_ABB"), true);
+ __pItemContextFolder->SetElementBackgroundColor(IDA_CONTEXT_ITEM_FOLDER_DELETE,LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL , CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContextFolder->SetElementBackgroundColor(IDA_CONTEXT_ITEM_FOLDER_DELETE,LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED , CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContextFolder->SetElementBackgroundColor(IDA_CONTEXT_ITEM_FOLDER_DELETE,LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED , CONTEXT_ITEM_DELETE_COLOR);
__pItemContextSite = new(std::nothrow) ListContextItem();
__pItemContextSite->Construct();
DateTime dt;
String bookmarkId;
String bookmarkTitle = bookmark.GetBookmarkTitle();
- bookmarkTitle.Replace(L"'", L"''");
+ bookmarkTitle.Replace(L"'", L"\'");
String bookmarkUrl = bookmark.GetUrl();
- bookmarkUrl.Replace(L"'", L"''");
+ bookmarkUrl.Replace(L"'", L"\'");
AppLog("BookmarkPresentationModel::SaveBookmark");
DateTime dt;
String bookmarkId;
String bookmarkTitle = bookmark.GetBookmarkTitle();
- bookmarkTitle.Replace(L"'", L"''");
+ bookmarkTitle.Replace(L"'", L"\'");
String bookmarkUrl = bookmark.GetUrl();
- bookmarkUrl.Replace(L"'", L"''");
+ bookmarkUrl.Replace(L"'", L"\'");
PresentationModelBase::GetCurrentDateTime(dt);
String bookmarkTable(BOOKMARK_URL_TABLE);
result r = E_FAILURE;
bool nextRowPresent = false;
- text.Replace(L"'", L"''");
+ text.Replace(L"'", L"\'");
query.Append(L"SELECT COUNT(ID) FROM ");
query.Append(bookmarkTable);
searchBookmarkCount = intVal;
CATCH:
- text.Replace(L"''", L"'");
+// text.Replace(L"''", L"'");
return r;
}
String bookmarkTable(BOOKMARK_URL_TABLE);
result r = E_FAILURE;
bool nextRowPresent = false;
- text.Replace(L"'", L"''");
+ text.Replace(L"'", L"\'");
query.Append(L"SELECT COUNT(ID) FROM ");
query.Append(bookmarkTable);
searchFolderCount = intVal;
CATCH:
- text.Replace(L"''", L"'");
+// text.Replace(L"''", L"'");
return r;
}
String bookmarkTable(BOOKMARK_URL_TABLE);
result r = E_FAILURE;
- text.Replace(L"'", L"''");
+ text.Replace(L"'", L"\'");
query.Append(L"SELECT * FROM ");
query.Append(bookmarkTable);
query.Append(L" WHERE ((TITLE LIKE '%");
TryCatch( r == E_SUCCESS,,"BookmarkPresentationModel::CreateBookmarkList failed %s",GetErrorMessage(r));
CATCH:
- text.Replace(L"''", L"'");
+// text.Replace(L"''", L"'");
return r;
}
String query;
String bookmarkTable(BOOKMARK_URL_TABLE);
result r = E_FAILURE;
- text.Replace(L"'", L"''");
+ text.Replace(L"'", L"\'");
query.Append(L"SELECT * FROM ");
query.Append(bookmarkTable);
TryCatch( r == E_SUCCESS,,"BookmarkPresentationModel::CreateBookmarkList failed %s",GetErrorMessage(r));
CATCH:
- text.Replace(L"''", L"'");
+// text.Replace(L"''", L"'");
return r;
}
void
BrightnessForm::OnActionPerformed(const Control& source, int actionId)
{
+ result r = E_SUCCESS;
switch (actionId)
{
case IDA_AUTOBTN_CLICKED:
__manualBrightness = false;
-// __pBrightnessSlider->SetValue(6);
+ __pBrightnessSlider->SetValue(6);
// __pBrightnessSlider->SetShowState(false);
PowerManager::SetScreenBrightness(6);
__pBrightnessSlider->SetEnabled(false);
default:
break;
}
+ // save the slider value
+ // save the tab button
+ AppRegistry* pAppRegistry = App::GetInstance()->GetAppRegistry();
+ String sliderKey("SliderValue");
+ String tabKey("TabButton");
+ int sliderValue = __pBrightnessSlider->GetValue();
+ r = pAppRegistry->Set(sliderKey,sliderValue);
+ FooterItemStatus footerStatus;
+ GetFooter()->GetItemStatus(0,footerStatus);
+ if (footerStatus == FOOTER_ITEM_STATUS_SELECTED)
+ {
+ r = pAppRegistry->Set(tabKey,0);
+ }
+ else
+ {
+ r = pAppRegistry->Set(tabKey,1);
+ }
+ pAppRegistry->Save();
}
void
}
break;
case IDA_BUTTON_NO:
- __pConfirmationPopup->SetShowState(false);
- __pConfirmationPopup->Show();
if(__pConfirmationPopup)
{
+ __pConfirmationPopup->SetShowState(false);
+ __pConfirmationPopup->Show();
delete __pConfirmationPopup;
__pConfirmationPopup = null;
}
}
break;
case IDA_BUTTON_NO:
- __pConfirmationPopup->SetShowState(false);
- __pConfirmationPopup->Show();
if(__pConfirmationPopup)
{
+ __pConfirmationPopup->SetShowState(false);
+ __pConfirmationPopup->Show();
delete __pConfirmationPopup;
__pConfirmationPopup = null;
}
}
}
-// r = pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
- if (IsFailed(r))
- {
- return;
- }
+
}
break;
default:
// added because conversion may fail
if(GetLastResult() != E_SUCCESS)
return;
+ delete pFavBuffer;
history.SetFavIconBitmap(favIconImage);
delete pImage;
return false;
}
- AppRegistry* pAppRegistry = App::GetInstance()->GetAppRegistry();
- String sliderKey("SliderValue");
-
- int sliderValue = 0;
-
-
- r = pAppRegistry->Get(sliderKey, sliderValue);
- r = PowerManager::SetScreenBrightness(sliderValue);
-
- AppLog("Settingscreenbrightness to %d result %s",sliderValue , GetErrorMessage(r));
-
delete pArgList;
pArgList = null;
__pNewWindowInfo = null;
void
InternetApp::OnForeground(void)
{
+ AppLog("InternetApp::OnForeground");
+
+ AppRegistry* pAppRegistry = App::GetInstance()->GetAppRegistry();
+ String sliderKey("SliderValue");
+
+ int sliderValue = 0;
+
+
+ result r = pAppRegistry->Get(sliderKey, sliderValue);
+ r = PowerManager::SetScreenBrightness(sliderValue);
+// r = PowerManager::RestoreScreenBrightness();
+
+ AppLog("Settingscreenbrightness to %d result %s",sliderValue , GetErrorMessage(r));
+
+
Form* pCurrentForm = (SceneManager::GetInstance()->GetCurrentScene()->GetForm());
if (pCurrentForm)
{
delete __pHitElementResult;
__pHitElementResult = null;
}
+ if(__pOptionMenu)
+ {
+ delete __pOptionMenu;
+ __pOptionMenu = null;
+ }
String* pSelectedScene = NULL;
Object* pValue = NULL;
bool
MainForm::Initialize(void)
{
- InternetApp* pInternet = static_cast<InternetApp*> (Application::GetInstance());
- Construct(L"IDL_FORM_HW_KEY");
+ Construct(L"IDL_FORM");
// SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_FOOTER);
return true;
delete __pImageMenu;
__pImageMenu = null;
}
+ if(GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+ {
+ p.y = p.y + 54;
+ }
__pImageMenu = new (std::nothrow) ContextMenu();
r = __pImageMenu->Construct(p, CONTEXT_MENU_STYLE_LIST, direction);
__pImageMenu = null;
}
- if(__pAddressbar->GetShowState() == true)
- p.y = p.y + __pAddressbar->GetHeight();
+// if(__pAddressbar->GetShowState() == true)
+// p.y = p.y + __pAddressbar->GetHeight();
if(GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
{
p.y = p.y + 54;
}
-
-
result
MainForm::InitSelectTextContextMenuF(FloatPoint p, bool pasteOption, bool onlyPasteOption = false)
{
if(__pNotification != null)
{
- delete __pNotification;
+ RemoveControl(__pNotification);
__pNotification = null;
}
__pNotification = new (std::nothrow) NotificationPanel(*this);
delete pBookmark;
if(__pNotification != null)
{
- delete __pNotification;
+ RemoveControl(__pNotification);
__pNotification = null;
}
__pNotification = new (std::nothrow) NotificationPanel(*this);
break;
case IDA_PRINT_CLICKED:
{
- r = __pWebViewer->SavePageAsPdf(UiApp::GetInstance()->GetAppRootPath()+"//data//test.pdf");
+ r = __pWebViewer->SavePageAsPdf(UiApp::GetInstance()->GetAppRootPath()+"//shared//data//test.pdf");
AppLog("SavePageAsPdf result %s",GetErrorMessage(r));
AppLog("RequestPrint called!");
String fileCount = L"service_print_files_count";
String countVal = L"1";
String fileFolder= L"service_print_files_folder_name";
- String folderVal = UiApp::GetInstance()->GetAppRootPath()+"//data";
+ String folderVal = UiApp::GetInstance()->GetAppRootPath()+"//shared//data";
map.Add(&fileCount, &countVal);
map.Add(&fileFolder, &folderVal);
delete pBuffer;
if(__pNotification != null)
{
- delete __pNotification;
+ RemoveControl(__pNotification);
__pNotification = null;
}
__pNotification = new NotificationPanel(*this);
{
return;
}
+
+ if(__pImageMenu && __pImageMenu->GetShowState())
+ {
+ __pImageMenu->SetShowState(false);
+ __pImageMenu->Invalidate(true);
+ }
+
if (__pWebViewer->CanGoForward())
{
//__pAddressbar->SetForwardButtonEnabled(true);
MainForm::OnEstimatedProgress(int progress)
{
AppLogDebug("MainForm::OnEstimatedProgress entered");
+
if (progress < DEFAULT_PROGRESS_PERCENTAGE)
progress = DEFAULT_PROGRESS_PERCENTAGE;
//if(__pAddressbar)
}
-
bool
MainForm::OnLoadingRequested(const Tizen::Base::String& url,
Tizen::Web::Controls::WebNavigationType type)
{
+ AppLog("urlk %ls",url.GetPointer());
// when load new page if find word panel is open its show state is false
if(__pFindWordControl && __pFindWordControl->GetShowState() == true)
{
RelayoutControls(false);
}
-
-
__pFooterPanel->Invalidate(true);
Uri uriInfo;
return Tizen::Web::Controls::WEB_DECISION_CONTINUE;
}
-
void
MainForm::OnWebPageBlockSelected(Web& source, FloatPoint& startPoint, FloatPoint& endPoint)
{
{
AppLog("MainForm::OnWebPageBlockSelected show paste option");
- InitSelectTextContextMenuF(endPoint,true);
+ InitSelectTextContextMenuF(FloatPoint(endPoint.x,endPoint.y + __pWebViewer->GetY()),true);
__pImageMenu->SetShowState(true);
__pImageMenu->Show();
__pImageMenu->Invalidate(true);
__currentSelectedStr.Clear();
__currentSelectedStr = __pHitElementResult->GetUrl();
}
- InitSelectTextContextMenuF(endPoint,false);
+ InitSelectTextContextMenuF(FloatPoint(endPoint.x,endPoint.y + __pWebViewer->GetY()),false);
__pImageMenu->SetShowState(true);
__pImageMenu->Show();
__pImageMenu->Invalidate(true);
if (__pHitElementResult->HasImage() == true)
{
- InitImageContextMenu(currentPosition);
+ if(__pWebViewer != null)
+ InitImageContextMenu(Point(currentPosition.x,currentPosition.y + __pWebViewer->GetY()));
__pImageMenu->SetShowState(true);
__pImageMenu->Show();
__pImageMenu->Invalidate(true);
{
AppLog(null);
}
- InitImageLinkContextMenu(currentPosition);
+ InitImageLinkContextMenu(Point(currentPosition.x,currentPosition.y + __pWebViewer->GetY()));
__pImageMenu->SetShowState(true);
__pImageMenu->Show();
__pImageMenu->Invalidate(true);
{
AppLog("MainForm::OnWebPageBlockSelected show paste option");
- InitSelectTextContextMenu(currentPosition,true, true);
+ InitSelectTextContextMenu(Point(currentPosition.x , currentPosition.y + __pWebViewer->GetY()),true, true);
if(__pImageMenu)
{
__pImageMenu->SetShowState(true);
pList->RemoveAll(true);
delete pList;
}
-// RelayoutControls(false);
+ if(__pAddressbar)
+ __pAddressbar->SetShowState(false);
+ RelayoutControls(false);
return;
}
return;
- int bodyWidth = ((double)(GetClientAreaBounds().width))*0.73;
-
- CreateReaderPanel();
- AppLogDebug("MainScene::ReaderClicked entered");
-
-
- /*if (__pArticleReaderPanel)
- {
- AppLogDebug("showstate true for reader panel");
- __pArticleReaderPanel->SetShowState(true);
- __pArticleReaderPanel->Show();
- }*/
- int xPos = __pArticleReaderPanel->GetX();
- int yPos = __pArticleReaderPanel->GetY();
- AppLog("ReaderClicked() xPos = %d",xPos);
- AppLog("ReaderClicked() yPos = %d",yPos);
-
- if (__pReaderData == null)
- {
- return;
- }
-
- String loadData = L"<html>\
- <head>\
- <meta name='viewport' content='width=device-width*0.73,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'>\
- <style>\
- h1\
- {\
- font-weight:bold;\
- background-color: transparent;\
- }\
- div\
- {\
- display: block;\
- }\
- p\
- {\
- display: block; \
- }\
- img\
- {\
- margin-left:auto;\
- margin-right:auto;\
- }\
- \
- \
- </style>\
- </head>\
- <body style='width:'";
- loadData.Append(bodyWidth);
- loadData.Append(L"px'>");
- AppLogDebug("data->GetLength %d",__pReaderData->GetLength());
- loadData.Append(*__pReaderData);
- loadData.Append(L"</body></html>");
-
- ByteBuffer buf ;
- buf.Construct(loadData.GetLength());
- AppLogDebug("data->GetLength %d",loadData.GetLength());
- for (int z=0;z<loadData.GetLength();z++)
- {
- mchar b;
- loadData.GetCharAt(z,b);
- buf.SetByte((byte)b);
- }
-
- buf.Flip();
- if (__pWebReader != null)
- {
- __pWebReader->LoadData(L"",buf,L"text/html");
- AppLogDebug("LoadData result %s",GetErrorMessage(GetLastResult()));
- }
- else
- {
- AppLogDebug("cannot LoadData __pWebReader is null");
- }
-
}
void MainForm::SetAddressbarMode(AddressBarMode addMode)
query.Format(MAX_DB_QUERY_SIZE, L"DROP TABLE IF EXISTS FaviconData");
break;
}
-
- default:
- {
- AppLogDebug("PresentationModelBase::CreateDBTables: Table Type:%d is invalid", tableIndex);
- break;
- }
-
}
r = PresentationModelBase::ExecuteQuery(query, resultCount);
DateTime dt;
String bookmarkId;
String bookmarkTitle = bookmark.GetBookmarkTitle();
- bookmarkTitle.Replace(L"'", L"''");
+ bookmarkTitle.Replace(L"'", L"\'");
String bookmarkUrl = bookmark.GetUrl();
- bookmarkUrl.Replace(L"'", L"''");
+ bookmarkUrl.Replace(L"'", L"\'");
PresentationModelBase::GetCurrentDateTime(dt);
int count;
String historyTitle = history.GetHistoryTitle();
- historyTitle.Replace(L"'", L"''");
+ historyTitle.Replace(L"'", L"\'");
String historyUrl = history.GetHistoryUrl();
- historyUrl.Replace(L"'", L"''");
+ historyUrl.Replace(L"'", L"\'");
GetCurrentDateTime(date);
r = SystemTime::GetCurrentTime(dt);
return true;
- if (IsFailed(r))
- {
- return false;
- }
- localManager.Construct();
- tz = localManager.GetSystemTimeZone();
- dt = tz.UtcTimeToWallTime(dtNow);
-
- return true;
}
String
using namespace Tizen::Graphics;
using namespace Tizen::Ui::Controls;
-static const wchar_t* IDB_BUTTON_RADIO_PRESS2 = L"00_button_radio_selected.png";
-static const wchar_t* IDB_BUTTON_RADIO_PRESS1 = L"00_button_radio.png";
-
const int RadioCustomItem::IDA_FORMAT_STRING = 500;
-const int RadioCustomItem::IDA_FORMAT_RADIO_BUTTON = 501;
RadioCustomItem::RadioCustomItem(void)
{
__width = 0;
__height = 0;
__text = L"";
- __isSelected = false;
}
RadioCustomItem::~RadioCustomItem(void)
__width = width;
__height = height;
const Dimension dim(width, height);
- r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_RADIO);
return r;
}
result r = E_FAILURE;
Color textColor = CUSTOM_COLOR_LISTVIEW_TEXT2;
Color pressedTextColor = CUSTOM_COLOR_LISTVIEW_TEXT;
- Bitmap* pBitmap = null;
-
- if (__isSelected == true)
- {
- pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_RADIO_PRESS2);
- }
- else
- {
- pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_RADIO_PRESS1);
- }
-
- if ( pBitmap != NULL)
- {
- AddElement(Rectangle(26, (__height-pBitmap->GetHeight())/2 + (__fontSize - 44)/2, pBitmap->GetWidth(), pBitmap->GetHeight()), IDA_FORMAT_RADIO_BUTTON, *pBitmap, null);
- AppLogDebug("RadioCustomItem::the text is %ls",__text.GetPointer());
- r = AddElement(Rectangle(26 + pBitmap->GetWidth() + 10, 5, __width - 26 - 10 - pBitmap->GetWidth(), __height), IDA_FORMAT_STRING, __text, __fontSize, textColor, textColor, textColor, true);
- delete pBitmap;
- }
+ AppLogDebug("RadioCustomItem::the text is %ls",__text.GetPointer());
+ r = AddElement(Rectangle(16, 5, __width - 16 , __height), IDA_FORMAT_STRING, __text, __fontSize, textColor, textColor, textColor, true);
TryCatch(!IsFailed(r),,"RadioCustomItem::the value is %s",GetErrorMessage(r));
-// r = SetElementSelectionEnabled(IDA_FORMAT_STRING, true);
-// TryCatch(!IsFailed(r),,"RadioCustomItem::the value is %s",GetErrorMessage(r));
-
CATCH:
return r;
}
-
-void
-RadioCustomItem::SetSelected(bool selectedValue)
-{
- __isSelected = selectedValue;
-}
-
-bool
-RadioCustomItem::GetSelected(void)
-{
- return __isSelected;
-}
SceneManager* pSceneManager = NULL;
__fontSize = CommonUtil::GetFontSize();
- InternetApp* pInternet = static_cast<InternetApp*> (Application::GetInstance());
bool isHwKeySupported = false;
}
else if (settingInfo[effectiveIndex].itemType == ITEM_TYPE_RADIO)
{
-
-
RadioCustomItem* pItem = new(std::nothrow) RadioCustomItem();
int parentIndex = 0;
for (parentIndex = effectiveIndex; parentIndex > SETTING_INVALID; parentIndex--)
//if (pBitmap != null)
// pItem->AddElement(Rectangle(0, 0, 10, 112), IDA_LIST_LEFT_SIDE_MARGIN, *pBitmap, null);
- pItem->SetSelected(settingInfo[effectiveIndex].isSelected);
+// pItem->SetSelected(settingInfo[effectiveIndex].isSelected);
+ __pList->SetItemChecked(groupIndex,itemIndex,settingInfo[effectiveIndex].isSelected);
pItem->Make();
return pItem;