void
Addressbar::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction)
{
- AppLog("Addressbar::OnKeypadActionPerformed keypadAction %d",keypadAction);
+ AppLog("XYZ::Addressbar::OnKeypadActionPerformed keypadAction %d",keypadAction);
switch (keypadAction)
{
case KEYPAD_ACTION_GO:
// String state = L"";
// result r = DeviceManager::GetState(DEVICE_TYPE_KEYBOARD,state);
// AppLog("Device State %S error %s",state.GetPointer(),GetErrorMessage(r));
-
+ AppLog("XYZ::Addressbar::OnKeypadClosed");
if(__isKeyboardConnected == true)
{
return;
void
Addressbar::OnKeypadOpened(Tizen::Ui::Control& source)
{
+ AppLog("XYZ::Addressbar::OnKeypadOpened");
// String state = L"";
// result r = DeviceManager::GetState(DEVICE_TYPE_KEYBOARD,state);
// AppLog("Device State %S error %s",state.GetPointer(),GetErrorMessage(r));
void
Addressbar::OnKeypadWillOpen(Tizen::Ui::Control& source)
{
+ AppLog("XYZ::Addressbar::OnKeypadWillOpen");
if(__pListener != null)
{
__pListener->OnAddressBarKeypadWillOpen(*this);
{
//SetAddressbarMode(ADDRESSBAR_MODE_EDIT);
// SetAddressbarMode(__prevAddMode);
- AppLog("Focus:: Addressbar::OnFocusGained called");
+ AppLog("XYZ::Addressbar::OnFocusGained");
if(__pAddressbarUrlField != null)
{
__pAddressbarUrlField->SetCursorPosition(__pAddressbarUrlField->GetTextLength());
void
Addressbar::OnFocusLost(const Tizen::Ui::Control& source)
{
- AppLog("Focus::Addressbar::OnFocusLost");
+ AppLog("XYZ::Addressbar::OnFocusLost");
if(__pAddressbarUrlField)
{
String removedHttpUrl = RemoveHttpTextFromDisplayURL();
BookmarkListForm::OnSearchBarModeChanged(Tizen::Ui::Controls::SearchBar& source, Tizen::Ui::Controls::SearchBarMode mode)
{
result r = E_FAILURE;
+ AppLog("ABCD::BookmarkListForm::OnSearchBarModeChanged");
if (mode == SEARCH_BAR_MODE_NORMAL)
{
void
BookmarkListForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
{
- GetFooter()->SetShowState(false);
+ AppLog("ABCD::BookmarkListForm::OnKeypadWillOpen");
+
__pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
__pSearchListView->SetEnabled(false);
__pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), __pSearchListView->GetHeight()));
void
BookmarkListForm::OnKeypadOpened(Tizen::Ui::Control& source)
{
+ GetFooter()->SetShowState(false);
+ AppLog("ABCD::BookmarkListForm::OnKeypadOpened");
__pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
Invalidate(true);
}
void
BookmarkListForm::OnKeypadClosed(Tizen::Ui::Control& source)
{
+ AppLog("ABCD::BookmarkListForm::OnKeypadClosed");
AppLog("jahsjkdad %d",Clipboard::GetInstance()->IsPopupVisible());
if(Clipboard::GetInstance()->IsPopupVisible() == true)
{
{
case 1:
text.Append(L"Sun");
+ text.Append(L", ");
break;
case 2:
text.Append(L"Mon");
+ text.Append(L", ");
break;
case 3:
text.Append(L"Tue");
+ text.Append(L", ");
break;
case 4:
text.Append(L"Wed");
+ text.Append(L", ");
break;
case 5:
text.Append(L"Thu");
+ text.Append(L", ");
break;
case 6:
text.Append(L"Fri");
+ text.Append(L", ");
break;
case 7:
text.Append(L"Sat");
+ text.Append(L", ");
break;
default:
break;
}
- text.Append(L", ");
+
String month = L"";
Image* pImage = null;
pImage = new Image();
pImage->Construct();
+ if (__pFavIconData != null)
+ {
+ delete __pFavIconData;
+ __pFavIconData = null;
+ }
__pFavIconData = pImage->EncodeToBufferN(favIconImage,Tizen::Media::IMG_FORMAT_PNG);
__favIconWidth = favIconImage.GetWidth();
}
if (pBitmap != null)
{
- r = pItem->AddElement(Rectangle(16, 28, 72, 72), IDA_FORMAT_ICON, *pBitmap, null);
+ r = pItem->AddElement(Rectangle(16, 28,72, 72), IDA_FORMAT_ICON, *pBitmap, null);
delete pBitmap;
if (IsFailed(r))
{
{
return;
}
+
__pSearchListView->SetEnabled(true);
if(__pSearchBar != null)
__pGroupedListView->SetBounds(0, __pSearchBar->GetY() + __pSearchBar->GetHeight(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
}
else
{
- // added
- GetFooter()->SetShowState(false);
+
// __pSearchListView->SetEnabled(false);
r = __pSearchListView->SetShowState(true);
if (IsFailed(r))
monthValue.Append(CommonUtil::GetString(L"IDS_COM_BODY_JUL"));
break;
case AUGUST:
- monthValue.Append(CommonUtil::GetString(L"DS_COM_BODY_AUG"));
+ monthValue.Append(CommonUtil::GetString(L"IDS_COM_BODY_AUG"));
break;
case SEPTEMBER:
monthValue.Append(CommonUtil::GetString(L"IDS_COM_BODY_SEP"));
void
HistoryListForm::OnKeypadOpened(Control& source)
{
+ // this is added because some time footer is shown when key pad is opened, do not remove
+ GetFooter()->SetShowState(false);
+ GetFooter()->Invalidate(true);
__pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
}
pImage = new Image();
pImage->Construct();
- int __favIconWidth = favIconImage.GetWidth();
- int __favIconHeight = favIconImage.GetHeight();
-
Tizen::Base::ByteBuffer* pFavBuffer = pImage->EncodeToBufferN(favIconImage, IMG_FORMAT_PNG);
-
- history.SetFavIconBuffer(*pFavBuffer);
+ history.SetFavIconBitmap(favIconImage);
delete pImage;
{
result r = E_SUCCESS;
ContextMenuAnchorDirection direction = CONTEXT_MENU_ANCHOR_DIRECTION_AUTO;
- if(onlyPasteOption == true)
- return E_SUCCESS;
AppLog("MainForm::InitSelectTextContextMenu clicked on text");
if (__pImageMenu != null)
case IDA_FIND_TEXT__CLICKED:
{
OnAddressCancelledClicked(*__pAddressbar);
- __pFooterPanel->SetShowState(false);
+// __pFooterPanel->SetShowState(false);
AppLogDebug("MainForm::OnActionPerformed find word clicked");
__currentSearchStr.Clear();
__currentSearchStr.Append(__currentSelectedStr);
String nameElement = __pHitElementResult->GetAttributeValue(L"name");
AppLog("MainForm::IDA_PASTE_TEXT_CLICKED id is %ls",idElement.GetPointer());
// String 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; } } ";
- String 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; } } ";
+ String 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; } } ";//by hyunn.lee
+
if(idElement.GetLength() != 0)
{
script.Append("insertAtCursor('");
return;
}
}
+ if ( __pAddressbar != null && __pAddressbar->GetShowState() == true)
+ {
+ __pAddressbar->SetShowState(false);
+ OnAddressCancelledClicked(*__pAddressbar);
+ __pAddressbar->Invalidate(true);
+ }
Bitmap* pBitmap = FaviconManager::GetInstance()->GetDefaultFaviconN();
if(pBitmap != null)
{
void
MainForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
{
- AppLog("MainForm::OnKeypadWillOpen");
+ AppLog("XYZ::MainForm::OnKeypadWillOpen");
if (__pAddressbar != null)
{
OnAddressBarKeypadWillOpen(*__pAddressbar);
void
MainForm::OnKeypadOpened(Tizen::Ui::Control& source)
{
+ AppLog("XYZ::MainForm::OnKeypadOpened");
if(__pAddressbar != null)
{
OnAddressBarKeypadOpened(*__pAddressbar);
void
MainForm::OnKeypadClosed(Tizen::Ui::Control& source)
{
-
+ AppLog("XYZ::MainForm::OnKeypadClosed");
if (__pAddressbar != null)
{
AppLog("MainForm::OnFaviconReceived");
if (__pWebViewer != null && __pHistory != null)
{
- Bitmap* pFavIconBitmap = __pWebViewer->GetFaviconN();
-
HistoryPresentationModel::GetInstance()->UpdateHistoryFavIcon(*__pHistory, *(__pWebViewer->GetFaviconN()));
}
}
}
else
{
- delete tempPath;
+ // do not remove
+ if(tempPath != null)
+ {
+ delete tempPath;
+ }
AppLogDebug("Error occured: %s", GetErrorMessage(GetLastResult()));
}
Tizen::Web::Controls::WebNavigationType type)
{
// when load new page if find word panel is open its show state is false
- ShowFindWordPanel(false);
+ if(__pFindWordControl && __pFindWordControl->GetShowState() == true)
+ {
+ __currentSearchStr = L"";
+ __currentWordIndex = 0;
+ __maxOccurrances = 0;
+ __pFindWordEditField->SetText(L"");
+ __pFindWordNext->SetEnabled(false);
+ __pFindWordPrev->SetEnabled(false);
+ __pFindWordCountLabel->SetText(L"0/0");
+// __pWebViewer->SearchText(L"aaaabbbbcccc",true);
+ __pFindWordControl->SetShowState(false);
+ __pFindWordEditField->HideKeypad();
+ }
+
+// ShowFindWordPanel(false);
__pFooterPanel->Invalidate(true);
}
}
- if ( __pAddressbar != null && __pAddressbar->GetShowState() == true)
- {
- __pAddressbar->SetShowState(false);
- OnAddressCancelledClicked(*__pAddressbar);
- __pAddressbar->Invalidate(true);
- }
return false;
}
InitSelectTextContextMenu(currentPosition,true, true);
if(__pImageMenu)
{
-// __pImageMenu->SetShowState(true);
-// __pImageMenu->Show();
-// __pImageMenu->Invalidate(true);
+ __pImageMenu->SetShowState(true);
+ __pImageMenu->Show();
+ __pImageMenu->Invalidate(true);
}
}
__isLongPressedDone = true;
// share via message
StartMessageAppControl();
- Popup::SetShowState(false);
- Popup::Show();
+
}
break;
case 1:
// share via email
StartEmailAppControl();
- Popup::SetShowState(false);
- Popup::Show();
+
}
break;
default:
String ccVal = L"";
String bccKey = L"http://tizen.org/appcontrol/data/bcc";
String bccVal = L"";
+ String resultKey = L"http://tizen.org/appcontrol/data/return_result";
+ String resultVal = "true";
+
//String attachKey = L"attachments";
String attachKey = L"http://tizen.org/appcontrol/data/path";
extraData.Add(&toKey, &toVal);
extraData.Add(&ccKey, &ccVal);
extraData.Add(&bccKey, &bccVal);
+ extraData.Add(&resultKey, &resultVal);
if(attachVal.GetLength() > 0)
{
extraData.Add(&attachKey, pDataList);
String textVal;
String attachKey = L"http://tizen.org/appcontrol/data/path";
String attachVal;
+ String resultKey = L"http://tizen.org/appcontrol/data/return_result";
+ String resultVal = "true";
ArrayList* pDataList = null;
if (__pShareList != null)
// type is SMS , attach the text
extraData.Add(&textKey, &textVal);
}
-
+ extraData.Add(&resultKey, &resultVal);
AppControl* pAc = AppManager::FindAppControlN(L"tizen.messages", L"http://tizen.org/appcontrol/operation/compose");
if (pAc)
{
SharePopup::OnAppControlCompleted(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId, const Tizen::Base::Collection::IList* pResultList)
{
AppLog("InternetApp::OnForeground called");
- Frame* pCurrentFrame = null;
- pCurrentFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
- if (pCurrentFrame != null)
- {
- pCurrentFrame->SetEnabled(true);
- pCurrentFrame->Invalidate(true);
- }
}
void SharePopup::OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData)
{
AppLog("SharePopup::OnAppControlCompleteResponseReceived");
- Frame* pCurrentFrame = null;
- pCurrentFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
-
- if (pCurrentFrame != null)
- {
- pCurrentFrame->SetEnabled(true);
- pCurrentFrame->Invalidate(true);
- }
-
+ Popup::SetShowState(false);
+ Popup::Show();
}