void
BookmarkListForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
{
- GetFooter()->SetShowState(false);
+// GetFooter()->SetShowState(false);
__pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), __pSearchListView->GetHeight() + GetFooter()->GetHeight());
__pSearchListView->SetEnabled(false);
__pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), __pSearchListView->GetHeight()));
void
InternetApp::OnForeground(void)
{
- AppLog("InternetApp::OnForeground called");
- Frame* pCurrentFrame = null;
- pCurrentFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
- if (pCurrentFrame != null)
- {
- pCurrentFrame->SetEnabled(true);
- }
+
}
void
InternetApp::OnBackground(void)
{
- Frame* pCurrentFrame = null;
- pCurrentFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
-
- if (pCurrentFrame != null)
- {
- pCurrentFrame->SetEnabled(false);
- }
-
}
void
__pImageMenu = null;
}
- p.y = p.y + __pAddressbar->GetHeight() + 12;
- if (p.y < 100)
- {
- direction = CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD;
- }
- else
- {
- direction = CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD;
- }
+ p.y = p.y + __pAddressbar->GetHeight();
+// if (p.y < 100)
+// {
+// direction = CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD;
+// }
+// else
+// {
+// direction = CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD;
+// }
__pImageMenu = new (std::nothrow) ContextMenu();
r = __pImageMenu->Construct(p, CONTEXT_MENU_STYLE_LIST, direction);
TryCatch(!IsFailed(r),, "Context image menu creation failed with%s",GetErrorMessage(r));
}
-result MainForm::InitSelectTextContextMenu(Tizen::Graphics::Point p, bool pasteOption, bool onlyPasteOption = false)
+result
+MainForm::InitSelectTextContextMenu(Tizen::Graphics::Point p, bool pasteOption, bool onlyPasteOption = false)
{
result r = E_SUCCESS;
ContextMenuAnchorDirection direction = CONTEXT_MENU_ANCHOR_DIRECTION_AUTO;
__pFooterPanel->SetShowState(false);
__pWebViewer->SetBounds(Rectangle(0, 0,GetClientAreaBounds().width, GetClientAreaBounds().height));
}
+ if(__pImageMenu && __pImageMenu->GetShowState() == true)
+ {
+ __pImageMenu->SetAnchorPosition(Point(__pImageMenu->GetAnchorPosition().x/2,__pImageMenu->GetAnchorPosition().y/2));
+ AppLog("omgomgomg");
+ }
Invalidate(true);
}
{
case 0:
{
- Popup::SetShowState(false);
- Popup::Show();
+
// share via message
StartMessageAppControl();
+ Popup::SetShowState(false);
+ Popup::Show();
}
break;
case 1:
{
- Popup::SetShowState(false);
- Popup::Show();
+
// share via email
StartEmailAppControl();
+ Popup::SetShowState(false);
+ Popup::Show();
}
break;
default:
{
extraData.Add(&attachKey, pDataList);
}
+
AppControl* pAc = AppManager::FindAppControlN(L"tizen.email", L"http://tizen.org/appcontrol/operation/compose");
if (pAc)
{
// type is SMS , attach the text
extraData.Add(&textKey, &textVal);
}
+
AppControl* pAc = AppManager::FindAppControlN(L"tizen.messages", L"http://tizen.org/appcontrol/operation/compose");
if (pAc)
{
void
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);
+ }
}