#include <FSystem.h>
#include <FUi.h>
+#include "IntMainFrame.h"
#include "IntMultipleWindowPresentationModel.h"
class InternetApp
private:
MultipleWindowPresentationModel* __pMultiWindowManager;
WindowInfo* __pNewWindowInfo;//the new window object to be created either by the normal launch of application or as an appcontrol launch
+ MainFrame* pSceneManagementFrame;
};
#endif // _INT_INTERNET_APP_H_
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" 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="96.0" x="0.0" y="0.0"/>
</Label>
<Button id="IDC_CLEAR_BUTTON" parent="IDC_BG_PANEL">
- <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="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_field_btn_Clear_Press.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <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="" highlightedBitmapPath="I01_field_btn_Clear_temp.png" 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="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_field_btn_Clear_Press.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="IDC_BG_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="true" 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_BG_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="568.0" y="0.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_BG_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="74.0" x="1122.0" y="0.0"/>
</Button>
__pAddressBackBtn->SetActionId(IDA_CANCEL);
__pAddressBackBtn->AddActionEventListener(*this);
__pAddressBackBtn->SetShowState(true);
+ __pAddressBackBtn->SetFocusable(true);
//IDC_ADDRESS_BACK_BUTTON
// Added to get the favorite url if not set then address bar is about blank
{
__pListener->OnAddressBarFocusGained(*this);
}
+ __isAppBackGround = false;
}
void
ConfirmationPopup::OnKeyReleased (Control &source, const KeyEventInfo &keyEventInfo)
{
AppLog("ConfirmationPopup::OnKeyReleased %d",keyEventInfo.GetKeyCode());
- if(keyEventInfo.GetKeyCode() == KEY_BACK)
+ if(keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
{
if(GetShowState() == true)
{
// __pGroupedListView->UpdateList();
// }
- result r = GetHeader()->SetItemSelected(2);
+ result r = GetHeader()->SetItemSelected(1);
if (IsFailed(r))
{
- AppLog("HistoryListForm::OnSceneActivatedN header failed %ls", GetErrorMessage(r));
+ AppLog("HistoryListForm::OnSceneActivatedN header failed %s", GetErrorMessage(r));
return;
}
query.Append(historyTable);
query.Append(L".TITLE LIKE '%");
query.Append(text);
- query.Append("% 'ESCAPE '/')");
+ query.Append("%'ESCAPE '/')");
query.Append(" OR ");
query.Append(L"(");
query.Append(historyTable);
const int MIN_MEMORY_NEEDED = 1048576;
InternetApp::InternetApp(void)
-: __pMultiWindowManager(NULL),__pNewWindowInfo(null)
+: __pMultiWindowManager(NULL),__pNewWindowInfo(null),pSceneManagementFrame(null)
{
}
// Create a Frame
- MainFrame* pSceneManagementFrame = new(std::nothrow) MainFrame();
+ pSceneManagementFrame = new(std::nothrow) MainFrame();
pSceneManagementFrame->Construct();
pSceneManagementFrame->SetName(L"SceneManagement");
AddFrame(*pSceneManagementFrame);
+ pSceneManagementFrame->Show();
// Goto the first scene.
SceneManager* pSceneManager = SceneManager::GetInstance();
urlData = *pUrl;
}
AppLog("URL received %ls", urlData.GetPointer());
+ if(pSceneManagementFrame)
+ pSceneManagementFrame->Show();
if (__pNewWindowInfo == null)
{
static const int WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE = 800;
static const int HEIGHT_CONTEXT_MENU_BUTTON = 72;
+static const wchar_t* APPCONTROL_OPERATION_ID_IMAGE_VIEWER = L"http://tizen.org/appcontrol/operation/view";
MainForm::MainForm(void)
{
__isLongPressedDone = false;
__pImageMenu->SetMaxVisibleItemsCount(4);
__pImageMenu->AddActionEventListener(*this);
SetControlAlwaysOnTop(*__pImageMenu, true);
+ __pImageMenu->SetFocusable(true);
CATCH: return r;
}
__pImageMenu->SetMaxVisibleItemsCount(3);
__pImageMenu->AddActionEventListener(*this);
SetControlAlwaysOnTop(*__pImageMenu, true);
+ __pImageMenu->SetFocusable(true);
CATCH: return r;
__pImageMenu->SetMaxVisibleItemsCount(3);
__pImageMenu->AddActionEventListener(*this);
SetControlAlwaysOnTop(*__pImageMenu, true);
+ __pImageMenu->SetFocusable(true);
CATCH: return r;
__pImageMenu->SetMaxVisibleItemsCount(3);
__pImageMenu->AddActionEventListener(*this);
SetControlAlwaysOnTop(*__pImageMenu, true);
+ __pImageMenu->SetFocusable(true);
CATCH: return r;
delete pBitmap;
}
}
+ if(__pAddressbar)
+ __pAddressbar->SetShowState(false);
+
+ if(__isKeypadOpened == false)
+ __pFooterPanel->SetShowState(true);
return r;
}
WindowInfo::pFormCanvasBitmap->Construct(*pCanvas,Rectangle(0,0,GetClientAreaBounds().width,GetClientAreaBounds().height - __pFooterPanel->GetHeight()));
delete pCanvas;
delete pWebCanvas;
+ if(__pAddressbar)
+ __pAddressbar->SetShowState(false);
AppLog("Coming here");
}
__pAddressbar->SetShowState(true);
__pAddressbar->SetAddressbarURLFocus();
}
+ if(__pFindWordControl && __pFindWordControl->GetShowState() == true)
+ {
+ __currentSearchStr = L"";
+ __currentWordIndex = 0;
+ __maxOccurrances = 0;
+
+ 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);
+
+ __pWebViewer->SearchText(L"aaaabbbbcccc",true);
+ __pFindWordControl->SetShowState(false);
+ }
RelayoutControls(false);
}
Tizen::Shell::NotificationManager notiMgr;
notiMgr.Construct();
- notiMgr.NotifyOngoingActivity(request);
-
+ notiMgr.Notify(request);
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
return;
}
delete pBitmap;
}
AppLogDebug("ONACTION_PERFORMED:IDA_MOREBTN_CLICKED end");
+ if(__pAddressbar)
+ __pAddressbar->SetShowState(false);
+ SetFocus();
+ __pFooterPanel->SetShowState(true);
result r = __pOptionMenu->SetShowState(true);
AppLog("ajsghd %s",GetErrorMessage(r));
__pOptionMenu->Invalidate(true);
__pConfirmationPopup->RemoveActionListener(*this);
__pConfirmationPopup->AddActionListener(*this);
__pConfirmationPopup->setMessage(closeWarning);
-// __pConfirmationPopup->Show();
+ __pConfirmationPopup->Show();
}
}
break;
SharePopup::OnKeyReleased (Control &source, const KeyEventInfo &keyEventInfo)
{
AppLog("ConfirmationPopup::OnKeyReleased %d",keyEventInfo.GetKeyCode());
- if(keyEventInfo.GetKeyCode() == KEY_BACK)
+ if(keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
{
if(GetShowState() == true)
{