#include <FBase.h>
#include <FUi.h>
#include "IntConfirmationPopup.h"
+#include "IntNotificationPanel.h"
class EditHistoryListForm
int __selectedCount;
int __fontSize;
ConfirmationPopup* __pConfirmationPopup;
+ NotificationPanel* __pNotification;
class GroupItemClass
:public Tizen::Base::Object
<text id="IDS_BR_BODY_PRINT">طباعة</text>
<text id="IDS_BR_BODY_SECURITY_CERTIFICATE_PROBLEM_MSG">توجد مشاكل في شهادة الأمان الخاصة بهذا الموقع</text>
<text id="IDS_COM_OPT_BRIGHTNESS">السطوع</text>
- <text id="IDS_BR_SK3_DELETE">؟مسح</text>
+ <text id="IDS_BR_SK3_DELETE">مسح؟</text>
<text id="IDS_BR_BODY_FONT_SIZE">حجم الخط</text>
<text id="IDS_BR_OPT_AUTO_DETECT">اكتشاف تلقائي</text>
<text id="IDS_BR_BODY_REMEMBER_FORM_DATA">تذكر بيانات النموذج</text>
<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="110" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_BR_SK_CANCEL"/>
<footerItem accessibilityHint="" actionId="109" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_BR_SK_DELETE_ABB"/>
</itemSet>
</Footer>
case IDA_FOOTER_ITEM1:
{
__pSearchBar->SetMode(SEARCH_BAR_MODE_NORMAL);
- GetHeader()->SetItemSelected(0);
- GetHeader()->Invalidate(true);
+// GetHeader()->SetItemSelected(0);
+// GetHeader()->Invalidate(true);
SceneManager* pSceneManager = SceneManager::GetInstance();
pBookMark = dynamic_cast< BookmarkData* >(__pData->GetAt(__selectedindex));
BookmarkListForm::OnSearchBarModeChanged(Tizen::Ui::Controls::SearchBar& source, Tizen::Ui::Controls::SearchBarMode mode)
{
result r = E_FAILURE;
- AppLog("ABCD::BookmarkListForm::OnSearchBarModeChanged");
+ AppLog("ABCD::BookmarkListForm::OnSearchBarModeChanged %d",GetClientAreaBounds().height);
if (mode == SEARCH_BAR_MODE_NORMAL)
{
__searchBookmark = false;
r = __pListview->UpdateList();
// __pSearchListView->SetBounds(0,0,GetClientAreaBounds().width,GetClientAreaBounds().height -__pSearchBar->GetHeight());
- __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), __pSearchListView->GetHeight()));
+ __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight()));
TryCatch( !IsFailed(r),,"BookmarkListForm::OnSearchBarModeChanged Update list failed %s",GetErrorMessage(r));
CATCH:return;
}
if(__pSearchBar)
{
- r = __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), __pSearchListView->GetHeight()));
+ AppLog("heightarea %d",GetClientAreaBounds().height - __pSearchBar->GetHeight());
+ r = __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight()));
__pSearchBar->SetText(L"");
}
__pListview->UpdateList();
BookmarkListForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
{
AppLog("ABCD::BookmarkListForm::OnKeypadWillOpen");
- GetFooter()->SetShowState(false);
+// GetFooter()->SetShowState(false);
__pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
__pSearchListView->SetEnabled(false);
__pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight()));
result r = E_FAILURE;
bool nextRowPresent = false;
int count = 0;
+ String tempURL = Url;
+ tempURL.Replace(L"'", L"''");
query.Append(L"SELECT COUNT(ID) FROM ");
query.Append(bookmarkTable);
query.Append(" WHERE ADDRESS = '");
- query.Append(Url);
- if(Url.EndsWith(L"/"))
+ query.Append(tempURL);
+ if(tempURL.EndsWith(L"/"))
{
query.Append("' OR ADDRESS = '");
String newUrl = L"";
- Url.SubString(0,Url.GetLength()-1 ,newUrl);
+ tempURL.SubString(0,tempURL.GetLength()-1 ,newUrl);
query.Append(newUrl);
}
else
{
query.Append("' OR ADDRESS = '");
- String newUrl = Url;
+ String newUrl = tempURL;
// Url.SubString(0,Url.GetLength()-1 ,newUrl);
newUrl.Append(L"/");
query.Append(newUrl);
{
exist = true ;
}
-
+ tempURL.Replace(L"''",L"'");
CATCH: return r;
}
}
}
- __pListview->UpdateList();
+// __pListview->UpdateList();
for (int count = 0;count < itemCount ;count++)
{
#include "IntEditHistoryListForm.h"
#include "IntFaviconManager.h"
#include "IntHistoryPresentationModel.h"
-#include "IntNotificationPanel.h"
#include "IntSceneRegister.h"
#include "IntTypes.h"
,__isNoHistoryPresent(true)
,__fontSize(44)
,__pConfirmationPopup(null)
+,__pNotification(null)
{
}
__pListView->UpdateList();
}
- NotificationPanel* pNotification = new (std::nothrow) NotificationPanel(*this);
+ __pNotification = new (std::nothrow) NotificationPanel(*this);
String notification = CommonUtil::GetString(L"IDS_BR_POP_DELETED");
- pNotification->SetText(notification);
- pNotification->ShowNotification();
+ __pNotification->SetText(notification);
+ __pNotification->ShowNotification();
if(__pConfirmationPopup)
{
delete __pConfirmationPopup;
ListItemBase*
EditHistoryListForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- AppLogDebug("EditHistoryListForm::CreateItem");
+ AppLogDebug("EditHistoryListForm::CreateItem groupIndex %d, itemIndex %d",groupIndex,itemIndex);
result r = E_FAILURE;
const int bookmarkBtnWidth = 64;
String bitmapId;
{
__pListView->UpdateList();
}
+
+ if(__pNotification)
+ __pNotification->SetShowState(false);
}
void
{
pCurrentForm->SendUserEvent(FORE_GROUND_APP_EVENT, NULL);
}
+ Frame* pCurrentFrame = null;
+ pCurrentFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
+
+ if (pCurrentFrame != null)
+ {
+ pCurrentFrame->SetEnabled(true);
+ pCurrentFrame->Invalidate(true);
+ }
if ( __isShowMsg == true )
{
- if(onlyPasteOption == false)
+ if(onlyPasteOption == false && __pHitElementResult->GetAttributeValue("type").Equals(L"password",false) == false)
{
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_COM_OPT_COPY"),IDA_COPY_TEXT_CLICKED);
}
{
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_COM_BODY_PASTE"),IDA_PASTE_TEXT_CLICKED);
}
- if(onlyPasteOption == false)
+ if(onlyPasteOption == false && __pHitElementResult->GetAttributeValue("type").Equals(L"password",false) == false)
{
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_FIND_ON_PAGE_ABB"),IDA_FIND_TEXT__CLICKED);
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_SHARE"),IDA_SHARE_TEXT_CLICKED);
String* pNameCount = __pWebViewer->EvaluateJavascriptN(str);
str.Clear();
- str = L"document.getElementsByName('";
- str.Append(nameElement);
+ str = L"document.getElementsByClassName('";
+ str.Append(classElement);
str.Append("').length");
String* pClassCount = __pWebViewer->EvaluateJavascriptN(str);
}
else if(idElement.GetLength() != 0)
{
- script = L"function insertAtCursor(myField, myValue) { if (document.selection) { document.getElementById(myField).focus(); sel = document.selection.createRange(); sel.text = myValue; } else if (document.getElementById(myField).selectionStart || document.getElementById(myField).selectionStart == '0'){ var startPos = document.getElementById(myField).selectionStart; var endPos = document.getElementById(myField).selectionEnd; document.getElementById(myField).value = document.getElementById(myField).value.substring(0, startPos)+ myValue + document.getElementById(myField).value.substring(endPos, document.getElementById(myField).value.length); } else { document.getElementById(myField).value += myValue; } } ";
- script.Append("insertAtCursor('");
- script.Append(idElement);
- script.Append("',");
+ script = L"function insertAtCursor(myField, myValue) { if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.text = myValue; } else if (myField.selectionStart || myField.selectionStart == '0'){ var startPos = myField.selectionStart; var endPos = myField.selectionEnd; myField.value = myField.value.substring(0, startPos)+ myValue + myField.value.substring(endPos, myField.value.length); } else { myField.value += myValue; } } ";
+ script.Append("insertAtCursor(");
+ script.Append(L"document.activeElement");
+ script.Append(",");
script.Append("\"");
script.Append(*pString);
script.Append("\");");
}
}
+ if(__pMostVisitedListView && __pMostVisitedListView->GetShowState() == true)
+ {
+ __pMostVisitedListView->UpdateList();
+ }
if (__pAddressbar != null && pArgs != null && (previousSceneId == IDSCN_BOOKMARK_VIEW || previousSceneId == IDSCN_HISTORY_LIST))
{
String* pBookmarkUrl = dynamic_cast< String* >(pArgs->GetAt(0));
{
AppLog("MainForm::OnWebPageBlockSelected show paste option");
- InitSelectTextContextMenuF(FloatPoint(endPoint.x,endPoint.y + __pWebViewer->GetY()),true);
+ InitSelectTextContextMenuF(FloatPoint(startPoint.x,startPoint.y + __pWebViewer->GetY()),true);
if(__pImageMenu)
{
__pImageMenu->SetShowState(true);
__currentSelectedStr.Clear();
__currentSelectedStr = __pHitElementResult->GetUrl();
}
- InitSelectTextContextMenuF(FloatPoint(endPoint.x,endPoint.y + __pWebViewer->GetY()),false);
+ InitSelectTextContextMenuF(FloatPoint(startPoint.x,startPoint.y + __pWebViewer->GetY()),false);
if(__pImageMenu)
{
__pImageMenu->SetShowState(true);
__pShareList->RemoveAll();
}
-
-
-
void
SharePopup::StartAppControl(int index)
{