This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
-
-<ScenePanel Bversion="2.0.0.201305162056" Dversion="20120315">
+<ScenePanel Bversion="2.0.0.201305311836" Dversion="20120315">
<Panel id="IDL_FIND_ON_PAGE">
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
<layout height="82.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="3.0" y="27.0"/>
</Button>
<Label id="IDC_FIND_COUNT_LABEL" parent="IDC_PANEL1">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#FFFFFF" backgroundColorOpacity="0" horizontalAlign="ALIGN_RIGHT" leftMargin="16" text="" textColor="#4E4945" textSize="22.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_FIND_CLEAR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="218.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_FIND_CLEAR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="124.0" x="174.0" y="0.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FIND_CLEAR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="180.0" x="671.0" y="0.0"/>
</Label>
<EditField id="IDC_FIND_WORD_EDITFIELD" parent="IDC_PANEL1">
<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="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_FIND_COUNT_LABEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_NORMAL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="218.0" x="0.0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_FIND_COUNT_LABEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_NORMAL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="174.0" x="0.0" y="0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FIND_COUNT_LABEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_NORMAL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="671.0" x="0.0" y="0.0"/>
</EditField>
+ <Panel id="IDC_PANEL2" parent="IDL_FIND_ON_PAGE">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FIND_NEXT" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_FIND_CANCEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="370.0" x="191.0" y="5.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FIND_NEXT" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="5.0" mode="Landscape" rightRelation="IDC_FIND_CANCEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="IDL_FIND_ON_PAGE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="923.0" x="191.0" y="5.0"/>
+ </Panel>
+ <Label id="IDC_LABEL2" parent="IDC_PANEL2">
+ <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="IDC_PANEL2" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL2" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL2" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PANEL2" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="370.0" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.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="923.0" x="0" y="0.0"/>
+ </Label>
+ <EditField id="IDC_FIND_WORD_EDITFIELD2" parent="IDC_PANEL2">
+ <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="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL2" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_NORMAL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="174.0" x="196.0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_PANEL2" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_NORMAL_SMALL" topRelation="IDC_PANEL2" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="671.0" x="252.0" y="0.0"/>
+ </EditField>
+ <Label id="IDC_FIND_COUNT_LABEL2" parent="IDC_PANEL2">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_RIGHT" leftMargin="16" text="" textColor="#4E4945" textSize="22.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="124.0" x="72.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="180.0" x="72.0" y="0.0"/>
+ </Label>
+ <Button id="IDC_FIND_CLEAR2" parent="IDC_PANEL2">
+ <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="EditBackground.png" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_field_btn_Clear_temp.png" normalColor="" normalColorOpacity="100" normalTextColor="#4D4D4D" pressedBGBitmapPath="I01_field_btn_Clear_temp.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PANEL2" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PANEL2" 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="72.0" x="0.0" y="0.0"/>
+ </Button>
</ScenePanel>
const int IDA_HYPERLINK_SAVE_IMAGE_CLICKED = 222;
const int IDA_HYPERLINK_SHARE_IMAGE_CLICKED = 223;
+const int IDA_FINDWORD_CLEAR_RIGHT_TO_LEFT_CLICKED = 224;
+
const int DEFAULT_PROGRESS_PERCENTAGE = 10;
const int MainForm::IDA_FORMAT_BITMAP = 500;
__pImageMenu = null;
__pMenu = null;
__pFindWordControl = null;
-
+ __pFindWordPanelLeftToRight = null;
+ __pFindWordPanelRightToLeft = null;
__pFindWordBgLabel = null;
+ __pFindWordBgLabelRightToLeft = null;
__pFindWordEditField = null;
+ __pFindWordEditFieldRightToLeft = null;
__pFindWordClear = null;
+ __pFindWordClearRightToLeft = null;
__pFindWordCountLabel = null;
+ __pFindWordClearRightToLeft = null;
__pFindWordNext = null;
__pFindWordPrev = null;
__previousZoomLevel = 1.0;
delete pBitmap;
}
}
+ if (__pFindWordBgLabelRightToLeft != null)
+ {
+ Bitmap *pBitmap = CommonUtil::GetNinepatchedBitmapN(IDB_FINDWORD_INPUT_FIELD_BG, __pFindWordBgLabelRightToLeft->GetWidth(), __pFindWordBgLabelRightToLeft->GetHeight());
+ if (pBitmap != null)
+ {
+ __pFindWordBgLabelRightToLeft->SetBackgroundBitmap(*pBitmap);
+ delete pBitmap;
+ }
+ }
return r;
}
__pFindWordControl->SetShowState(false);
__pFindWordControl->Invalidate(false);
+ __pFindWordPanelLeftToRight = static_cast<Panel*>(__pFindWordControl->GetControl(L"IDC_PANEL1", true));
+ __pFindWordPanelLeftToRight->SetShowState(true);
+
+ __pFindWordPanelRightToLeft = static_cast<Panel*>(__pFindWordControl->GetControl(L"IDC_PANEL2", true));
+ __pFindWordPanelRightToLeft->SetShowState(false);
+
__pFindWordBgLabel = static_cast<Label*>(__pFindWordControl->GetControl(L"IDC_LABEL1", true));
if (__pFindWordBgLabel != null)
{
}
}
+ __pFindWordBgLabelRightToLeft = static_cast<Label*>(__pFindWordControl->GetControl(L"IDC_LABEL2", true));
+ if (__pFindWordBgLabelRightToLeft != null)
+ {
+ Panel* pPanel1 = static_cast<Panel*>(__pFindWordControl->GetControl(L"IDC_PANEL1", true));
+ Rectangle pRect = pPanel1->GetBounds();
+ pRect.x = pRect.y = 0;
+ __pFindWordBgLabelRightToLeft->SetBounds(pRect);
+ Bitmap *pBitmap = CommonUtil::GetNinepatchedBitmapN(L"I01_search_input_field_bg.9.png", __pFindWordBgLabel->GetWidth(), __pFindWordBgLabel->GetHeight());
+ if (pBitmap != null)
+ {
+ AppLogDebug("InitFindWordPanel: Coming here");
+ __pFindWordBgLabelRightToLeft->SetBackgroundBitmap(*pBitmap);
+ delete pBitmap;
+ }
+ else
+ {
+ AppLogDebug("InitFindWordPanel: shouldn't Come here");
+ }
+ }
+
Button* pfindWordCancel = null;
pfindWordCancel = static_cast<Button*>(__pFindWordControl->GetControl(L"IDC_FIND_CANCEL", true));
if (pfindWordCancel == null)
return E_FAILURE;
}
+ __pFindWordClearRightToLeft = static_cast<Button*>(__pFindWordControl->GetControl(L"IDC_FIND_CLEAR2", true));
+ if (__pFindWordClearRightToLeft == null)
+ {
+ AppLogException("There is some problem in the xml file. Please check.");
+ return E_FAILURE;
+ }
+
__pFindWordClear->SetActionId(IDA_FINDWORD_CLEAR_CLICKED);
__pFindWordClear->AddActionEventListener(*this);
+ __pFindWordClearRightToLeft->SetActionId(IDA_FINDWORD_CLEAR_RIGHT_TO_LEFT_CLICKED);
+ __pFindWordClearRightToLeft->AddActionEventListener(*this);
+
__pFindWordNext = static_cast<Button*>(__pFindWordControl->GetControl(L"IDC_FIND_NEXT", true));
if (__pFindWordNext == null)
{
return E_FAILURE;
}
+ __pFindWordCountLabelRightToLeft = static_cast<Label*>(__pFindWordControl->GetControl(L"IDC_FIND_COUNT_LABEL2", true));
+ if (__pFindWordCountLabel == null)
+ {
+ AppLogException("There is some problem in the xml file. Please check.");
+ return E_FAILURE;
+ }
+
__pFindWordEditField = static_cast<EditField*>(__pFindWordControl->GetControl(L"IDC_FIND_WORD_EDITFIELD", true));
if (__pFindWordEditField == null)
{
__pFindWordEditField->AddKeypadEventListener(*this);
__pFindWordEditField->SetOverlayKeypadCommandButtonVisible(false);
+ __pFindWordEditFieldRightToLeft = static_cast<EditField*>(__pFindWordControl->GetControl(L"IDC_FIND_WORD_EDITFIELD2", true));
+ if (__pFindWordEditFieldRightToLeft == null)
+ {
+ AppLogException("There is some problem in the xml file. Please check.");
+ return E_FAILURE;
+ }
+ __pFindWordEditFieldRightToLeft->AddTextEventListener(*this);
+ __pFindWordEditFieldRightToLeft->AddKeypadEventListener(*this);
+ __pFindWordEditFieldRightToLeft->SetOverlayKeypadCommandButtonVisible(false);
+
return r;
}
__pMenu->SetShowState(false);
__pMenu->Invalidate(false);
- __pFindWordEditField->SetFocus();
ShowFindWordPanel(true);
+
+ if(__pFindWordPanelLeftToRight && __pFindWordPanelLeftToRight->GetShowState() == true)
+ {
+ __pFindWordEditField->SetFocus();
+ __pFindWordCountLabel->SetShowState(false);
+ }
+ else
+ {
+ __pFindWordEditFieldRightToLeft->SetFocus();
+ __pFindWordCountLabelRightToLeft->SetShowState(false);
+ }
}
break;
case IDA_PRIVATEON_CLICKED:
__currentSearchStr = L"";
__pFindWordNext->SetEnabled(false);
__pFindWordPrev->SetEnabled(false);
+ __pFindWordCountLabel->SetShowState(false);
+ __pFindWordControl->Invalidate(true);
+ }
+ break;
+ case IDA_FINDWORD_CLEAR_RIGHT_TO_LEFT_CLICKED:
+ {
+ __pFindWordCountLabelRightToLeft->SetText(L"0/0");
+ __pFindWordEditFieldRightToLeft->SetText(L"");
+ __currentSearchStr = L"aaaaaabbbbbbccccccc";
+ StartWordSearch();
+ __currentSearchStr = L"";
+ __pFindWordNext->SetEnabled(false);
+ __pFindWordPrev->SetEnabled(false);
+ __pFindWordCountLabelRightToLeft->SetShowState(false);
__pFindWordControl->Invalidate(true);
}
break;
if (__pWebViewer != null)
{
pWebCanvas = __pWebViewer->GetCanvasN();
- __pWebViewer->Pause();
-
}
if (pWebCanvas == null)
{
{
return;
}
+
+ Tizen::Locales::LocaleManager localeManager;
+ Tizen::Locales::Locale local = localeManager.GetSystemLocale();
+
+ String languageCode;
+ result r = SettingInfo::GetValue(L"Language", languageCode);
+ // int languagecode = local.GetLanguageCode();
+ AppLog("rahul language is %S", languageCode.GetPointer());
+
if (show == true)
{
InitFindWordPanel();
-// __pFindWordEditField->SetText(__currentSearchStr);
- //__pFindWordCountLabel->SetText(L"");
-// __pFindWordCountLabel->SetText(L"0/0");
+
+ if (languageCode.CompareTo("ara") == 0)
+ {
+ AppLog("rahul language is arabic");
+
+ __pFindWordPanelLeftToRight->SetShowState(false);
+ __pFindWordPanelRightToLeft->SetShowState(true);
+
+ __pFindWordClear->SetShowState(false);
+ __pFindWordCountLabel->SetShowState(false);
+ __pFindWordEditField->SetShowState(false);
+
+ __pFindWordClearRightToLeft->SetShowState(true);
+ __pFindWordCountLabelRightToLeft->SetShowState(true);
+ __pFindWordEditFieldRightToLeft->SetShowState(true);
+ }
+ else
+ {
+ AppLog("rahul language is not arabic");
+
+
+ __pFindWordPanelLeftToRight->SetShowState(true);
+ __pFindWordPanelRightToLeft->SetShowState(false);
+
+ __pFindWordClear->SetShowState(true);
+ __pFindWordCountLabel->SetShowState(true);
+ __pFindWordEditField->SetShowState(true);
+
+ __pFindWordClearRightToLeft->SetShowState(false);
+ __pFindWordCountLabelRightToLeft->SetShowState(false);
+ __pFindWordEditFieldRightToLeft->SetShowState(false);
+ }
__pFindWordControl->SetShowState(true);
}
else
AppLog("MainForm::ShowFindWordPanel %d",show);
if (show && !isTouchPressed)
{
- if (__pFindWordEditField)
+ if (languageCode.CompareTo("ara") == 0)
{
- __pFindWordEditField->SetFocus();
- __pFindWordEditField->ShowKeypad();
+ if (__pFindWordEditFieldRightToLeft)
+ {
+ __pFindWordEditFieldRightToLeft->SetFocus();
+ __pFindWordEditFieldRightToLeft->ShowKeypad();
+ }
+ }
+ else
+ {
+ if (__pFindWordEditField)
+ {
+ __pFindWordEditField->SetFocus();
+ __pFindWordEditField->ShowKeypad();
+ }
}
}
else
{
- if (__pFindWordEditField)
- __pFindWordEditField->HideKeypad();
+ if (languageCode.CompareTo("ara") == 0)
+ {
+ if (__pFindWordEditFieldRightToLeft)
+ __pFindWordEditFieldRightToLeft->HideKeypad();
+ }
+ else
+ {
+ if (__pFindWordEditField)
+ __pFindWordEditField->HideKeypad();
+ }
}
RelayoutControls(false);
AppLog("Word not found");
//Show error notification to user
__pFindWordNext->SetEnabled(false);
- __pFindWordCountLabel->SetText(L"0/0");
+ if(__pFindWordCountLabel && __pFindWordCountLabel->GetShowState() == true)
+ {
+ __pFindWordCountLabel->SetText(L"0/0");
+ __pFindWordCountLabel->Invalidate(false);
+ }
+ else if(__pFindWordCountLabelRightToLeft && __pFindWordCountLabelRightToLeft->GetShowState() == true)
+ {
+ __pFindWordCountLabelRightToLeft->SetText(L"0/0");
+ __pFindWordCountLabelRightToLeft->Invalidate(false);
+ }
__pFindWordNext->Invalidate(false);
__pFindWordPrev->Invalidate(false);
- __pFindWordCountLabel->Invalidate(false);
+
return;
}
countStr.Append(__currentWordIndex);
countStr.Append(L"/");
countStr.Append(__maxOccurrances);
+ if (__pFindWordCountLabel && __pFindWordCountLabel->GetShowState() == true)
+ {
__pFindWordCountLabel->SetText(countStr);
- // __pFindWordCountLabel->SetShowState(true);
__pFindWordCountLabel->Invalidate(false);
-
+ __pFindWordCountLabel->Invalidate(false);
+ }
+ else if(__pFindWordCountLabelRightToLeft && __pFindWordCountLabelRightToLeft->GetShowState() == true)
+ {
+ __pFindWordCountLabelRightToLeft->SetText(countStr);
+ __pFindWordCountLabelRightToLeft->Invalidate(false);
+ __pFindWordCountLabelRightToLeft->Invalidate(false);
+ }
//FindNextWord(true);
//Update the controls
__pFindWordNext->Invalidate(false);
__pFindWordPrev->Invalidate(false);
- __pFindWordCountLabel->Invalidate(false);
+
}
void
countStr.Append(__currentWordIndex);
countStr.Append(L"/");
countStr.Append(__maxOccurrances);
+
+ if (__pFindWordCountLabel && __pFindWordCountLabel->GetShowState() == true)
+ {
__pFindWordCountLabel->SetText(countStr);
- // __pFindWordCountLabel->SetShowState(true);
__pFindWordCountLabel->Invalidate(false);
+ }
+ else if(__pFindWordCountLabelRightToLeft && __pFindWordCountLabelRightToLeft->GetShowState() == true)
+ {
+ __pFindWordCountLabelRightToLeft->SetText(countStr);
+ __pFindWordCountLabelRightToLeft->Invalidate(false);
+ }
+
if (__currentWordIndex >= __maxOccurrances)
{
__pFindWordNext->SetEnabled(false);
}
__pFindWordPrev->Invalidate(false);
__pFindWordNext->Invalidate(false);
- __pFindWordCountLabel->Invalidate(false);
+
__pFindWordControl->Invalidate(true);
}
__currentSearchStr = L"";
__currentWordIndex = 0;
__maxOccurrances = 0;
- __pFindWordEditField->SetText(L"");
+
+ if (__pFindWordPanelLeftToRight && __pFindWordPanelLeftToRight->GetShowState() == true)
+ {
+ __pFindWordEditField->SetText(L"");
+ __pFindWordEditField->HideKeypad();
+ __pFindWordControl->SetShowState(false);
+ __pFindWordCountLabel->SetText(L"0/0");
+ }
+ else if(__pFindWordPanelRightToLeft && __pFindWordPanelRightToLeft->GetShowState() == true)
+ {
+ __pFindWordEditFieldRightToLeft->SetText(L"");
+ __pFindWordEditFieldRightToLeft->HideKeypad();
+ __pFindWordControl->SetShowState(false);
+ __pFindWordCountLabelRightToLeft->SetText(L"0/0");
+ }
+
__pFindWordNext->SetEnabled(false);
__pFindWordPrev->SetEnabled(false);
- __pFindWordCountLabel->SetText(L"0/0");
+
__pWebViewer->SearchText(L"aaaabbbbcccc",true);
__pFindWordControl->SetShowState(false);
- __pFindWordEditField->HideKeypad();
}
if(__pAddressbar->GetShowState() == false)
{
}
}
+ if (__pFindWordBgLabelRightToLeft != null)
+ {
+ Bitmap *pBitmap = CommonUtil::GetNinepatchedBitmapN(IDB_FINDWORD_INPUT_FIELD_BG, __pFindWordBgLabelRightToLeft->GetWidth(), __pFindWordBgLabelRightToLeft->GetHeight());
+ if (pBitmap != null)
+ {
+ __pFindWordBgLabelRightToLeft->SetBackgroundBitmap(*pBitmap);
+ delete pBitmap;
+ }
+ }
+
if(__pMenu != null)
__pMenu->SetShowState(false);
if( GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
{
WebSetting settings = __pWebViewer->GetSetting();
settings.SetAutoFormDataShowEnabled(SettingPresentationModel::GetInstance()->IsRememberFormData());
+ __pWebViewer->SetSetting(settings);
}
}
else if(settingvalue == (int) REGISTRY_SETTING_REMEMBER_PASSWORD)
if (__pWebViewer)
{
WebSetting settings = __pWebViewer->GetSetting();
- settings.SetAutoFormDataShowEnabled(SettingPresentationModel::GetInstance()->IsRememberPassword());
+ settings.SetAutoLoginFormFillEnabled(SettingPresentationModel::GetInstance()->IsRememberPassword());
+ __pWebViewer->SetSetting(settings);
}
}
else if (settingvalue == (int) REGISTRY_SETTING_SHOW_SECURITY_WARNINGS)
__pFooterUrlField->SetKeypadActionEnabled(true);
}
}
- if (__pFindWordEditField != null)
+ if (__pFindWordEditField != null && __pFindWordEditField->GetShowState() == true)
{
__currentSearchStr = __pFindWordEditField->GetText();
+ if (__currentSearchStr.GetLength() > 0)
+ {
+ __pFindWordCountLabel->SetShowState(true);
+ }
+ else
+ {
+ __pFindWordCountLabel->SetShowState(false);
+ }
__pFindWordNext->SetEnabled(false);
__pFindWordPrev->SetEnabled(false);
__pFindWordNext->Invalidate(true);
__pFindWordCountLabel->SetText(L"0/0");
__pFindWordCountLabel->Invalidate(true);
}
+ else if (__pFindWordEditFieldRightToLeft != null && __pFindWordEditFieldRightToLeft->GetShowState() == true)
+ {
+ __currentSearchStr = __pFindWordEditFieldRightToLeft->GetText();
+ if (__currentSearchStr.GetLength() > 0)
+ {
+ __pFindWordCountLabelRightToLeft->SetShowState(true);
+ }
+ else
+ {
+ __pFindWordCountLabelRightToLeft->SetShowState(false);
+ }
+
+ __pFindWordNext->SetEnabled(false);
+ __pFindWordPrev->SetEnabled(false);
+ __pFindWordNext->Invalidate(true);
+ __pFindWordPrev->Invalidate(true);
+ __pFindWordCountLabelRightToLeft->SetText(L"0/0");
+ __pFindWordCountLabelRightToLeft->Invalidate(true);
+ }
AppLog("__currentSearchStr %ls",__currentSearchStr.GetPointer());
if (__currentSearchStr.GetLength() > 0)
{