virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
virtual Tizen::Ui::Controls::TableViewGroupItem* CreateGroupItem(int groupIndex, int itemWidth);
virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int groupIndex, int itemIndex, int itemWidth);
friend class IFlightModeSetValueAsyncResultListener;
};
-#endif // _ST_MAIN_MENU_FORM_H_
\ No newline at end of file
+#endif // _ST_MAIN_MENU_FORM_H_
tmpHeight = GetHeightForStringArea(groupText, itemWidth, fontSize);
itemHeight += tmpHeight;
- pDateFormatter->ApplyPattern("EEE, MMM dd, yyyy");
+ String localPattern;
+ if (SettingInfo::GetValue(L"http://tizen.org/setting/locale.date.format",localPattern) == E_SUCCESS)
+ {
+ pDateFormatter->ApplyPattern(localPattern);
+ }
+ else
+ {
+ pDateFormatter->ApplyPattern("EEE, MMM dd, yyyy");
+ }
pDateFormatter->Format(dateTime, formattedString);
formattedString = dateText + L" : " + formattedString;
groupText.Insert(L"\n" + formattedString, groupText.GetLength());
tempHeight = GetLineheight(groupText, labelWidth, fontSize, lineCount, lineHeight);
itemHeight += tempHeight;
- pDateFormatter->ApplyPattern("EEE, MMM dd, yyyy");
+ String localPattern;
+ if (SettingInfo::GetValue(L"http://tizen.org/setting/locale.date.format",localPattern) == E_SUCCESS)
+ {
+ pDateFormatter->ApplyPattern(localPattern);
+ }
+ else
+ {
+ pDateFormatter->ApplyPattern("EEE, MMM dd, yyyy");
+ }
pDateFormatter->Format(dateTime, formattedString);
formattedString = dateText + L" : " + formattedString;
groupText.Insert(L"\n" + formattedString, groupText.GetLength());
{
}
+void
+MainMenuForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ if (__isRunningAppControl)
+ {
+ AppLogDebug("busy status");
+ return;
+ }
+
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
+
int
MainMenuForm::GetGroupCount(void)
{