int ID;
bool isAppcontrolTriggered;
bool isJavascriptInitiated;
+ bool isFirstLaunch;
Tizen::Base::String pageTitle;
Tizen::Base::String pageUrl;
Tizen::Web::Controls::Web* pCurrentWeb;
<Header>
<property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="Add Bookmarks" titleTextColor=""/>
<itemSet>
- <buttonItem accessibilityHint="" actionId="102" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" position="BUTTON_POSITION_LEFT" pressedBGBitmapPath="" pressedIconPath="" style="BUTTON_ITEM_STYLE_TEXT" text="::IDS_COM_SK_SAVE" type="left"/>
- <buttonItem accessibilityHint="" actionId="103" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" position="BUTTON_POSITION_RIGHT" pressedBGBitmapPath="" pressedIconPath="" style="BUTTON_ITEM_STYLE_TEXT" text="::IDS_BR_SK_CANCEL" type="right"/>
+ <buttonItem accessibilityHint="" actionId="103" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" position="BUTTON_POSITION_LEFT" pressedBGBitmapPath="" pressedIconPath="" style="BUTTON_ITEM_STYLE_TEXT" text="::IDS_BR_SK_CANCEL" type="left"/>
+ <buttonItem accessibilityHint="" actionId="102" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" position="BUTTON_POSITION_RIGHT" pressedBGBitmapPath="" pressedIconPath="" style="BUTTON_ITEM_STYLE_TEXT" text="::IDS_COM_SK_SAVE" type="right"/>
</itemSet>
</Header>
<ScrollPanel id="IDC_SCROLLPANEL2" parent="IDL_ADD_BOOKMARK">
<Footer>
<property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
<itemSet>
+ <footerItem accessibilityHint="" actionId="110" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_COM_SK_CANCEL_A"/>
<footerItem accessibilityHint="" actionId="109" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_BR_SK_DELETE_ABB"/>
- <footerItem accessibilityHint="" actionId="110" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_BR_SK_CANCEL"/>
</itemSet>
</Footer>
<Header>
void
AddBookmarkForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
{
+ AppLog("AddBookmarkForm::OnListViewItemStateChanged listitemstatus %d for index",status,index);
if (__pEditFieldTitle != NULL)
{
__pEditFieldTitle->HideKeypad();
// To disable done button if either of the Title or Url field is empty
if (title.GetLength() == 0 || url.GetLength() == 0)
{
- pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+ pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
pHeader->Invalidate(true);
}
else
{
- pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+ pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
pHeader->Invalidate(true);
}
// To disable done button if either of the Title or Url field is empty
if (title.GetLength() == 0 || url.GetLength() == 0)
{
- pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+ pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
pHeader->Invalidate(true);
}
else
{
- pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+ pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
pHeader->Invalidate(true);
}
if(__selectedCount > 0)
{
- GetFooter()->SetItemEnabled(0, true);
+ GetFooter()->SetItemEnabled(1, true);
GetFooter()->Invalidate(true);
}
__selectedCount = 0;
__pSelectedLabel->Invalidate(true);
- GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->SetItemEnabled(1, false);
GetFooter()->Invalidate(true);
__pListView->Invalidate(true);
__pSelectAllCheck->SetSelected(false);
- GetFooter()->SetItemEnabled(0,false);
+ GetFooter()->SetItemEnabled(1,false);
GetFooter()->Invalidate(true);
//selectedText.Append(L"\x200E"); // LEFT-TO-RIGHT MARK
// selectedText.Append(L"(0)");
selectedText.Format(25, CommonUtil::GetString(L"IDS_BR_BODY_PD_ITEM_SELECTED").GetPointer() , __selectedCount);
__pSelectedLabel->SetText(selectedText);
__pSelectedLabel->Invalidate(true);
- GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->SetItemEnabled(1, false);
Invalidate(true);
}
if (__selectedCount == 0)
{
- GetFooter()->SetItemEnabled(0,false);
+ GetFooter()->SetItemEnabled(1,false);
}
else
{
- GetFooter()->SetItemEnabled(0,true);
+ GetFooter()->SetItemEnabled(1,true);
}
GetFooter()->Invalidate(true);
String fileName = UiApp::GetInstance()->GetAppRootPath() + "/data/Thumbnail";
result r = E_SUCCESS;
int keyValue = 1;
-// Directory::Create(fileName,true);
+ Directory::Create(fileName,true);
fileName.Append(L"/thumbnails");
r = pAppRegistry->Get(keyCount, keyValue);
LoadUrl(__pWindowInfo->pageUrl);
__pWindowInfo->isAppcontrolTriggered = false;
}
- else if (__pWindowInfo->isJavascriptInitiated == true)
+ else if (__pWindowInfo->isJavascriptInitiated == true && __pWindowInfo->isFirstLaunch == true)
{
+ __pWindowInfo->isFirstLaunch = false;
AppLog("Called");
InitWebControl();
__pWindowInfo->pCurrentWeb = __pWebViewer;
formID.Append(ID);
isAppcontrolTriggered = false;
isJavascriptInitiated = false;
+ isFirstLaunch = true;
faviconFilePath = "";
faviconUrl = "";
pageUrl = L"";