private:
Tizen::Base::Collection::ArrayList* __pLanguageDataList;
+ Tizen::Base::String __previousSelectedLanguage;
};
#endif // _ST_LANGUAGE_FORM_H_
\ No newline at end of file
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
pItem->SetIndividualSelectionEnabled(pEditField, true);
- relativeLayout.SetMargin(*pEditField, Y_GROUP_ITEM_DEFAULT, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pEditField, Y_GROUP_ITEM_DEFAULT, 0, 0, 0);
relativeLayout.SetRelation(*pEditField, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pEditField, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
result
BluetoothForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_ST_BODY_BLUETOOTH"));
CreateFooter();
CreateTableView();
void
CertificateForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
{
- __pTableView->UpdateTableView();
+
}
void
result
CertificateUserForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_ST_BODY_USER_CERTIFICATES"));
CreateFooter();
result
CertificateUserUnInstallForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_ST_BODY_USER_CERTIFICATES"));
CreateFooter();
CreateTableView();
result
DateTimeForm::OnInitializing(void)
{
+ AppLogDebug("ENTER");
CreateHeader(ResourceManager::GetString(L"IDS_ST_BODY_DATE_AND_TIME"));
CreateTableView();
- AppLogDebug("ENTER");
-
return E_SUCCESS;
}
{
if (itemIndex == ID_ITEM_DATE_AND_TIME_TIME_ZONE)
{
+ __pTableView->CollapseGroup(ID_GROUP_DATE_AND_TIME_FORMAT_LIST);
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TIME_ZONE, SCENE_TRANSITION_ANIMATION_TYPE_LEFT));
}
else if (itemIndex == ID_ITEM_DATE_AND_TIME_DATE_AND_TIME)
void
DisplayForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
{
- if (previousSceneId == IDSCN_FONT)
- {
- return;
- }
__pTableView->UpdateTableView();
bool autoRotation = false;
pLabel = new (std::nothrow) Label();
pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+ pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(pLabel);
- relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, MAIN_RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, 0, 0, 0);
relativeLayout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
void
LocaleForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
{
+ AppLog("Enter");
Header* pHeader = GetHeader();
pHeader->SetTitleText(ResourceManager::GetString(L"IDS_ST_BODY_LANGUAGE_AND_KEYBOARD"));
#else
if (AppControl::FindAndStart(L"http://tizen.org/appcontrol/operation/setting/ime", null, null, null, null, null) == E_SUCCESS)
{
- SetFocus();
__isRunningAppControl = true;
}
#endif
pDateFormatter->ApplyPattern("HH:mm");
}
}
+ const wchar_t LRO = 0x202D; //Done changes for Nabi issue 48837 suggested by platform team
+ const wchar_t LRE = 0x202A;
+ const wchar_t PDF = 0x202C;
pDateFormatter->Format(dateTime, formattedString);
- formattedString = timeText + L" : " + formattedString;
+ formattedString = timeText + L" : " + LRE + formattedString + PDF;
groupText.Insert(L"\n" + formattedString, groupText.GetLength());
tmpText.Remove(0, tmpText.GetLength());
formattedString.Remove(0, formattedString.GetLength());
pNumberFormatter->Format(inputNumber, formattedString);
- groupText.Insert(L"\n" + numberText + L" : " + formattedString, groupText.GetLength());
+ groupText.Insert(L"\n" + numberText + L" : " + LRE + formattedString + PDF, groupText.GetLength());
tmpText.Remove(0, tmpText.GetLength());
tmpText.Insert(formattedString, tmpText.GetLength());
}
else
{
- formattedString = numberText + L" : " + formattedString;
+ formattedString = numberText + L" : " + LRE + formattedString + PDF;
tmpText.Remove(0, tmpText.GetLength());
tmpText.Insert(formattedString, tmpText.GetLength());
tempHeight = GetLineheight(tmpText, labelWidth, fontSize, lineCount, lineHeight);
CreateHeader(ResourceManager::GetString(L"IDS_ST_HEADER_DISPLAY_LANGUAGE"));
CreateTableView();
+ SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, __previousSelectedLanguage);
return SettingInfo::AddSettingEventListener(*this);
}
}
}
- if (SettingInfo::SetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, langCode) != E_SUCCESS)
+ if(langCode.CompareTo(__previousSelectedLanguage) != 0)
{
- AppLogDebug("set langCode[%ls] result[%s]", langCode.GetPointer(), GetErrorMessage(GetLastResult()));
+ if (SettingInfo::SetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, langCode) != E_SUCCESS)
+ {
+ AppLogDebug("set langCode[%ls] result[%s]", langCode.GetPointer(), GetErrorMessage(GetLastResult()));
+ }
+ }
+ else
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), null);
}
+
+ __previousSelectedLanguage = langCode;
}
void
result
LocationForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_ST_BODY_LOCATIONS"));
CreateFooter();
CreateTableView();
HelpContentsRect.y = (helpTitleRect.y + helpTitleRect.height);
HelpContentsRect.height = GetHeightForStringArea(itemHelp, bounds.width , fontSize) + H_TEXT_GAP;
- if ((count == ID_HELP_TEXT_NETWORK_POSITION) && (fontSize > FONT_MAIN_TEXT_SIZE_LARGE))
- {
- HelpContentsRect.height = GetHeightForStringArea(itemHelp, bounds.width + W_HUGE_SIZE_PORTRAIT_TEXT_GAP , fontSize) + H_TEXT_GAP;
- }
-
Label* pLabel = new (std::nothrow) Label();
pLabel->Construct(helpTitleRect, itemTitle);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
int fontSize = GetFontSize();
int itemHeight = GetHeightForStringArea(groupText, clientRect.width, fontSize) + H_TEXT_GAP;
- itemRect.height = itemHeight + H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
+ itemRect.height = itemHeight;
- pLabel->SetBounds(pLabel->GetX(), pLabel->GetY(), clientRect.width, itemHeight+H_GROUP_INDEX_HELP_TEXT_TOP_GAP);
+ pLabel->SetBounds(pLabel->GetX(), pLabel->GetY(), clientRect.width, itemHeight);
pItem->SetBounds(itemRect);
}
void
NfcForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
{
+ AppLog("Enter");
if (requestId == REFRESH_REQUEST_EVENT)
{
if (__pTableView)
{
- __pTableView->RefreshAllItems();
+ if (__pNfcPredefinedItemPresentationModelInstance == null)
+ {
+ __pNfcPredefinedItemPresentationModelInstance = NfcPredefinedItemPresentationModel::GetInstance();
+ }
+
+ if (__pNfcPredefinedItemPresentationModelInstance == null)
+ {
+ AppLogDebug("__pNfcPredefinedItemPresentationModelInstance == null");
+ return;
+ }
+
+ if (__pNfcPredefinedItemPresentationModelInstance != null)
+ {
+ __pNfcPredefinedItemPresentationModelInstance->InitReservedPushCandidatesList();
+ __pResevedPushCandidatesAppidList = __pNfcPredefinedItemPresentationModelInstance->GetAllListReservedPushCandidatesAppIdList();
+ if (__pResevedPushCandidatesAppidList != null)
+ {
+ if (__pResevedPushCandidatesAppidList->GetCount() > 0)
+ {
+ __isPredefinedItem = true;
+ }
+ else
+ {
+ __isPredefinedItem = false;
+ }
+ }
+ }
+ __pTableView->UpdateTableView();
bool nfcActivated = false;
if (__pNfcPresentationModelInstance != null)
{
result
ResetterSettingForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_ST_HEADER_RESET_SETTINGS"));
CreateFooter();
CreateTableView();
result
TimeZoneForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
Rectangle bounds = GetClientAreaBounds();
Rectangle searchbarBounds = bounds;
const int X_GROUP_INDEX_DEFAULT_LABEL = 0;
const int Y_GROUP_INDEX_DEFAULT_LABEL = 36;
-const int H_GROUP_ITEM_DEFAULT_LABEL = 114;
+const int H_GROUP_ITEM_DEFAULT_LABEL = 120;
const int W_GROUP_ITEM_DEFAULT_LABEL = 720;
const int X_GROUP_ITEM_DEFAULT_LABEL = 16;
const int Y_GROUP_ITEM_DEFAULT_LABEL = 0;
result
WallpaperImageSelectForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateFooter();
SetOrientationAutoMode();
return E_SUCCESS;
result
WifiApDetailForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_WIFI_HEADER_DETAILS"));
CreateTableView();
result
WifiDirectConnectionForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_WIFI_BUTTON_MULTI_CONNECT"));
CreateFooter();
CreateGroupText();
result
WifiDirectForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_ST_HEADER_WI_FI_DIRECT"));
CreateFooter();
CreateTableView();
result
WifiForm::OnInitializing(void)
{
- SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
CreateHeader(ResourceManager::GetString(L"IDS_ST_BODY_WI_FI"));
CreateFooter();
CreateTableView();