class LocaleForm
: public BaseForm
+ , public Tizen::Ui::IFocusEventListener
{
public:
LocaleForm(void);
virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+ virtual void OnFocusGained(const Tizen::Ui::Control& source);
+ virtual void OnFocusLost(const Tizen::Ui::Control& source);
+
private:
void RefreshTableViewItem(void);
void RefreshTableViewGroupItem(int groupIndex);
private:
Tizen::Base::Collection::ArrayList* __languageDataList;
+ bool __isRunningAppControl;
};
#endif // _ST_LANGUAGE_AND_REGION_FORM_H_
\ No newline at end of file
break;
}
- Rectangle itemRectangle(X_GROUP_INDEX_DEFAULT_LABEL, yItemOffset, itemWidth, itemHeight);
+ Rectangle itemMainRectangle(X_GROUP_INDEX_DEFAULT_LABEL, yItemOffset, itemWidth, itemHeight);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pItem->AddControl(*pLabel);
pItem->SetEnabled(false);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
String batteryText;
- bool isTwoLineItemText = false;
+ bool isItemSubText = false;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- Rectangle itemRectangle;
- Rectangle itemRectSecondLabel;
- String itemText;
- String itemTextTwoLine;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
+ String itemMainText;
+ String itemSubText;
Label* pLabel = null;
int itemHeight = H_GROUP_ITEM_DEFAULT;
int fontSize = GetFontSize();
if (groupIndex == ID_GROUP_ABOUT_PHONE_MAIN)
{
- isTwoLineItemText = true;
- ItemTypeTwoLine(itemRectangle, itemRectSecondLabel, fontSize);
- itemHeight = (itemRectangle.height + itemRectSecondLabel.height);
+ isItemSubText = true;
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
switch (itemIndex)
{
case ID_ITEM_ABOUT_PHONE_MAIN_NAME:
{
- itemRectangle.x = 0;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_NAME");
+ itemMainRectangle.x = 0;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_NAME");
String phoneName;
if (SettingInfo::GetValue(SETTING_INFO_KEY_DEVICE_NAME, phoneName) != E_SUCCESS)
{
- itemTextTwoLine = L"Tizen";
+ itemSubText = L"Tizen";
}
else
{
- itemTextTwoLine.Append(phoneName);
+ itemSubText.Append(phoneName);
}
- ItemTypeOneLine(itemRectangle);
- itemRectangle.height = itemHeight;
- isTwoLineItemText = false;
+ ItemTypeOneLine(itemMainRectangle);
+ itemMainRectangle.height = itemHeight;
+ isItemSubText = false;
}
break;
SimInfo* pSimInfo = new (std::nothrow) SimInfo();
if (pSimInfo->Construct() == E_SUCCESS)
{
- itemTextTwoLine = pSimInfo->GetPhoneNumber();
+ itemSubText = pSimInfo->GetPhoneNumber();
- if (itemTextTwoLine.IsEmpty() == true)
+ if (itemSubText.IsEmpty() == true)
{
- itemTextTwoLine = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
}
}
else
{
- itemTextTwoLine = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
}
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MY_NUMBER");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MY_NUMBER");
delete pSimInfo;
}
break;
case ID_ITEM_ABOUT_PHONE_MAIN_MODEL:
{
- if (SystemInfo::GetValue(SYSTEM_INFO_KEY_MODELNAME, itemTextTwoLine) != E_SUCCESS)
+ if (SystemInfo::GetValue(SYSTEM_INFO_KEY_MODELNAME, itemSubText) != E_SUCCESS)
{
- itemTextTwoLine = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
AppLogDebug("GetValue Fail.. - %s", GetErrorMessage(GetLastResult()));
}
- itemText = ResourceManager::GetString(L"IDS_COM_BODY_MODEL");
+ itemMainText = ResourceManager::GetString(L"IDS_COM_BODY_MODEL");
}
break;
String getVersion;
if (SystemInfo::GetPlatformVersion(getVersion) == E_SUCCESS)
{
- itemTextTwoLine.Remove(0, itemTextTwoLine.GetLength());
- itemTextTwoLine.Insert(getVersion, itemTextTwoLine.GetLength());
+ itemSubText.Remove(0, itemSubText.GetLength());
+ itemSubText.Insert(getVersion, itemSubText.GetLength());
}
else
{
- itemTextTwoLine = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
}
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_VERSION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_VERSION");
}
break;
case ID_ITEM_ABOUT_PHONE_MAIN_BLUETOOTH:
{
bool EnableStatus = false;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_BLUETOOTH");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_BLUETOOTH");
if (SystemInfo::GetValue(SYSTEM_INFO_KEY_BLUETOOTH, EnableStatus) == E_SUCCESS)
{
BluetoothPresentationModel* pInstance = BluetoothPresentationModel::GetInstance();
if (EnableStatus == true && pInstance != null)
{
- itemTextTwoLine = pInstance->GetBluetoothLocalMacAddress();
+ itemSubText = pInstance->GetBluetoothLocalMacAddress();
}
}
- if (itemTextTwoLine.IsEmpty() == true)
+ if (itemSubText.IsEmpty() == true)
{
- itemTextTwoLine = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
}
}
break;
case ID_ITEM_ABOUT_PHONE_MAIN_WIFI:
{
bool EnableStatus = false;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_WI_FI");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_WI_FI");
if (SystemInfo::GetValue(SYSTEM_INFO_KEY_WIFI, EnableStatus) == E_SUCCESS)
{
WifiPresentationModel* pInstance = WifiPresentationModel::GetInstance();
if (EnableStatus == true && pInstance != null)
{
- itemTextTwoLine = pInstance->GetWifiMacAddress();
+ itemSubText = pInstance->GetWifiMacAddress();
}
}
- if (itemTextTwoLine.IsEmpty() == true)
+ if (itemSubText.IsEmpty() == true)
{
- itemTextTwoLine = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_HEADER_UNAVAILABLE");
}
}
break;
Battery::GetCurrentLevelInPercentage(batteryLevel);
batteryText.Format(DEFAULT_TEXT_SIZE, L"%d%%", batteryLevel);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_BATTERY");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_BATTERY");
}
break;
if (RuntimeInfo::GetValueAsync(RUNTIME_INFO_KEY_CPU_USAGE, __CpuUsageGetInfoResultListener))
{
- itemTextTwoLine = Integer::ToString(cpuUsage);
- itemTextTwoLine.Append(L"%");
+ itemSubText = Integer::ToString(cpuUsage);
+ itemSubText.Append(L"%");
}
else
{
AppLogDebug("Get Value Result [%s]", GetErrorMessage(GetLastResult()));
- itemTextTwoLine = L"0%";
+ itemSubText = L"0%";
}
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CPU_USAGE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CPU_USAGE");
}
break;
}
else
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CERTIFICATES");
- ItemTypeOneLine(itemRectangle);
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CERTIFICATES");
+ ItemTypeOneLine(itemMainRectangle);
}
RelativeLayout relativeLayout;
if ((groupIndex == ID_GROUP_ABOUT_PHONE_MAIN) && (itemIndex == ID_ITEM_ABOUT_PHONE_MAIN_NAME))
{
__pEditField = new (std::nothrow) EditField();
- __pEditField->Construct(itemRectangle, EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, LIMIT_EDITFIELD, GROUP_STYLE_NONE);
+ __pEditField->Construct(itemMainRectangle, EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, LIMIT_EDITFIELD, GROUP_STYLE_NONE);
__pEditField->SetGuideText(ResourceManager::GetString(L"IDS_ST_HEADER_DEVICE_NAME_ABB"));
- __pEditField->SetTitleText(itemText);
- __pEditField->SetText(itemTextTwoLine);
+ __pEditField->SetTitleText(itemMainText);
+ __pEditField->SetText(itemSubText);
__pEditField->SetTextSize(fontSize);
__pEditField->SetTitleTextColor(EDIT_STATUS_NORMAL, COLOR_HELP_TEXT_TYPE_01);
__pEditField->SetColor(EDIT_STATUS_NORMAL, COLOR_BG_GROUP_INDEX_DEFAULT);
else
{
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
relativeLayout.SetMargin(*pLabel, 0, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
- if (isTwoLineItemText == true)
+ if (isItemSubText == true)
{
if ((groupIndex == ID_GROUP_ABOUT_PHONE_MAIN) && (itemIndex == ID_ITEM_ABOUT_PHONE_MAIN_BATTERY))
{
- itemTextTwoLine = batteryText;
+ itemSubText = batteryText;
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectSecondLabel, itemTextTwoLine);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
int fontSize = GetFontSize();
String groupText;
Label* pLabel = null;
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pItem->AddControl(*pLabel);
pItem->SetEnabled(false);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, 0, 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);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
String fontReturnValue;
Label* pLabel = null;
int fontSize = GetFontSize();
int startGap = 0;
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
switch (groupIndex)
{
case ID_ITEM_SCREEN_READER:
{
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- itemText = ResourceManager::GetString(L"IDS_ST_MBODY_SCREEN_READER_HTTS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_MBODY_SCREEN_READER_HTTS");
}
break;
case ID_ITEM_RATE_SPEECH_RATE:
{
result r = E_FAILURE;
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SPEECH_RATE");
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SPEECH_RATE");
int ttsRate = 0;
{
case ID_ITEM_RATE_SPEECH_RATE_VERY_SLOW:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_VERY_SLOW");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_VERY_SLOW");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_SLOW:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_SLOW");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_SLOW");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_NORMAL:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_FAST:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_FAST");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_FAST");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_VERY_FAST:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_VERY_FAST");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_VERY_FAST");
}
break;
{
case ID_ITEM_RATE_SPEECH_RATE_VERY_SLOW:
{
- itemText = ResourceManager::GetString(L"IDS_ST_POP_VERY_SLOW");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_POP_VERY_SLOW");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_SLOW:
{
- itemText = ResourceManager::GetString(L"IDS_ST_POP_SLOW");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_POP_SLOW");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_NORMAL:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_FAST:
{
- itemText = ResourceManager::GetString(L"IDS_ST_POP_FAST");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_POP_FAST");
}
break;
case ID_ITEM_RATE_SPEECH_RATE_VERY_FAST:
{
- itemText = ResourceManager::GetString(L"IDS_ST_POP_VERY_FAST");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_POP_VERY_FAST");
}
break;
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
- if (secondLineText.IsEmpty() == false)
+ if (itemSubText.IsEmpty() == false)
{
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemSecondLineTextRect, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
{
result r = E_FAILURE;
Label* secondLine = static_cast<Label*>(pItem->GetControl(ID_ITEM_RATE_SPEECH_RATE));
- String secondLineText;
+ String itemSubText;
int ttsRate = 0;
{
case ID_ITEM_RATE_SPEECH_RATE_VERY_SLOW:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_VERY_SLOW");
- secondLine->SetText(secondLineText);
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_VERY_SLOW");
+ secondLine->SetText(itemSubText);
}
break;
case ID_ITEM_RATE_SPEECH_RATE_SLOW:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_SLOW");
- secondLine->SetText(secondLineText);
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_SLOW");
+ secondLine->SetText(itemSubText);
}
break;
case ID_ITEM_RATE_SPEECH_RATE_NORMAL:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
- secondLine->SetText(secondLineText);
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
+ secondLine->SetText(itemSubText);
}
break;
case ID_ITEM_RATE_SPEECH_RATE_FAST:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_FAST");
- secondLine->SetText(secondLineText);
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_FAST");
+ secondLine->SetText(itemSubText);
}
break;
case ID_ITEM_RATE_SPEECH_RATE_VERY_FAST:
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_POP_VERY_FAST");
- secondLine->SetText(secondLineText);
+ itemSubText = ResourceManager::GetString(L"IDS_ST_POP_VERY_FAST");
+ secondLine->SetText(itemSubText);
}
break;
int itemHeight = H_GROUP_INDEX_DEFAULT;
int yItemOffset = Y_GROUP_INDEX_DEFAULT;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String* groupText = null;
Node* pNode = null;
Label* pLabel = null;
__pGroupItemNodeList->GetAt(groupIndex, pNode);
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
itemHeight = H_GROUP_INDEX_DEFAULT;
- itemRectangle.y = H_GROUP_INDEX_TITLE_TEXT;
- itemRectangle.height = H_GROUP_INDEX_DEFAULT - H_GROUP_INDEX_TITLE_TEXT;
+ itemMainRectangle.y = H_GROUP_INDEX_TITLE_TEXT;
+ itemMainRectangle.height = H_GROUP_INDEX_DEFAULT - H_GROUP_INDEX_TITLE_TEXT;
groupText = pNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_TITLE);
if (groupText == null)
{
if (pNode->GetType().Equals(ID_APPSETTING_ITEM_TYPE_EXPAND_LIST, false))
{
- ItemTypeOneLine(itemRectangle);
- itemHeight = itemRectangle.height;
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
}
if ((pNode->GetType()).Equals(ID_APPSETTING_ITEM_TYPE_EXPAND_LIST, false))
pNode->RegisterObserverlistener(__pIOAppSetting);
- pItem->Construct(Dimension(itemRectangle.width, itemRectangle.height));
+ pItem->Construct(Dimension(itemMainRectangle.width, itemMainRectangle.height));
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
expendList.Append(groupText->GetPointer());
delete value;
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, expendList);
+ pLabel->Construct(itemMainRectangle, expendList);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
pLabel->SetName(pNode->GetId());
Label* pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, (*groupText).GetPointer());
+ pLabel->Construct(itemMainRectangle, (*groupText).GetPointer());
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
TableViewItem*
AppSettingForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
Label* pLabel = null;
String itemType;
String* itemText = null;
itemText = pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_TITLE);
itemType = pItemNode->GetType();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
if ((pItemNode->GetType()).Equals(ID_APPSETTING_ITEM_TYPE_BOOL, false))
{
RelativeLayout relativeLayout;
relativeLayout.Construct();
- pItem->Construct(relativeLayout, Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(relativeLayout, Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, (itemText)->GetPointer());
+ pLabel->Construct(itemMainRectangle, (itemText)->GetPointer());
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
pItemNode->RegisterObserverlistener(__pIOAppSetting);
- itemRectangle.width = (itemWidth - ITEM_WIDTH_GAP);
- itemRectangle.height = H_GROUP_ITEM_DEFAULT_SLIDER;
+ itemMainRectangle.width = (itemWidth - ITEM_WIDTH_GAP);
+ itemMainRectangle.height = H_GROUP_ITEM_DEFAULT_SLIDER;
RelativeLayout relativeLayout;
relativeLayout.Construct();
- pItem->Construct(relativeLayout, Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(relativeLayout, Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
String* minValueString = pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_MIN);
Integer::Parse((*setValueString).GetPointer(), setValue);
pSlider = new (std::nothrow) Slider();
- result r = pSlider->Construct(itemRectangle, BACKGROUND_STYLE_NONE, true, minValue, maxValue);
+ result r = pSlider->Construct(itemMainRectangle, BACKGROUND_STYLE_NONE, true, minValue, maxValue);
if (IsFailed(r))
{
delete minValueString;
}
else if ((pItemNode->GetType()).Equals(ID_APPSETTING_ITEM_TYPE_STRING, false))
{
- itemRectangle.x = 0;
+ itemMainRectangle.x = 0;
int stringLengthMin = 0;
int stringLengthMax = 0;
RelativeLayout relativeLayout;
relativeLayout.Construct();
- pItem->Construct(relativeLayout, Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(relativeLayout, Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pItemNode->RegisterObserverlistener(__pIOAppSetting);
EditField* pEditField = new (std::nothrow) EditField();
String* secondLine = pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_VALUE);
- itemRectangle.x = X_GROUP_DEFAULT;
- pEditField->Construct(itemRectangle, EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, stringLengthMax, GROUP_STYLE_NONE);
+ itemMainRectangle.x = X_GROUP_DEFAULT;
+ pEditField->Construct(itemMainRectangle, EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, stringLengthMax, GROUP_STYLE_NONE);
pEditField->SetGuideText((*itemText).GetPointer());
pEditField->SetTitleText((*itemText).GetPointer());
pEditField->SetText((*secondLine).GetPointer());
}
else if ((pItemNode->GetType()).Equals(ID_APPSETTING_ITEM_TYPE_LABEL, false))
{
- pItem->Construct(Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, (itemText)->GetPointer());
+ pLabel->Construct(itemMainRectangle, (itemText)->GetPointer());
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
pItemNode->RegisterObserverlistener(__pIOAppSetting);
- pItem->Construct(Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
expendList.Append(itemText->GetPointer());
delete value;
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, expendList);
+ pLabel->Construct(itemMainRectangle, expendList);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
pLabel->SetName(pItemNode->GetId());
RelativeLayout relativeLayout;
relativeLayout.Construct();
- pItem->Construct(relativeLayout, Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(relativeLayout, Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_LISTITEM);
Node* parent = pItemNode->GetParent();
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, (itemText)->GetPointer());
+ pLabel->Construct(itemMainRectangle, (itemText)->GetPointer());
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
else if ((pItemNode->GetType()).Equals(ID_APPSETTING_ITEM_TYPE_SEPARATOR, false))
{
Bitmap* pBitmap = ResourceManager::GetBitmapN(IDB_SEPARATOR);
- itemRectangle.height = H_GROUP_INDEX_NO_TITLE_DEFAULT;
+ itemMainRectangle.height = H_GROUP_INDEX_NO_TITLE_DEFAULT;
if (pBitmap == null)
{
RelativeLayout relativeLayout;
relativeLayout.Construct();
- pItem->Construct(relativeLayout, Dimension(itemWidth, itemRectangle.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+ pItem->Construct(relativeLayout, Dimension(itemWidth, itemMainRectangle.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, L" ");
+ pLabel->Construct(itemMainRectangle, L" ");
pLabel->SetBackgroundBitmap(*pBitmap);
pItem->AddControl(*pLabel);
TableViewItem*
BluetoothDetailForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- bool isTwoLineItemText = false;
+ bool isItemSubText = false;
int itemHeight = H_GROUP_ITEM_DEFAULT;
- Rectangle itemRectangle;
- Rectangle itemRectSecondLabel;
- String itemText;
- String itemTextTwoLine;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
+ String itemMainText;
+ String itemSubText;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
{
case BLUETOOTH_DETAIL_STATUS_GROUP_ITEM_DEVICE_NAME:
{
- itemText = ResourceManager::GetString(L"IDS_ST_HEADER_DEVICE_NAME_ABB");
- itemTextTwoLine =__pBluetoothPresentationModelInstance->GetPairedDeviceNameAt(__pairedDeviceIndex);
- isTwoLineItemText = true;
- ItemTypeTwoLine(itemRectangle, itemRectSecondLabel, fontSize);
- itemHeight = (itemRectangle.height + itemRectSecondLabel.height);
+ itemMainText = ResourceManager::GetString(L"IDS_ST_HEADER_DEVICE_NAME_ABB");
+ itemSubText =__pBluetoothPresentationModelInstance->GetPairedDeviceNameAt(__pairedDeviceIndex);
+ isItemSubText = true;
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
}
break;
case BLUETOOTH_DETAIL_STATUS_GROUP_ITEM_UNPAIR:
{
- itemText = ResourceManager::GetString(L"IDS_BT_BUTTON_UNPAIR");
- ItemTypeOneLine(itemRectangle);
+ itemMainText = ResourceManager::GetString(L"IDS_BT_BUTTON_UNPAIR");
+ ItemTypeOneLine(itemMainRectangle);
}
break;
return pItem;
}
- r = pLabel->Construct(itemRectangle, itemText);
+ r = pLabel->Construct(itemMainRectangle, itemMainText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
relativeLayout.SetMargin(*pLabel, 0, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
- if (isTwoLineItemText)
+ if (isItemSubText)
{
Label* pSecondLabel = new (std::nothrow) Label();
if (pSecondLabel == null)
return pItem;
}
- r = pSecondLabel->Construct(itemRectSecondLabel, itemTextTwoLine);
+ r = pSecondLabel->Construct(itemSubRectangle, itemSubText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
AppLogDebug("CreateItem group[%d] index[%d]", groupIndex, itemIndex);
int brightness = 0;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
Slider* pSlider = null;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
switch (itemIndex)
{
case ID_ITEM_BRIGHTNESS_AUTOMATIC:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_AUTOMATIC");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_AUTOMATIC");
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
case ID_ITEM_BRIGHTNESS_SLIDE_BAR:
{
- itemRectangle.width = W_GROUP_ITEM_DEFAULT_SLIDER;
- itemRectangle.height = H_GROUP_ITEM_DEFAULT_SLIDER;
+ itemMainRectangle.width = W_GROUP_ITEM_DEFAULT_SLIDER;
+ itemMainRectangle.height = H_GROUP_ITEM_DEFAULT_SLIDER;
RelativeLayout relativeLayout;
relativeLayout.Construct();
}
pSlider = new (std::nothrow) Slider();
- pSlider->Construct(itemRectangle, BACKGROUND_STYLE_NONE, true, GROUP_ITEM_SLIDER_MIN_VALUE, GROUP_ITEM_SLIDER_MAX_VALUE);
+ pSlider->Construct(itemMainRectangle, BACKGROUND_STYLE_NONE, true, GROUP_ITEM_SLIDER_MIN_VALUE, GROUP_ITEM_SLIDER_MAX_VALUE);
pSlider->SetValue(brightness);
- pSlider->SetPosition(itemRectangle.x, itemRectangle.y + Y_GROUP_ITEM_SLIDER);
+ pSlider->SetPosition(itemMainRectangle.x, itemMainRectangle.y + Y_GROUP_ITEM_SLIDER);
pSlider->AddAdjustmentEventListener(*this);
pSlider->AddSliderEventListener(*this);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pItem->AddControl(*pLabel);
pItem->SetEnabled(false);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
Tizen::Ui::Controls::TableViewItem*
CertificateDetailForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
- Rectangle itemRectSecondLabel;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String itemSecondText;
+ String itemMainText;
+ String itemSubText;
int fontSize = GetFontSize();
- ItemTypeTwoLine(itemRectangle, itemRectSecondLabel, fontSize);
- int itemHeight = (itemRectangle.height + itemRectSecondLabel.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ int itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
switch (itemIndex)
{
case CERTIFICATE_DETAIL_ITEM_OWNER_COMMON_NAME:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_OWNER_C");
- itemText.Remove(itemText.GetLength() - OWNER_TEXT_RESIZE, OWNER_TEXT_RESIZE);
- itemText.Append(L"/");
- itemText.Append(ResourceManager::GetString(L"IDS_ST_BODY_COMMON_NAME_C"));
- itemSecondText = CertificatePresentationModelUtility::GetCommonName(__pX509Certificate->GetSubject());
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_OWNER_C");
+ itemMainText.Remove(itemMainText.GetLength() - OWNER_TEXT_RESIZE, OWNER_TEXT_RESIZE);
+ itemMainText.Append(L"/");
+ itemMainText.Append(ResourceManager::GetString(L"IDS_ST_BODY_COMMON_NAME_C"));
+ itemSubText = CertificatePresentationModelUtility::GetCommonName(__pX509Certificate->GetSubject());
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetCommonName failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetSubject());
+ itemSubText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetSubject());
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetOrganisation failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
}
case CERTIFICATE_DETAIL_ITEM_OWNER_ORGANISATION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_ORGANISATION_C");
- itemSecondText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetSubject());
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_ORGANISATION_C");
+ itemSubText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetSubject());
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetOrganisation failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
break;
case CERTIFICATE_DETAIL_ITEM_ISSUER_COMMON_NAME:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_ISSUER");
- itemText.Append(L"/");
- itemText.Append(ResourceManager::GetString(L"IDS_ST_BODY_COMMON_NAME_C"));
- itemSecondText = CertificatePresentationModelUtility::GetCommonName(__pX509Certificate->GetIssuer());
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_ISSUER");
+ itemMainText.Append(L"/");
+ itemMainText.Append(ResourceManager::GetString(L"IDS_ST_BODY_COMMON_NAME_C"));
+ itemSubText = CertificatePresentationModelUtility::GetCommonName(__pX509Certificate->GetIssuer());
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetCommonName failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetIssuer());
+ itemSubText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetIssuer());
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetOrganisation failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
}
case CERTIFICATE_DETAIL_ITEM_ISSUER_ORGANISATION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_ORGANISATION_C");
- itemSecondText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetIssuer());
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_ORGANISATION_C");
+ itemSubText = CertificatePresentationModelUtility::GetOrganisation(__pX509Certificate->GetIssuer());
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetOrganisation failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
break;
case CERTIFICATE_DETAIL_ITEM_CERTIFICATE_INFORMATION_VERSION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CERTIFICATE_INFORMATION");
- itemText.Append(L"/");
- itemText.Append(ResourceManager::GetString(L"IDS_ST_BODY_VERSION"));
- itemText.Append(L":");
- itemSecondText = Integer::ToString(__pX509Certificate->GetSpecVersion());
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CERTIFICATE_INFORMATION");
+ itemMainText.Append(L"/");
+ itemMainText.Append(ResourceManager::GetString(L"IDS_ST_BODY_VERSION"));
+ itemMainText.Append(L":");
+ itemSubText = Integer::ToString(__pX509Certificate->GetSpecVersion());
}
break;
case CERTIFICATE_DETAIL_ITEM_VALID_FROM:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_VALID_FROM");
- itemText.Append(L":");
- itemSecondText = __pX509Certificate->GetNotBefore();
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_VALID_FROM");
+ itemMainText.Append(L":");
+ itemSubText = __pX509Certificate->GetNotBefore();
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetNotBefore failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
break;
case CERTIFICATE_DETAIL_ITEM_VALID_TO:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_VALID_TO_C");
- itemSecondText = __pX509Certificate->GetNotAfter();
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_VALID_TO_C");
+ itemSubText = __pX509Certificate->GetNotAfter();
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetNotAfter failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
break;
case CERTIFICATE_DETAIL_ITEM_SERIAL_NUMBER:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SERIAL_NUMBER");
- itemText.Append(L":");
- itemSecondText = __pX509Certificate->GetSerialNumber();
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SERIAL_NUMBER");
+ itemMainText.Append(L":");
+ itemSubText = __pX509Certificate->GetSerialNumber();
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetSerialNumber failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
break;
case CERTIFICATE_DETAIL_ITEM_SIGNATURE_ALGORITHM:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SIGNATURE_ALGORITHM");
- itemText.Append(L":");
- itemSecondText = __pX509Certificate->GetSignatureAlgorithm();
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SIGNATURE_ALGORITHM");
+ itemMainText.Append(L":");
+ itemSubText = __pX509Certificate->GetSignatureAlgorithm();
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetSignatureAlgorithm failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
}
break;
case CERTIFICATE_DETAIL_ITEM_PUBLIC_KEY:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_PUBLIC_KEY_C");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_PUBLIC_KEY_C");
IPublicKey* publicKey = __pX509Certificate->GetPublicKeyN();
- itemSecondText = CertificatePresentationModelUtility::GetHexPublicKeyString(*publicKey);
+ itemSubText = CertificatePresentationModelUtility::GetHexPublicKeyString(*publicKey);
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetHexPublicKeyString failed(%s)", GetErrorMessage(GetLastResult()));
- itemSecondText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_NO_DATA");
}
delete publicKey;
- itemRectSecondLabel.width = itemWidth;
- itemRectSecondLabel.height = GetHeightForStringArea(itemSecondText, itemRectSecondLabel.width, H_GROUP_INDEX_TEXT_GAP);
- itemHeight = (itemRectangle.height + itemRectSecondLabel.height);
+ itemSubRectangle.width = itemWidth;
+ itemSubRectangle.height = GetHeightForStringArea(itemSubText, itemSubRectangle.width, H_GROUP_INDEX_TEXT_GAP);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
}
break;
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
Label* pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
Label* pSecondLabel = new (std::nothrow) Label();
- result r = pSecondLabel->Construct(itemRectSecondLabel, itemSecondText);
+ result r = pSecondLabel->Construct(itemSubRectangle, itemSubText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
Rectangle clientRect = GetClientAreaBounds();
Rectangle itemRect = pItem->GetBounds();
- Rectangle itemRectangle;
- Rectangle itemRectSecondLabel;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
int fontSize = GetFontSize();
String groupText = pSecondLabel->GetText();
- ItemTypeTwoLine(itemRectangle, itemRectSecondLabel, fontSize);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
int itemHeight = GetHeightForStringArea(groupText, clientRect.width, H_GROUP_INDEX_TEXT_GAP);
- itemRect.height = (itemRectangle.height + itemHeight);
+ itemRect.height = (itemMainRectangle.height + itemHeight);
- pSecondLabel->SetBounds(clientRect.x, itemRectangle.height, clientRect.width, itemHeight);
+ pSecondLabel->SetBounds(clientRect.x, itemMainRectangle.height, clientRect.width, itemHeight);
pItem->SetBounds(itemRect);
}
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_GROUP_TITLE_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
{
case ID_ITEM_TRUSTED_ROOT_CERTIFICATES:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_TRUSTED_ROOT_CERTIFICATES");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_TRUSTED_ROOT_CERTIFICATES");
}
break;
case ID_ITEM_USER_CERTIFICATES:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_USER_CERTIFICATES");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_USER_CERTIFICATES");
}
break;
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
pItem->Construct(Dimension(itemWidth, itemHeight));
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
CertificateTrustedRootForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
AppLogDebug("GroupIndex %d, ItemIndex %d, ItemWidth %d", groupIndex, itemIndex, itemWidth);
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
int fontSize = GetFontSize();
- String itemText = L"";
+ String itemMainText = L"";
if (__pCertificatePresentationModelInstance != null)
{
- itemText = CertificatePresentationModelUtility::GetCommonName(
+ itemMainText = CertificatePresentationModelUtility::GetCommonName(
__pCertificatePresentationModelInstance->GetSubjectNameFromCertifcateStore(itemIndex));
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetCommonName failed(%s)", GetErrorMessage(GetLastResult()));
- itemText = CertificatePresentationModelUtility::GetOrganisation(
+ itemMainText = CertificatePresentationModelUtility::GetOrganisation(
__pCertificatePresentationModelInstance->GetSubjectNameFromCertifcateStore(itemIndex));
if (IsFailed(GetLastResult()))
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
Label* pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
TableViewItem*
CertificateUserForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
- Rectangle itemRectSecondLabel;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
String itemText = CertificatePresentationModelUtility::GetCommonName(
TableViewItem* pItem = new (std::nothrow) TableViewItem();
int fontSize = GetFontSize();
- ItemTypeTwoLine(itemRectangle, itemRectSecondLabel, fontSize);
- int itemHeight = (itemRectangle.height + itemRectSecondLabel.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ int itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
Label* pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
Label* pSecondLabel = new (std::nothrow) Label();
- result r = pSecondLabel->Construct(itemRectSecondLabel, itemSecondText);
+ result r = pSecondLabel->Construct(itemSubRectangle, itemSecondText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
TableViewItem*
CertificateUserInstallForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
int fontSize = GetFontSize();
- String itemText = __pCertificatePresentationModelInstance->GetFileNameInFoundUserCertificateToInstallListAt(itemIndex);
+ String itemMainText = __pCertificatePresentationModelInstance->GetFileNameInFoundUserCertificateToInstallListAt(itemIndex);
if (IsFailed(GetLastResult()))
{
AppLogDebug("GetFileNameInFoundUserCertificateToInstallListAt failed(%s)", GetErrorMessage(GetLastResult()));
}
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
Label* pLabel = new (std::nothrow) Label();
- r = pLabel->Construct(itemRectangle, itemText);
+ r = pLabel->Construct(itemMainRectangle, itemMainText);
if (IsFailed(r))
{
AppLogDebug("Construct failed(%s)", GetErrorMessage(r));
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText = ResourceManager::GetString(L"IDS_WIFI_BODY_ENTER_PASSWORD");
Label* pLabel = null;
yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
itemHeight = H_GROUP_INDEX_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_GROUP_TITLE_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
TableViewItem*
CertificateUserInstallPasswordForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
Button* pButton = null;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String itemSecondText;
-
int fontSize = GetFontSize();
- ItemTypeOneLine(itemRectangle);
- int itemHeight = (itemRectangle.height);
+ ItemTypeOneLine(itemMainRectangle);
+ int itemHeight = (itemMainRectangle.height);
- itemRectangle.width = (itemWidth - W_ITEM_RESIZE_GAP);
+ itemMainRectangle.width = (itemWidth - W_ITEM_RESIZE_GAP);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
case ID_ITEM_INSTALL_PASSWORD_INPUT:
{
__pEditField = new (std::nothrow) EditField();
- __pEditField->Construct(itemRectangle, EDIT_FIELD_STYLE_PASSWORD, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_NONE, false, LIMIT_EDITFIELD, GROUP_STYLE_SINGLE);
+ __pEditField->Construct(itemMainRectangle, EDIT_FIELD_STYLE_PASSWORD, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_NONE, false, LIMIT_EDITFIELD, GROUP_STYLE_SINGLE);
__pEditField->SetTextSize(fontSize);
__pEditField->SetTitleTextColor(EDIT_STATUS_NORMAL, COLOR_HELP_TEXT_TYPE_01);
__pEditField->SetColor(EDIT_STATUS_NORMAL, COLOR_BG_GROUP_INDEX_DEFAULT);
case ID_ITEM_INSTALL_PASSWORD_OK:
{
pButton = new (std::nothrow) Button();
- pButton->Construct(itemRectangle, ResourceManager::GetString(L"IDS_ST_BUTTON_OK"));
+ pButton->Construct(itemMainRectangle, ResourceManager::GetString(L"IDS_ST_BUTTON_OK"));
pButton->SetActionId(IDA_PASSWORD_BUTTON_OK);
pButton->AddActionEventListener(*this);
case ID_ITEM_INSTALL_PASSWORD_CANCEL:
{
pButton = new (std::nothrow) Button();
- pButton->Construct(itemRectangle, ResourceManager::GetString(L"IDS_ST_BODY_CANCEL"));
+ pButton->Construct(itemMainRectangle, ResourceManager::GetString(L"IDS_ST_BODY_CANCEL"));
pButton->SetActionId(IDA_PASSWORD_BUTTON_CANCEL);
pButton->AddActionEventListener(*this);
TableViewItem*
CertificateUserUnInstallForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_MARK;
int fontSize = GetFontSize();
- String itemText = CertificatePresentationModelUtility::GetCommonName(
+ String itemMainText = CertificatePresentationModelUtility::GetCommonName(
__pCertificatePresentationModelInstance->GetSubjectNameFromCertifcateStore(itemIndex));
if (IsFailed(GetLastResult()))
{
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
Label* pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->Construct(relativeLayout, Dimension(itemWidth, itemHeight));
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_GROUP_TITLE_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
bool isSecondLine = false;
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
String key;
String Value;
Label* pLabel = null;
int itemHeight = H_GROUP_ITEM_DEFAULT;
int fontSize = GetFontSize();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
switch (groupIndex)
{
bool automaticUpdate = false;
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_AUTOMATIC_UPDATE");
- itemRectangle.width -= W_RESIZE_LABEL_GAP;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_AUTOMATIC_UPDATE");
+ itemMainRectangle.width -= W_RESIZE_LABEL_GAP;
if (SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_UPDATE_AUTO, automaticUpdate) == E_SUCCESS)
{
{
case ID_ITEM_DATE_AND_TIME_TIME_ZONE:
{
- secondLineText = timeZone.GetId();
- secondLineText.IndexOf(L"/", 0, slashIndex);
- secondLineText.Remove(0, slashIndex + NEXT_INDEX);
+ itemSubText = timeZone.GetId();
+ itemSubText.IndexOf(L"/", 0, slashIndex);
+ itemSubText.Remove(0, slashIndex + NEXT_INDEX);
if (rawOffset > 0)
{
- secondLineText.Insert(L", GMT +", secondLineText.GetLength());
+ itemSubText.Insert(L", GMT +", itemSubText.GetLength());
}
else
{
- secondLineText.Insert(L", GMT ", secondLineText.GetLength());
+ itemSubText.Insert(L", GMT ", itemSubText.GetLength());
}
- secondLineText.Insert((rawOffset / SIXTY_MINUTES_TO_HOUR), (secondLineText.GetLength()));
+ itemSubText.Insert((rawOffset / SIXTY_MINUTES_TO_HOUR), (itemSubText.GetLength()));
int minutes = rawOffset % SIXTY_MINUTES_TO_HOUR;
if (minutes != 0)
{
if (minutes < 0)
{
minusMinutes -= (minusMinutes + minutes);
- secondLineText.Insert(L":", secondLineText.GetLength());
- secondLineText.Insert((minusMinutes), (secondLineText.GetLength()));
+ itemSubText.Insert(L":", itemSubText.GetLength());
+ itemSubText.Insert((minusMinutes), (itemSubText.GetLength()));
}
else
{
- secondLineText.Insert(L":", secondLineText.GetLength());
- secondLineText.Insert((minutes), (secondLineText.GetLength()));
+ itemSubText.Insert(L":", itemSubText.GetLength());
+ itemSubText.Insert((minutes), (itemSubText.GetLength()));
}
}
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_TIME_ZONE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_TIME_ZONE");
}
break;
case ID_ITEM_DATE_AND_TIME_DATE_AND_TIME:
{
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
itemHeight = H_GROUP_ITEM_EDITFIELD_DEFAULT;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DATE_AND_TIME");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DATE_AND_TIME");
}
break;
if (hourFormat == 0)
{
- secondLineText = ResourceManager::GetString(L"IDS_COM_BODY_12_HOURS");
+ itemSubText = ResourceManager::GetString(L"IDS_COM_BODY_12_HOURS");
}
else
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_BODY_24_HOURS");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_24_HOURS");
}
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_TIME_FORMAT");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_TIME_FORMAT");
}
break;
{
case ID_ITEM_DATE_AND_TIME_FORMAT_12_HOURS:
{
- itemText = ResourceManager::GetString(L"IDS_COM_BODY_12_HOURS");
+ itemMainText = ResourceManager::GetString(L"IDS_COM_BODY_12_HOURS");
if (hourFormat == false)
{
case ID_ITEM_DATE_AND_TIME_FORMAT_24_HOURS:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_24_HOURS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_24_HOURS");
if (hourFormat == true)
{
{
AppLogDebug("SettingInfo::GetValue() fail(%s)", GetErrorMessage(GetLastResult()));
}
- secondLineText = firstDayOfWeek;
+ itemSubText = firstDayOfWeek;
}
break;
{
case ID_ITEM_DATE_AND_TIME_FORMAT_FIRST_DAY_MONDAY:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MONDAY");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MONDAY");
if (firstDayOfWeek.Equals(L"Sunday", false) == false)
{
case ID_ITEM_DATE_AND_TIME_FORMAT_FIRST_DAY_SUNDAY:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SUNDAY");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SUNDAY");
if (firstDayOfWeek.Equals(L"Sunday", false))
{
__pTableView->SetItemChecked(groupIndex, itemIndex, true);
bool hourFormat = false;
EditDate* pEditDate = new (std::nothrow) EditDate();
- pEditDate->Construct(Point(0, 0), itemText);
+ pEditDate->Construct(Point(0, 0), itemMainText);
pEditDate->SetCurrentDate();
pEditDate->SetYearRange(MIN_YEAR, MAX_YEAR);
pEditDate->AddDateChangeEventListener(*this);
}
else if (isSecondLine == true)
{
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemHeight = (itemRectangle.height + itemSecondLineTextRect.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
if (groupIndex == ID_GROUP_DATE_AND_TIME_FORMAT)
{
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_BUTTON, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_BUTTON, 0, 0);
}
else
{
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
}
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_CLOSED);
}
- detailArrow = itemRectangle;
- detailArrow.y = itemRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
+ detailArrow = itemMainRectangle;
+ detailArrow.y = itemMainRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
detailArrow.height = W_DETAIL_ARROW_BUTTON;
detailArrow.width = W_DETAIL_ARROW_BUTTON;
pLabel->SetBackgroundBitmap(*pBitmap);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_ARROW_BUTTON, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_ARROW_BUTTON, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemSecondLineTextRect, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemSecondLineTextRect.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemSubRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
case TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING:
{
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
}
break;
default:
{
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
}
break;
}
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
int fontSize = GetFontSize();
break;
}
- itemRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- Rectangle itemRectangle;
- String itemText;
+ Rectangle itemMainRectangle;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
switch (groupIndex)
{
case ID_GROUP_DEVELOPER_USB_DEBUGGING:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_USB_DEBUGGING");
- itemRectangle.width -= W_RESIZE_LABEL_GAP;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_USB_DEBUGGING");
+ itemMainRectangle.width -= W_RESIZE_LABEL_GAP;
}
break;
case ID_GROUP_DEVELOPER_GPU_RENDERING:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_FORCE_GPU_RENDERING_ABB");
- itemRectangle.width -= W_RESIZE_LABEL_GAP;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FORCE_GPU_RENDERING_ABB");
+ itemMainRectangle.width -= W_RESIZE_LABEL_GAP;
}
break;
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
itemHeight = 0;
}
- itemRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle subItemRectangle;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
String subText;
Label* pLabel = null;
int fontSize = GetFontSize();
int itemHeight = 0;
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectangle);
- itemHeight = itemRectangle.height;
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
switch (groupIndex)
{
case ID_GROUP_AUTO_ROTATE_SCREEN:
{
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- itemRectangle.width -= W_RESIZE_LABEL_GAP;
- itemText = ResourceManager::GetString(L"IDS_ST_HEADER_AUTO_ROTATE_SCREEN_ABB");
+ itemMainRectangle.width -= W_RESIZE_LABEL_GAP;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_HEADER_AUTO_ROTATE_SCREEN_ABB");
}
break;
case ID_GROUP_BACKLIGHT_TIME:
{
- ItemTypeTwoLine(itemRectangle, subItemRectangle,fontSize);
- itemHeight = (itemRectangle.height + subItemRectangle.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle,fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
if (__pTableView->IsGroupExpanded(ID_GROUP_BACKLIGHT_TIME_LIST) == false)
{
pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_CLOSED);
}
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_BACKLIGHT_TIME");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_BACKLIGHT_TIME");
int index = GetBackLightTimeIndex();
subText = GetBackLightTimeIndexString(index);
}
case ID_GROUP_BACKLIGHT_TIME_LIST:
{
style = TABLE_VIEW_ANNEX_STYLE_RADIO;
- itemText = GetBackLightTimeIndexString(itemIndex);
+ itemMainText = GetBackLightTimeIndexString(itemIndex);
}
break;
case ID_GROUP_FONT:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_FONT");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FONT");
}
break;
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
if (pBitmap)
{
- detailArrow = itemRectangle;
- detailArrow.y = itemRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
+ detailArrow = itemMainRectangle;
+ detailArrow.y = itemMainRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
detailArrow.height = W_DETAIL_ARROW_BUTTON;
detailArrow.width = W_DETAIL_ARROW_BUTTON;
pLabel->SetBackgroundBitmap(*pBitmap);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_ARROW_BUTTON, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_ARROW_BUTTON, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(subItemRectangle, subText);
+ pLabel->Construct(itemSubRectangle, subText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
DisplayForm::UpdateItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
int index = 0;
- String itemText;
- String subItemText;
+ String itemMainText;
+ String itemSubText;
Label* pSubLabel = null;
switch (groupIndex)
pLabelBitmap->SetBounds(detailArrow);
index = GetBackLightTimeIndex();
- subItemText = GetBackLightTimeIndexString(index);
+ itemSubText = GetBackLightTimeIndexString(index);
pSubLabel->SetBounds(subRectangle);
- pSubLabel->SetText(subItemText);
+ pSubLabel->SetText(itemSubText);
pSubLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->Invalidate(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectIcon;
- Rectangle itemRectLabel;
+ Rectangle itemIconRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
String fontReturnValue;
Label* pLabel = null;
Bitmap* pBitmap;
int fontSize = GetFontSize();
int itemHeight = H_GROUP_ITEM_DEFAULT_LABEL;
- ItemTypeIconAndOneLine(itemRectIcon, itemRectLabel);
+ ItemTypeIconAndOneLine(itemIconRectangle, itemMainRectangle);
String appIdKey = GetDownLoadAppIdKeyAt(itemIndex);
String iconPath = GetAppSettingIconPathFromAppIdListAt(appIdKey);
- itemText = GetDownLoadAppNameAt(itemIndex);
+ itemMainText = GetDownLoadAppNameAt(itemIndex);
if (iconPath.IsEmpty() == true)
{
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectIcon, L"");
+ pLabel->Construct(itemIconRectangle, L"");
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
pLabel->SetBackgroundBitmap(*pBitmap);
pItem->AddControl(*pLabel);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, MAIN_RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, MAIN_RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
TableViewGroupItem* pItem = new (std::nothrow) TableViewGroupItem();
- itemRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
- itemRectangle.y = Y_GROUP_INDEX_DEFAULT_LABEL;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
+ itemMainRectangle.y = Y_GROUP_INDEX_DEFAULT_LABEL;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
{
case ID_ITEM_NOTIFICATION_EMAIL:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_EMAIL");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_EMAIL");
}
break;
case ID_ITEM_NOTOFICATION_MESSAGE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SIDEBAR_MESSAGES");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SIDEBAR_MESSAGES");
}
break;
case ID_ITEM_NOTOFICATION_INSTANT_MESSENGER:
{
- itemText = ResourceManager::GetString(L"IDS_COM_BODY_INSTANT_MESSENGER");
+ itemMainText = ResourceManager::GetString(L"IDS_COM_BODY_INSTANT_MESSENGER");
}
break;
break;
}
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
RelativeLayout relativeLayout;
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
{
for (int i = 0; i < __fontList->GetCount(); i++)
{
- String itemText = static_cast<String*>(__fontList->GetAt(i))->GetPointer();
+ String itemMainText = static_cast<String*>(__fontList->GetAt(i))->GetPointer();
- if (itemText.Equals(currentFontType, false))
+ if (itemMainText.Equals(currentFontType, false))
{
__pTableView->SetItemChecked(ID_GROUP_FONT_LIST, i, true);
break;
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
int fontSize = GetFontSize();
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
String fontReturnValue;
Label* pLabel = null;
Label* pLabelArrow = null;
int fontSize = GetFontSize();
- bool isTwoLineText = true;
+ bool isItemSubText = true;
int itemHeight = H_GROUP_ITEM_DEFAULT;
Rectangle detailArrow;
Bitmap* pBitmap = null;
if (groupIndex == ID_GROUP_FONT_LIST)
{
String currentFontType;
- isTwoLineText = false;
+ isItemSubText = false;
style = TABLE_VIEW_ANNEX_STYLE_RADIO;
}
- GetTableViewItemString(groupIndex, itemIndex, itemText, secondLineText);
+ GetTableViewItemString(groupIndex, itemIndex, itemMainText, itemSubText);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- if (isTwoLineText == true )
+ if (isItemSubText == true)
{
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemHeight = (itemRectangle.height + itemSecondLineTextRect.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
if (groupIndex == ID_GROUP_FONT)
pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_CLOSED);
}
- detailArrow = itemRectangle;
- detailArrow.y = itemRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
+ detailArrow = itemMainRectangle;
+ detailArrow.y = itemMainRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
detailArrow.height = W_DETAIL_ARROW_BUTTON;
detailArrow.width = W_DETAIL_ARROW_BUTTON;
pLabelArrow->SetBackgroundBitmap(*pBitmap);
pItem->AddControl(*pLabelArrow);
- relativeLayout.SetMargin(*pLabelArrow, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_ARROW_BUTTON, 0, 0);
+ relativeLayout.SetMargin(*pLabelArrow, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_ARROW_BUTTON, 0, 0);
relativeLayout.SetRelation(*pLabelArrow, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
relativeLayout.SetRelation(*pLabel, *pLabelArrow, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
}
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemSecondLineTextRect, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemSecondLineTextRect.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemSubRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
pItem->Construct(relativeLayout, Dimension(itemWidth, H_GROUP_ITEM_DEFAULT), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
void
FontForm::UpdateItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
- Rectangle firstLine;
- Rectangle secondLine;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
Rectangle pItemBounds = pItem->GetBounds();
int fontSize = GetFontSize();
{
case ID_GROUP_FONT:
{
- ItemTypeTwoLine(firstLine, secondLine, fontSize);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
- pItemBounds.height = firstLine.height + secondLine.height;
+ pItemBounds.height = itemMainRectangle.height + itemSubRectangle.height;
pItem->SetBounds(pItemBounds);
Label* pFirstLabel = static_cast<Label*>(pItem->GetControl(FONT_FORM_FIRST_CONTROL));
Label* pSecondLabel = static_cast<Label*>(pItem->GetControl(FONT_FORM_SECOND_CONTROL));
Label* pThirdLabel = static_cast<Label*>(pItem->GetControl(FONT_FORM_THIRD_CONTROL));
Rectangle detailArrow = pSecondLabel->GetBounds();
- detailArrow.y = firstLine.y + ((pItemBounds.height - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
+ detailArrow.y = itemMainRectangle.y + ((pItemBounds.height - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
- pFirstLabel->SetBounds(firstLine);
+ pFirstLabel->SetBounds(itemMainRectangle);
pFirstLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pSecondLabel->SetBounds(detailArrow);
- pThirdLabel->SetBounds(secondLine);
+ pThirdLabel->SetBounds(itemSubRectangle);
pThirdLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
Bitmap* pBitmap = null;
case ID_GROUP_FONT_SIZE:
{
- ItemTypeTwoLine(firstLine, secondLine, fontSize);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
- pItemBounds.height = firstLine.height + secondLine.height;
+ pItemBounds.height = itemMainRectangle.height + itemSubRectangle.height;
pItem->SetBounds(pItemBounds);
Label* pFirstLabel = static_cast<Label*>(pItem->GetControl(FONT_FORM_FIRST_CONTROL));
Label* pSecondLabel = static_cast<Label*>(pItem->GetControl(FONT_FORM_SECOND_CONTROL));
- pFirstLabel->SetBounds(firstLine);
+ pFirstLabel->SetBounds(itemMainRectangle);
pFirstLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
- pSecondLabel->SetBounds(secondLine);
+ pSecondLabel->SetBounds(itemSubRectangle);
pSecondLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
- String firstLineText = L"";
- String secondLineText = L"";
+ String itemMainText = L"";
+ String itemSubText = L"";
- GetTableViewItemString(groupIndex, itemIndex, firstLineText, secondLineText);
- pFirstLabel->SetText(firstLineText);
- pSecondLabel->SetText(secondLineText);
+ GetTableViewItemString(groupIndex, itemIndex, itemMainText, itemSubText);
+ pFirstLabel->SetText(itemMainText);
+ pSecondLabel->SetText(itemSubText);
pFirstLabel->Invalidate(false);
pSecondLabel->Invalidate(false);
case ID_GROUP_FONT_LIST:
{
- ItemTypeOneLine(firstLine);
+ ItemTypeOneLine(itemMainRectangle);
Label* pFirstLabel = static_cast<Label*>(pItem->GetControl(0));
- pFirstLabel->SetBounds(firstLine);
+ pFirstLabel->SetBounds(itemMainRectangle);
pFirstLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pFirstLabel->Invalidate(false);
}
}
void
-FontForm::GetTableViewItemString(int groupIndex, int itemIndex, Tizen::Base::String& firstLineText, Tizen::Base::String& secondLineText)
+FontForm::GetTableViewItemString(int groupIndex, int itemIndex, Tizen::Base::String& itemMainText, Tizen::Base::String& itemSubText)
{
switch (groupIndex)
{
String fontReturnValue;
if ((SettingInfo::GetValue(SETTING_INFO_KEY_FONT_TYPE, fontReturnValue)) == E_SUCCESS)
{
- secondLineText = fontReturnValue;
+ itemSubText = fontReturnValue;
}
- firstLineText = ResourceManager::GetString(L"IDS_ST_BODY_FONT_TYPE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FONT_TYPE");
}
break;
case ID_GROUP_FONT_LIST:
{
- firstLineText = static_cast<String*>(__fontList->GetAt(itemIndex))->GetPointer();
- secondLineText = L"";
+ itemMainText = static_cast<String*>(__fontList->GetAt(itemIndex))->GetPointer();
+ itemSubText = L"";
}
break;
{
if (fontReturnValue.Equals(L"giant", false))
{
- secondLineText = ResourceManager::GetString(L"IDS_EMAIL_POP_GIANT_M_TEXTSIZE");
+ itemSubText = ResourceManager::GetString(L"IDS_EMAIL_POP_GIANT_M_TEXTSIZE");
}
else if (fontReturnValue.Equals(L"huge", false))
{
- secondLineText = ResourceManager::GetString(L"IDS_EMAIL_OPT_HUGE_M_TEXTSIZE");
+ itemSubText = ResourceManager::GetString(L"IDS_EMAIL_OPT_HUGE_M_TEXTSIZE");
}
else if (fontReturnValue.Equals(L"large", false))
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_BODY_TEXTSTYLE_LARGE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_TEXTSTYLE_LARGE");
}
else if (fontReturnValue.Equals(L"medium", false))
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
}
else
{
- secondLineText = ResourceManager::GetString(L"IDS_ST_BODY_SMALL_M_TEXTSIZE");
+ itemSubText = ResourceManager::GetString(L"IDS_ST_BODY_SMALL_M_TEXTSIZE");
}
}
- firstLineText = ResourceManager::GetString(L"IDS_ST_BODY_FONT_SIZE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FONT_SIZE");
}
break;
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
int fontSize = GetFontSize();
String groupText;
Label* pLabel = null;
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pItem->AddControl(*pLabel);
pItem->SetEnabled(false);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, 0, 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);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_RADIO;
- String itemText;
- String secondLineText;
+ String itemMainText;
String fontReturnValue;
Label* pLabel = null;
- int FontSize = FONT_MAIN_TEXT_SIZE_NORMAL;
+ int fontSize = FONT_MAIN_TEXT_SIZE_NORMAL;
TableViewItem* pItem = new (std::nothrow) TableViewItem();
if (SettingInfo::GetValue(SETTING_INFO_KEY_FONT_SIZE, fontReturnValue) == E_SUCCESS)
{
case ID_ITEM_FONT_SIZE_GIANT:
{
- FontSize = FONT_MAIN_TEXT_SIZE_GIANT;
- itemText = ResourceManager::GetString(L"IDS_EMAIL_POP_GIANT_M_TEXTSIZE");
+ fontSize = FONT_MAIN_TEXT_SIZE_GIANT;
+ itemMainText = ResourceManager::GetString(L"IDS_EMAIL_POP_GIANT_M_TEXTSIZE");
if (fontReturnValue.Equals(L"giant", false))
{
case ID_ITEM_FONT_SIZE_HUGE:
{
- FontSize = FONT_MAIN_TEXT_SIZE_HUGE;
- itemText = ResourceManager::GetString(L"IDS_EMAIL_OPT_HUGE_M_TEXTSIZE");
+ fontSize = FONT_MAIN_TEXT_SIZE_HUGE;
+ itemMainText = ResourceManager::GetString(L"IDS_EMAIL_OPT_HUGE_M_TEXTSIZE");
if (fontReturnValue.Equals(L"huge", false))
{
case ID_ITEM_FONT_SIZE_LARGE:
{
- FontSize = FONT_MAIN_TEXT_SIZE_LARGE;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_TEXTSTYLE_LARGE");
+ fontSize = FONT_MAIN_TEXT_SIZE_LARGE;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_TEXTSTYLE_LARGE");
if (fontReturnValue.Equals(L"large", false))
{
case ID_ITEM_FONT_SIZE_NORMAL:
{
- FontSize = FONT_MAIN_TEXT_SIZE_NORMAL;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
+ fontSize = FONT_MAIN_TEXT_SIZE_NORMAL;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FONTTYPE_NORMAL");
if (fontReturnValue.Equals(L"medium", false))
{
case ID_ITEM_FONT_SIZE_SMALL:
{
- FontSize = FONT_MAIN_TEXT_SIZE_SMALL;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SMALL_M_TEXTSIZE");
+ fontSize = FONT_MAIN_TEXT_SIZE_SMALL;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SMALL_M_TEXTSIZE");
if (fontReturnValue.Equals(L"small", false))
{
break;
}
- ItemTypeOneLine(itemRectangle);
- itemRectangle.height = itemRectangle.height + H_GROUP_INDEX_HELP_TEXT_GAP;
+ ItemTypeOneLine(itemMainRectangle);
+ itemMainRectangle.height = itemMainRectangle.height + H_GROUP_INDEX_HELP_TEXT_GAP;
RelativeLayout relativeLayout;
relativeLayout.Construct();
- pItem->Construct(relativeLayout, Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(relativeLayout, Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pLabel->SetTextConfig(FontSize, LABEL_TEXT_STYLE_NORMAL);
+ pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
int itemHeight = H_GROUP_INDEX_DEFAULT;;
int yItemOffset = 0;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
groupText = GetGroupText(groupIndex);
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
TableViewGroupItem* pItem = new (std::nothrow) TableViewGroupItem();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle subItemRectangle;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
String fontReturnValue;
Label* pLabel = null;
int itemHeight = 0;
int fontSize = GetFontSize();
- itemText = GetGroupItemText(groupIndex);
+ itemMainText = GetGroupItemText(groupIndex);
- ItemTypeOneLine(itemRectangle);
- itemHeight = itemRectangle.height;
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
if (groupIndex == ID_GROUP_SCREEN_TYPE)
{
- secondLineText = GetGroupItemSelectedText();
- ItemTypeTwoLine(itemRectangle, subItemRectangle, fontSize);
- itemHeight = itemRectangle.height + subItemRectangle.height;
+ itemSubText = GetGroupItemSelectedText();
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = itemMainRectangle.height + itemSubRectangle.height;
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
if (groupIndex == ID_GROUP_SCREEN_TYPE)
{
pLabel = new (std::nothrow) Label();
- pLabel->Construct(subItemRectangle, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
{
case ID_GROUP_SCREEN_TYPE:
{
- String secondLineText;
+ String itemSubText;
Label* pSecondLabel = static_cast<Label*>(pItem->GetControl(1));
- secondLineText = GetGroupItemSelectedText();
- pSecondLabel->SetText(secondLineText);
+ itemSubText = GetGroupItemSelectedText();
+ pSecondLabel->SetText(itemSubText);
pSecondLabel->Invalidate(false);
}
break;
Tizen::Base::String
HomeAndLockScreenForm::GetGroupItemText(int groupIndex)
{
- String itemText;
+ String itemMainText;
switch (groupIndex)
{
{
if (GetWallpaperIndex())
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SCREEN_LOCK_TYPE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SCREEN_LOCK_TYPE");
}
else
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_HOME_SCREEN_TYPE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_HOME_SCREEN_TYPE");
}
}
break;
{
if (GetWallpaperIndex())
{
- itemText = ResourceManager::GetString(L"IDS_ST_MBODY_LOCK_SCREEN_WALLPAPER_M_NOUN");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_MBODY_LOCK_SCREEN_WALLPAPER_M_NOUN");
}
else
{
- itemText = ResourceManager::GetString(L"IDS_ST_MBODY_HOME_SCREEN_WALLPAPER");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_MBODY_HOME_SCREEN_WALLPAPER");
}
}
break;
}
- return itemText;
+ return itemMainText;
}
Tizen::Base::String
HomeAndLockScreenForm::GetGroupItemSelectedText(void)
{
- String itemText;
+ String itemMainText;
String screenType;
String applicationId;
if (applicationId.Equals(L"org.tizen.menu-screen", false))
{
// Preloaded home
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DEFAULT_HOME_SCREEN");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DEFAULT_HOME_SCREEN");
}
else if (applicationId.Equals(L"org.tizen.lockscreen", false))
{
// Preloaded lock
- itemText = ResourceManager::GetString(L"IDS_ST_MBODY_SWIPE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_MBODY_SWIPE");
}
else
{
// Downloaded home/lock
PackageManager* pMgr = PackageManager::GetInstance();
PackageAppInfo* pPackageAppInfo = pMgr->GetPackageAppInfoN(applicationId);
- itemText = pPackageAppInfo->GetAppDisplayName();
+ itemMainText = pPackageAppInfo->GetAppDisplayName();
}
}
- return itemText;
+ return itemMainText;
}
\ No newline at end of file
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_GROUP_TITLE_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
{
case ID_ITEM_KEYBOARD_SOFTWARE_SELECT_KEYBOARD:
{
- itemText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SELECTION");
+ itemMainText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SELECTION");
}
break;
case ID_ITEM_KEYBOARD_SOFTWARE_KEYBOARD_SETTING:
{
- itemText = ResourceManager::GetString(L"IDS_IME_BODY_WRITING_LANGUAGES");
+ itemMainText = ResourceManager::GetString(L"IDS_IME_BODY_WRITING_LANGUAGES");
}
break;
{
case ID_ITEM_KEYBOARD_HARDWARE_SELECT_KEYBOARD:
{
- itemText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SELECTION");
+ itemMainText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SELECTION");
}
break;
case ID_ITEM_KEYBOARD_HARDWARE_KEYBOARD_SETTING:
{
- itemText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SETTINGS");
+ itemMainText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SETTINGS");
}
break;
break;
}
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
const Tizen::Locales::Locale* pLocale = static_cast<const Tizen::Locales::Locale*>(pLangList->GetAt(itemIndex));
if (pLocale != null)
{
- itemText = pLocale->GetLocaleCodeString();
+ itemMainText = pLocale->GetLocaleCodeString();
}
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_BOLD;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
pItem->Construct(Dimension(itemWidth, itemHeight));
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
TableViewItem*
KeyboardSelectionForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_DETAILED;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
}
InputMethodInfo* pInputMethodInfo = static_cast<InputMethodInfo*>(__pInputMethodInfoList->GetAt(itemIndex));
- itemText = pInputMethodInfo->GetName();
+ itemMainText = pInputMethodInfo->GetName();
}
break;
{
case ID_ITEM_KEYBOARD_HARDWARE_SELECT_KEYBOARD:
{
- itemText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SELECTION");
+ itemMainText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SELECTION");
}
break;
case ID_ITEM_KEYBOARD_HARDWARE_KEYBOARD_SETTING:
{
- itemText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SETTINGS");
+ itemMainText = ResourceManager::GetString(L"IDS_IME_BODY_KEYBOARD_SETTINGS");
}
break;
break;
}
- ItemTypeOneLine(itemRectangle);
- itemRectangle.width -= ITEM_WIDE_GAP;
+ ItemTypeOneLine(itemMainRectangle);
+ itemMainRectangle.width -= ITEM_WIDE_GAP;
pItem->Construct(Dimension(itemWidth, H_GROUP_ITEM_DEFAULT), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
LocaleForm::LocaleForm(void)
: __languageDataList(null)
+ , __isRunningAppControl(false)
{
}
CreateFooter();
CreateTableView();
+ AddFocusEventListener(*this);
+
AppLogDebug("ENTER");
return E_SUCCESS;
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
int fontSize = GetFontSize();
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, 0, 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);
pItem->SetEnabled(false);
LocaleForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- bool isSecondLine = false;
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ bool isItemSubText = false;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
String systemLocaleString;
Label* pLabel = null;
int fontSize = GetFontSize();
{
case ID_GROUP_LANGUAGE_AND_REGION_MAIN:
{
- isSecondLine = true;
+ isItemSubText = true;
switch (itemIndex)
{
case ID_ITEM_LANGUAGE_AND_REGION_MAIN_DISPLAY_LANGUAGE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_HEADER_DISPLAY_LANGUAGE");
- if (SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, secondLineText) != E_SUCCESS)
+ itemMainText = ResourceManager::GetString(L"IDS_ST_HEADER_DISPLAY_LANGUAGE");
+ if (SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, itemSubText) != E_SUCCESS)
{
AppLogDebug("SettingInfo::GetValue() fail(%s)", GetErrorMessage(GetLastResult()));
}
{
for (int i = 0; i< ID_GROUP_LANGUAGE_ITEM_COUNT; i++)
{
- if (secondLineText.Equals(languageCode[i], false))
+ if (itemSubText.Equals(languageCode[i], false))
{
String* pKey = static_cast<String*>(__languageDataList->GetAt(i));
StringTokenizer stringTokenizer(*pKey, L"/");
- stringTokenizer.GetNextToken(secondLineText);
+ stringTokenizer.GetNextToken(itemSubText);
break;
}
}
case ID_ITEM_LANGUAGE_AND_REGION_MAIN_REGION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_REGION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_REGION");
String localeLanguage;
if (SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, localeLanguage) != E_SUCCESS)
{
Locale currentLocale(langCode, countryCode);
locale.GetLanguageName(currentLocale, systemLocaleString);
- secondLineText.Append(systemLocaleString + L"(");
+ itemSubText.Append(systemLocaleString + L"(");
systemLocaleString.Remove(0, systemLocaleString.GetLength());
locale.GetCountryName(currentLocale, systemLocaleString);
- secondLineText.Append(systemLocaleString + L")");
+ itemSubText.Append(systemLocaleString + L")");
systemLocaleString.Remove(0, systemLocaleString.GetLength());
}
break;
case ID_GROUP_KEYBOARD:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_KEYBOARD");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_KEYBOARD");
}
break;
break;
}
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- if (isSecondLine == true)
+ if (isItemSubText == true)
{
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemHeight = (itemRectangle.height + itemSecondLineTextRect.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemSecondLineTextRect, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
#if 0
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_KEYBOARD, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), null);
#else
- AppControl::FindAndStart(L"http://tizen.org/appcontrol/operation/setting/ime", null, null, null, null, null);
+
+ if (__isRunningAppControl == true)
+ {
+ return;
+ }
+
+ if (AppControl::FindAndStart(L"http://tizen.org/appcontrol/operation/setting/ime", null, null, null, null, null) == E_SUCCESS)
+ {
+ __isRunningAppControl = true;
+ }
#endif
}
break;
LocaleForm::UpdateItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
String firstLineText;
- String secondLineText;
+ String itemSubText;
Rectangle pItemBounds = pItem->GetBounds();
Rectangle firstLineRect;
{
firstLineText = ResourceManager::GetString(L"IDS_ST_HEADER_DISPLAY_LANGUAGE");
- if (SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, secondLineText) != E_SUCCESS)
+ if (SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_LANGUAGE, itemSubText) != E_SUCCESS)
{
AppLogDebug("SettingInfo::GetValue() fail(%s)", GetErrorMessage(GetLastResult()));
}
{
for (int i = 0; i< ID_GROUP_LANGUAGE_ITEM_COUNT; i++)
{
- if (secondLineText.Equals(languageCode[i], false))
+ if (itemSubText.Equals(languageCode[i], false))
{
String* pKey = static_cast<String*>(__languageDataList->GetAt(i));
StringTokenizer stringTokenizer(*pKey, L"/");
- stringTokenizer.GetNextToken(secondLineText);
+ stringTokenizer.GetNextToken(itemSubText);
break;
}
}
pFirstLabel->SetText(firstLineText);
pFirstLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
- pSecondLabel->SetText(secondLineText);
+ pSecondLabel->SetText(itemSubText);
pSecondLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pFirstLabel->Invalidate(false);
Locale currentLocale(langCode, countryCode);
locale.GetLanguageName(currentLocale, systemLocaleString);
- secondLineText.Append(systemLocaleString + L"(");
+ itemSubText.Append(systemLocaleString + L"(");
systemLocaleString.Remove(0, systemLocaleString.GetLength());
locale.GetCountryName(currentLocale, systemLocaleString);
- secondLineText.Append(systemLocaleString + L")");
+ itemSubText.Append(systemLocaleString + L")");
systemLocaleString.Remove(0, systemLocaleString.GetLength());
pItem->SetBounds(pItemBounds);
pFirstLabel->SetText(firstLineText);
pFirstLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
- pSecondLabel->SetText(secondLineText);
+ pSecondLabel->SetText(itemSubText);
pSecondLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pFirstLabel->Invalidate(false);
{
RefreshTableViewItem();
Invalidate(true);
+}
+
+void
+LocaleForm::OnFocusGained(const Tizen::Ui::Control& source)
+{
+ __isRunningAppControl = false;
+}
+
+void
+LocaleForm::OnFocusLost(const Tizen::Ui::Control& source)
+{
}
\ No newline at end of file
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
yItemOffset = H_GROUP_INDEX_NO_HELP_TEXT_GAP;
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
String fontReturnValue;
Label* pLabel = null;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
String* pKey = static_cast<String*>(__pLanguageDataList->GetAt(itemIndex));
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
if (fontSize > FONT_MAIN_TEXT_SIZE_LARGE)
{
- itemRectangle.height = itemRectangle.height + H_FONT_HEIGHT_GAP;
+ itemMainRectangle.height = itemMainRectangle.height + H_FONT_HEIGHT_GAP;
}
- itemWidth = itemRectangle.width;
+ itemWidth = itemMainRectangle.width;
StringTokenizer stringTokenizer(*pKey, L"/");
- stringTokenizer.GetNextToken(itemText);
+ stringTokenizer.GetNextToken(itemMainText);
RelativeLayout relativeLayout;
relativeLayout.Construct();
- pItem->Construct(relativeLayout, Dimension(itemWidth, itemRectangle.height), style);
+ pItem->Construct(relativeLayout, Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
TableViewItem*
LocationForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
switch (groupIndex)
{
case ID_GROUP_GPS_1:
{
bool gpsStatus;
- itemText = ResourceManager::GetString(L"IDS_CAM_OPT_GPS");
+ itemMainText = ResourceManager::GetString(L"IDS_CAM_OPT_GPS");
SettingInfo::GetValue(SETTING_INFO_KEY_LOCATION_GPS, gpsStatus);
if (!IsFailed(GetLastResult())
&& (gpsStatus == true))
case ID_ITEM_GPS_NETWORK_POSITION:
{
bool wpsStatus;
- itemText = ResourceManager::GetString(L"IDS_LBS_BODY_NETWORK_POSITION");
- itemRectangle.width -= W_RESIZE_LABEL_GAP;
+ itemMainText = ResourceManager::GetString(L"IDS_LBS_BODY_NETWORK_POSITION");
+ itemMainRectangle.width -= W_RESIZE_LABEL_GAP;
SettingInfo::GetValue(SETTING_INFO_KEY_LOCATION_WPS, wpsStatus);
if (!IsFailed(GetLastResult())
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
unsigned int itemHeight = 0;
bool isDrawBitmapIcon = true;
- Rectangle itemRectIcon;
- Rectangle itemRectLabel;
- Rectangle itemRectSecondLabel;
- String itemText;
- String itemTextTwoLine;
+ Rectangle itemIconRectangle;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
+ String itemMainText;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
Bitmap* pBitmap = null;
Label* pLabel = null;
- ItemTypeIconAndOneLine(itemRectIcon, itemRectLabel);
- itemHeight = itemRectLabel.height;
+ ItemTypeIconAndOneLine(itemIconRectangle, itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
switch (groupIndex)
{
else
{
pBitmap = ResourceManager::GetBitmapN(IDB_WIFI);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_WI_FI");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_WI_FI");
}
}
break;
}
else
{
- ItemTypeIconAndOneLine(itemRectIcon, itemRectLabel);
- itemHeight = itemRectLabel.height;
+ ItemTypeIconAndOneLine(itemIconRectangle, itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
pBitmap = ResourceManager::GetBitmapN(IDB_BLUETOOTH);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_BLUETOOTH");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_BLUETOOTH");
}
}
break;
case ID_ITEM_CONNECTIVITY_NETWORK:
{
pBitmap = ResourceManager::GetBitmapN(IDB_NETWORK);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_NETWORK");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_NETWORK");
}
break;
case ID_ITEM_CONNECTIVITY_NFC:
{
- ItemTypeIconAndOneLine(itemRectIcon, itemRectLabel);
- itemHeight = (itemRectLabel.height + itemRectSecondLabel.height);
+ ItemTypeIconAndOneLine(itemIconRectangle, itemMainRectangle);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
pBitmap = ResourceManager::GetBitmapN(IDB_NFC);
- itemText = ResourceManager::GetString(L"IDS_NFC_BODY_NFC");
+ itemMainText = ResourceManager::GetString(L"IDS_NFC_BODY_NFC");
}
break;
case ID_GROUP_MODE:
{
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- itemRectLabel.width -= W_RESIZE_LABEL_GAP;
+ itemMainRectangle.width -= W_RESIZE_LABEL_GAP;
pBitmap = ResourceManager::GetBitmapN(IDB_FLIGHT_MODE);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_FLIGHT_MODE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FLIGHT_MODE");
}
break;
case ID_ITEM_PERSONAL_HOME_SCREEN:
{
pBitmap = ResourceManager::GetBitmapN(IDB_HOME_SCREEN);
- itemText = ResourceManager::GetString(L"IDS_ST_HEADER_HOME_SCREEN");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_HEADER_HOME_SCREEN");
}
break;
case ID_ITEM_PERSONAL_LOCK_SCREEN:
{
pBitmap = ResourceManager::GetBitmapN(IDB_LOCK_SCREEN);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_LOCK_SCREEN");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_LOCK_SCREEN");
}
break;
case ID_ITEM_PERSONAL_ACCOUNTS:
{
pBitmap = ResourceManager::GetBitmapN(IDB_ACCOUNTS);
- itemText = ResourceManager::GetString(L"IDS_COM_BODY_ACCOUNTS");
+ itemMainText = ResourceManager::GetString(L"IDS_COM_BODY_ACCOUNTS");
}
break;
case ID_ITEM_PERSONAL_PRIVACY:
{
pBitmap = ResourceManager::GetBitmapN(IDB_PRIVACY);
- itemText = ResourceManager::GetString(L"IDS_COM_BODY_PRIVACY");
+ itemMainText = ResourceManager::GetString(L"IDS_COM_BODY_PRIVACY");
}
break;
case ID_ITEM_DEVICE_DISPLAY:
{
pBitmap = ResourceManager::GetBitmapN(IDB_DISPLAY);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DISPLAY");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DISPLAY");
}
break;
case ID_ITEM_DEVICE_SOUND:
{
pBitmap = ResourceManager::GetBitmapN(IDB_SOUND);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDS");
}
break;
case ID_ITEM_DEVICE_LOCATION:
{
pBitmap = ResourceManager::GetBitmapN(IDB_LOCATION);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_LOCATIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_LOCATIONS");
}
break;
case ID_ITEM_DEVICE_CALL_SETTING:
{
pBitmap = ResourceManager::GetBitmapN(IDB_PHONE);
- itemText = ResourceManager::GetString(L"IDS_CST_BODY_CALL_SETTINGS");
+ itemMainText = ResourceManager::GetString(L"IDS_CST_BODY_CALL_SETTINGS");
}
break;
case ID_ITEM_DEVICE_ACCESSIBILITY:
{
pBitmap = ResourceManager::GetBitmapN(IDB_ACCESSIBILITY);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_ACCESSIBILITY");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_ACCESSIBILITY");
}
break;
case ID_ITEM_DEVICE_DATE_TIME:
{
pBitmap = ResourceManager::GetBitmapN(IDB_DATE_AND_TIME);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DATE_AND_TIME");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DATE_AND_TIME");
}
break;
case ID_ITEM_DEVICE_LANGUAGE_KEYBOARD:
{
pBitmap = ResourceManager::GetBitmapN(IDB_LANGUAGE_KEYBOARD);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_LANGUAGE_AND_KEYBOARD");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_LANGUAGE_AND_KEYBOARD");
}
break;
case ID_ITEM_SYSTEM_MANAGE_APPLICATION:
{
pBitmap = ResourceManager::GetBitmapN(IDB_MANAGE_APPLICATION);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MANAGE_APPLICATIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MANAGE_APPLICATIONS");
}
break;
case ID_ITEM_SYSTEM_DOWNLOADED_APPLICATION:
{
pBitmap = ResourceManager::GetBitmapN(IDB_DEFAULT_ICON);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DOWNLOADED_APPLICATIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DOWNLOADED_APPLICATIONS");
}
break;
else
{
pBitmap = ResourceManager::GetBitmapN(IDB_DEVELOPER_OPTION);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DEVELOPER_OPTIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DEVELOPER_OPTIONS");
}
}
break;
case ID_ITEM_SYSTEM_ABOUT_PHONE:
{
pBitmap = ResourceManager::GetBitmapN(IDB_ABOUT_PHONE);
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_ABOUT_PHONE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_ABOUT_PHONE");
}
break;
if (isDrawBitmapIcon)
{
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectIcon, L"");
+ pLabel->Construct(itemIconRectangle, L"");
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
pLabel->SetBackgroundBitmap(*pBitmap);
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
if (style == TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING)
{
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
}
else
{
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, MAIN_RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, MAIN_RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
}
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
int fontSize = GetFontSize();
String groupText;
Label* pLabel = null;
TableViewGroupItem* pItem = new (std::nothrow) TableViewGroupItem();
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pItem->AddControl(*pLabel);
pItem->SetEnabled(false);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, 0, 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);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle iconRectangle;
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemIconRectangle;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
String fontReturnValue;
Label* pLabel = null;
Bitmap* pBitmap = null;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- itemText = GetPackageInfoItem(itemIndex, DATA_TYPE_APPLICATION_NAME);
- ItemTypeIconAndOneLine(iconRectangle, itemRectangle);
+ itemMainText = GetPackageInfoItem(itemIndex, DATA_TYPE_APPLICATION_NAME);
+ ItemTypeIconAndOneLine(itemIconRectangle, itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pBitmap = ResourceManager::GetBitmapN(IDB_DEFAULT_ICON);
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(iconRectangle, L"");
+ pLabel->Construct(itemIconRectangle, L"");
pLabel->SetBackgroundBitmap(*pBitmap);
pItem->AddControl(*pLabel);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
delete pBitmap;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- bool isTwoLineText = false;
+ bool isItemSubText = false;
bool isBitmapSet = false;
bool isCommandButton = false;
- Rectangle iconRectangle;
- Rectangle firstLineRectangle;
- Rectangle secondLineRectangle;
+ Rectangle itemIconRectangle;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
int itemHeight = H_ITEM_TYPE_1_LABEL;
Label* pLabel = null;
Label* pBitmapLabel = null;
- String itemText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(firstLineRectangle);
- itemHeight = firstLineRectangle.height;
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
switch (groupIndex)
{
{
case ID_ITEM_APPLICATION_NAME:
{
- isTwoLineText = true;
+ isItemSubText = true;
isBitmapSet = true;
double appSize = 0;
double dataSize = 0;
}
String sizeData;
- ItemTypeIconAndTwoLine(iconRectangle, firstLineRectangle, secondLineRectangle, fontSize);
- itemHeight = (firstLineRectangle.height + secondLineRectangle.height);
- itemText = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_NAME)));
+ ItemTypeIconAndTwoLine(itemIconRectangle, itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
+ itemMainText = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_NAME)));
sizeData = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_SIZE)));
Double::Parse(sizeData, appSize);
sizeData = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_DATA_SIZE)));
if (((appSize+dataSize) / KILOBYTE_TO_MEGABYTE) >= 1)
{
- secondLineText = Double::ToString(((appSize+dataSize) / KILOBYTE_TO_MEGABYTE));
- secondLineText.Append(L" MB");
+ itemSubText = Double::ToString(((appSize+dataSize) / KILOBYTE_TO_MEGABYTE));
+ itemSubText.Append(L" MB");
}
else
{
- secondLineText = Double::ToString(((appSize+dataSize)));
- secondLineText.Append(L" KB");
+ itemSubText = Double::ToString(((appSize+dataSize)));
+ itemSubText.Append(L" KB");
}
}
break;
double totalSize = 0;
String tmpDataSize;
- isTwoLineText = true;
+ isItemSubText = true;
- ItemTypeTwoLine(firstLineRectangle, secondLineRectangle, fontSize);
- itemHeight = (firstLineRectangle.height + secondLineRectangle.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
switch (itemIndex)
{
case ID_ITEM_APPLICATION_SIZE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_APPLICATION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_APPLICATION");
tmpDataSize = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_SIZE)));
Double::Parse(tmpDataSize, appSize);
case ID_ITEM_APPLICATION_DATA_SIZE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DATA");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DATA");
tmpDataSize = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_DATA_SIZE)));
Double::Parse(tmpDataSize, dataSize);
default:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_TOTAL");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_TOTAL");
tmpDataSize = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_SIZE)));
Double::Parse(tmpDataSize, appSize);
tmpDataSize = *(static_cast<String*>(__applicationData->GetAt(DATA_TYPE_APPLICATION_DATA_SIZE)));
if ((totalSize / KILOBYTE_TO_MEGABYTE) >= 1)
{
- secondLineText = Double::ToString((totalSize / KILOBYTE_TO_MEGABYTE));
- secondLineText.Append(L" MB");
+ itemSubText = Double::ToString((totalSize / KILOBYTE_TO_MEGABYTE));
+ itemSubText.Append(L" MB");
}
else
{
- secondLineText = Double::ToString((totalSize));
- secondLineText.Append(L" KB");
+ itemSubText = Double::ToString((totalSize));
+ itemSubText.Append(L" KB");
}
}
break;
case ID_GROUP_APPLICATION_CLEAR_DEFAULT:
{
- ItemTypeOneLine(firstLineRectangle);
- itemHeight = firstLineRectangle.height;
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CLEAR_DEFAULTS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CLEAR_DEFAULTS");
}
break;
case ID_GROUP_APPLICATION_DETAIL:
{
- ItemTypeOneLine(firstLineRectangle);
- itemHeight = firstLineRectangle.height;
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MORE_DETAILS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MORE_DETAILS");
}
break;
String homeAppId;
String lockAppId;
String appId;
- firstLineRectangle.height -= (H_ITEM_TYPE_1_LABEL / DIVIDE_BY_TWO);
+ itemMainRectangle.height -= (H_ITEM_TYPE_1_LABEL / DIVIDE_BY_TWO);
- pItem->Construct(Dimension(itemWidth, firstLineRectangle.height), style);
+ pItem->Construct(Dimension(itemWidth, itemMainRectangle.height), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
Rectangle stopButtonRect;
Rectangle uninstallButtonRect;
- stopButtonRect = firstLineRectangle;
+ stopButtonRect = itemMainRectangle;
stopButtonRect.width = (itemWidth / DIVIDE_BY_TWO) - COMMAND_BUTTON_GAP;
- uninstallButtonRect = firstLineRectangle;
+ uninstallButtonRect = itemMainRectangle;
uninstallButtonRect.x = (itemWidth / DIVIDE_BY_TWO);
uninstallButtonRect.width = (itemWidth / DIVIDE_BY_TWO) - COMMAND_BUTTON_GAP;
if (isBitmapSet == true)
{
pBitmapLabel = new (std::nothrow) Label();
- pBitmapLabel->Construct(iconRectangle, L"");
+ pBitmapLabel->Construct(itemIconRectangle, L"");
pBitmapLabel->SetBackgroundBitmap(*pBitmap);
pItem->AddControl(*pBitmapLabel);
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(firstLineRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, firstLineRectangle.x, 0, 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);
- if (isTwoLineText == true)
+ if (isItemSubText == true)
{
pLabel = new (std::nothrow) Label();
- pLabel->Construct(secondLineRectangle, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, secondLineRectangle.x, 0, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemSubRectangle.x, 0, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
TableViewGroupItem* pItem = new (std::nothrow) TableViewGroupItem();
- itemRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
- itemRectangle.y = Y_GROUP_INDEX_DEFAULT_LABEL;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_INDEX_DEFAULT_LABEL;
+ itemMainRectangle.y = Y_GROUP_INDEX_DEFAULT_LABEL;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
if (itemIndex == ID_ITEM_MEMORY_MAIN_MEMORY_STATUS)
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MEMORY_STATUS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MEMORY_STATUS");
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
yItemOffset = H_GROUP_INDEX_NO_HELP_TEXT_GAP;
itemHeight = H_GROUP_INDEX_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- bool isTwoLineItemText = false;
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ bool isItemSubText = false;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
- String itemTextTwoLine;
+ String itemMainText;
+ String itemSubText;
String fontReturnValue;
int fontSize = GetFontSize();
int itemHeight = 0;
{
case SD_CARD_GROUP_ITEM_MOUNT:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MOUNT_SD_CARD");
- itemTextTwoLine = L"Insert SD card";
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemHeight = itemRectangle.height + itemSecondLineTextRect.height;
- isTwoLineItemText = true;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MOUNT_SD_CARD");
+ itemSubText = L"Insert SD card";
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = itemMainRectangle.height + itemSubRectangle.height;
+ isItemSubText = true;
}
break;
case SD_CARD_GROUP_ITEM_UNMOUNT:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_UNMOUNT_SD_CARD");;
- ItemTypeOneLine(itemRectangle);
- itemHeight = itemRectangle.height;
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_UNMOUNT_SD_CARD");;
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = itemMainRectangle.height;
}
break;
{
break;
}
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_AVAILABLE_SPACE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_AVAILABLE_SPACE");
float megabyteAvailableSpace = static_cast<float>(availableSpace) / (AVILABLE_SPACE_BYTE_CHANGED * AVILABLE_SPACE_BYTE_CHANGED);
if (megabyteAvailableSpace > AVILABLE_SPACE_BYTE_CHANGED)
{
float gigabyteAvailableSpace = megabyteAvailableSpace / AVILABLE_SPACE_BYTE_CHANGED;
- itemTextTwoLine.Format(AVILABLE_SPACE_STRING_LIMIT, L"%.1f", gigabyteAvailableSpace);
- itemTextTwoLine.Append(L" GB");
+ itemSubText.Format(AVILABLE_SPACE_STRING_LIMIT, L"%.1f", gigabyteAvailableSpace);
+ itemSubText.Append(L" GB");
}
else
{
- itemTextTwoLine.Format(AVILABLE_SPACE_STRING_LIMIT, L"%.0f", megabyteAvailableSpace);
- itemTextTwoLine.Append(L" MB");
+ itemSubText.Format(AVILABLE_SPACE_STRING_LIMIT, L"%.0f", megabyteAvailableSpace);
+ itemSubText.Append(L" MB");
}
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemHeight = itemRectangle.height + itemSecondLineTextRect.height;
- isTwoLineItemText = true;
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = itemMainRectangle.height + itemSubRectangle.height;
+ isItemSubText = true;
}
break;
AppLogDebug("pLabel is null");
return pItem;
}
- r = pLabel->Construct(itemRectangle, itemText);
+ r = pLabel->Construct(itemMainRectangle, itemMainText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
- if (isTwoLineItemText == true)
+ if (isItemSubText == true)
{
Label* pSecondLabel = new (std::nothrow) Label();
if (pSecondLabel == null)
AppLogDebug("pLabel is null");
return pItem;
}
- r = pSecondLabel->Construct(itemSecondLineTextRect, itemTextTwoLine);
+ r = pSecondLabel->Construct(itemSubRectangle, itemSubText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
pSecondLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pSecondLabel);
- relativeLayout.SetMargin(*pSecondLabel, itemSecondLineTextRect.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pSecondLabel, itemSubRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pSecondLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pSecondLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectLabel;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectLabel.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectLabel.y = yItemOffset;
- itemRectLabel.width = itemWidth;
- itemRectLabel.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
NetworkForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectLabel;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
case ID_GROUP_USE_PACKET_DATA:
{
bool packetStatus = false;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_USE_PACKET_DATA");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_USE_PACKET_DATA");
if (SettingInfo::GetValue(SETTING_INFO_KEY_NETWORK_PACKETSERVICE, packetStatus) == E_SUCCESS)
{
__pTableView->SetItemChecked(groupIndex, itemIndex, packetStatus);
case ID_GROUP_DATA_ROAMING:
{
bool roamingStatus = false;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DATA_ROAMING");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DATA_ROAMING");
if (SettingInfo::GetValue(SETTING_INFO_KEY_NETWORK_ROAMING, roamingStatus) == E_SUCCESS)
{
{
if (itemIndex == ID_ITEM_NETWORK_NETWORK_MODE)
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_NETWORK_MODE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_NETWORK_MODE");
}
}
break;
__pTableView->SetItemChecked(groupIndex, itemIndex, true);
}
- itemText = L"GSM/WCDMA";
- itemText.Append(ResourceManager::GetString(L"IDS_KW_MBODY_AUTO_CONNECT"));
+ itemMainText = L"GSM/WCDMA";
+ itemMainText.Append(ResourceManager::GetString(L"IDS_KW_MBODY_AUTO_CONNECT"));
}
break;
case ID_ITEM_NETWORK_NETWORK_MODE_GSM_ONLY:
{
- itemText = L"GSM only";
+ itemMainText = L"GSM only";
}
break;
case ID_ITEM_NETWORK_NETWORK_MODE_WCDMA_ONLY:
{
- itemText = ResourceManager::GetString(L"IDS_SETTING_NETWORK_MODE_WCDMA_ONLY");
+ itemMainText = ResourceManager::GetString(L"IDS_SETTING_NETWORK_MODE_WCDMA_ONLY");
}
break;
case ID_GROUP_NETWORK_CONNECTIONS:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CONNECTIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CONNECTIONS");
}
break;
break;
}
- ItemTypeOneLine(itemRectLabel);
- itemRectLabel.width -= W_RESIZE_LABEL_GAP;
+ ItemTypeOneLine(itemMainRectangle);
+ itemMainRectangle.width -= W_RESIZE_LABEL_GAP;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
if (style == TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING)
{
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
}
else
{
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
}
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
int fontSize = GetFontSize();
String groupText;
Label* pLabel = null;
break;
}
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight + H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight + H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pItem->AddControl(*pLabel);
pItem->SetEnabled(false);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, 0, 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);
AppLogDebug("group[%d] item[%d] width[%d]", groupIndex, itemIndex, itemWidth);
int itemHeight = H_GROUP_ITEM_DEFAULT;
int fontSize = GetFontSize();
- Rectangle itemRectangle;
- Rectangle itemSecondLineRectangle;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
- String itemText;
- String itemSecondLineText;
+ String itemMainText;
+ String itemSubText;
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
TableViewItem* pItem = new (std::nothrow) TableViewItem();
{
case ID_GROUP_NFC:
{
- itemText = ResourceManager::GetString(L"IDS_NFC_BODY_NFC");
+ itemMainText = ResourceManager::GetString(L"IDS_NFC_BODY_NFC");
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
}
break;
if (__pResevedPushCandidatesAppidList->GetCount() != 0)
{
int selectItemIndex = __pNfcPredefinedItemPresentationModelInstance->GetSelectNfcReservedPushCandidatesAppIdIndex();
- itemSecondLineText = *static_cast<String*>(__pResevedPushCandidatesAppidList->GetAt(selectItemIndex));
+ itemSubText = *static_cast<String*>(__pResevedPushCandidatesAppidList->GetAt(selectItemIndex));
}
- ItemTypeTwoLine(itemRectangle, itemSecondLineRectangle, fontSize);
- itemText = ResourceManager::GetString(L"IDS_NFC_BODY_PREDEFINED_ITEM_ABB");
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemMainText = ResourceManager::GetString(L"IDS_NFC_BODY_PREDEFINED_ITEM_ABB");
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
}
break;
return pItem;
}
- r = pLabel->Construct(itemRectangle, itemText);
+ r = pLabel->Construct(itemMainRectangle, itemMainText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
return pItem;
}
- r = pSecondLineLabel->Construct(itemSecondLineRectangle, itemSecondLineText);
+ r = pSecondLineLabel->Construct(itemSubRectangle, itemSubText);
if (IsFailed(r))
{
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));
pSecondLineLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pSecondLineLabel);
- relativeLayout.SetMargin(*pSecondLineLabel, itemSecondLineRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pSecondLineLabel, itemSubRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pSecondLineLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pSecondLineLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;\r
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;\r
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;\r
- Rectangle itemRectangle;\r
+ Rectangle itemMainText;\r
int fontSize = GetFontSize();\r
String groupText;\r
Label* pLabel = null;\r
yItemOffset = H_GROUP_INDEX_NO_HELP_TEXT_GAP;\r
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;\r
\r
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;\r
- itemRectangle.y = yItemOffset;\r
- itemRectangle.width = itemWidth;\r
- itemRectangle.height = itemHeight + H_GROUP_INDEX_HELP_TEXT_TOP_GAP;\r
+ itemMainText.x = X_GROUP_ITEM_DEFAULT_LABEL;\r
+ itemMainText.y = yItemOffset;\r
+ itemMainText.width = itemWidth;\r
+ itemMainText.height = itemHeight + H_GROUP_INDEX_HELP_TEXT_TOP_GAP;\r
\r
RelativeLayout relativeLayout;\r
relativeLayout.Construct();\r
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);\r
\r
pLabel = new (std::nothrow) Label();\r
- pLabel->Construct(itemRectangle, groupText);\r
+ pLabel->Construct(itemMainText, groupText);\r
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);\r
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);\r
pLabel->SetTextConfig(fontSize, style);\r
\r
pItem->AddControl(*pLabel);\r
pItem->SetEnabled(false);\r
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, 0, 0, 0);\r
+ relativeLayout.SetMargin(*pLabel, itemMainText.x, 0, 0, 0);\r
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);\r
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);\r
\r
AppLogDebug("group[%d] item[%d] width[%d]", groupIndex, itemIndex, itemWidth);\r
int itemHeight = H_GROUP_ITEM_DEFAULT;\r
int fontSize = GetFontSize();\r
- Rectangle itemRectangle;\r
- Rectangle itemSecondLineRectangle;\r
+ Rectangle itemMainRectangle;\r
+ Rectangle itemSubRectangle;\r
\r
- String itemText;\r
- String itemSecondLineText;\r
+ String itemMainText;\r
+ String itemSubText;\r
\r
- ItemTypeOneLine(itemRectangle);\r
+ ItemTypeOneLine(itemMainRectangle);\r
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;\r
\r
TableViewItem* pItem = new (std::nothrow) TableViewItem();\r
{\r
case ID_GROUP_NFC_PREDEFINED_ITEM:\r
{\r
- ItemTypeTwoLine(itemRectangle, itemSecondLineRectangle, fontSize);\r
- itemText = ResourceManager::GetString(L"IDS_NFC_BODY_PREDEFINED_ITEM_ABB");\r
- itemSecondLineText = *static_cast<String*>(__pReservedPushCandidatesAppIdList->GetAt(itemIndex));\r
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);\r
+ itemMainText = ResourceManager::GetString(L"IDS_NFC_BODY_PREDEFINED_ITEM_ABB");\r
+ itemSubText = *static_cast<String*>(__pReservedPushCandidatesAppIdList->GetAt(itemIndex));\r
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;\r
}\r
break;\r
case ID_GROUP_NFC_PREDEFINED_ITEM_LIST:\r
{\r
style = TABLE_VIEW_ANNEX_STYLE_RADIO;\r
- itemText = *static_cast<String*>(__pReservedPushCandidatesAppIdList->GetAt(itemIndex));\r
+ itemMainText = *static_cast<String*>(__pReservedPushCandidatesAppIdList->GetAt(itemIndex));\r
}\r
break;\r
\r
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);\r
\r
Label* pLabel = new (std::nothrow) Label();\r
- r = pLabel->Construct(itemRectangle, itemText);\r
+ r = pLabel->Construct(itemMainRectangle, itemMainText);\r
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);\r
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);\r
pLabel->SetTextColor(COLOR_MAIN_TEXT);\r
pItem->AddControl(*pLabel);\r
if (groupIndex == ID_GROUP_NFC_PREDEFINED_ITEM)\r
{\r
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);\r
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_ONOFF_SLIDING, 0, 0);\r
}\r
else\r
{\r
- relativeLayout.SetMargin(*pLabel, itemRectangle.x + RELATIVE_LAYOUT_LEFT_MARGIN, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);\r
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x + RELATIVE_LAYOUT_LEFT_MARGIN, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);\r
}\r
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);\r
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);\r
return pItem;\r
}\r
\r
- r = pSecondLineLabel->Construct(itemSecondLineRectangle, itemSecondLineText);\r
+ r = pSecondLineLabel->Construct(itemSubRectangle, itemSubText);\r
if (IsFailed(r))\r
{\r
AppLogDebug("Construct fail [%s]", GetErrorMessage(r));\r
pSecondLineLabel->SetTextColor(COLOR_SUB_TEXT);\r
\r
pItem->AddControl(*pSecondLineLabel);\r
- relativeLayout.SetMargin(*pSecondLineLabel, itemSecondLineRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);\r
+ relativeLayout.SetMargin(*pSecondLineLabel, itemSubRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);\r
relativeLayout.SetRelation(*pSecondLineLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);\r
relativeLayout.SetRelation(*pSecondLineLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);\r
}\r
{\r
Label* secondLabel = static_cast<Label*>(pItem->GetControl(1));\r
int selectItemIndex = __pNfcPredefinedItemPresentationModelInstance->GetSelectNfcReservedPushCandidatesAppIdIndex();\r
- String secondLineText = *static_cast<String*>(__pReservedPushCandidatesAppIdList->GetAt(selectItemIndex));\r
- secondLabel->SetText(secondLineText);\r
+ String itemSubText = *static_cast<String*>(__pReservedPushCandidatesAppIdList->GetAt(selectItemIndex));\r
+ secondLabel->SetText(itemSubText);\r
}\r
break;\r
\r
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
int fontSize = GetFontSize();
yItemOffset = H_GROUP_INDEX_NO_HELP_TEXT_GAP;
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_MARK;
- String itemText;
- String secondLineText;
+ String itemMainText;
String fontReturnValue;
Label* pLabel = null;
int fontSize = GetFontSize();
- itemText = *static_cast<String*>(__pPrivateDataList->GetAt(itemIndex));
+ itemMainText = *static_cast<String*>(__pPrivateDataList->GetAt(itemIndex));
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
int fontSize = GetFontSize();
yItemOffset = H_GROUP_INDEX_NO_HELP_TEXT_GAP;
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
+ Rectangle itemSubRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String firstLineText;
- String secondLineText;
+ String itemMainText;
+ String itemSubText;
String fontReturnValue;
Label* pLabel = null;
int itemHeight = H_GROUP_ITEM_DEFAULT;
Rectangle detailArrow;
- firstLineText = GetDisplayPackageName(itemIndex);
- secondLineText = GetUsedPrivacyService(itemIndex);
+ itemMainText = GetDisplayPackageName(itemIndex);
+ itemSubText = GetUsedPrivacyService(itemIndex);
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemHeight = (itemRectangle.height + itemSecondLineTextRect.height);
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, firstLineText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemSecondLineTextRect, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemSecondLineTextRect.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemSubRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
TableViewGroupItem* pItem = new (std::nothrow) TableViewGroupItem();
- itemRectangle.y = H_GROUP_INDEX_NO_HELP_TEXT_GAP;
- itemRectangle.height = itemHeight;
- itemRectangle.width = itemWidth;
+ itemMainRectangle.y = H_GROUP_INDEX_NO_HELP_TEXT_GAP;
+ itemMainRectangle.height = itemHeight;
+ itemMainRectangle.width = itemWidth;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
String* pKey = null;
- String itemText;
+ String itemMainText;
String currentRegion;
String listRegion;
Label* pLabel = null;
pKey = static_cast<String*>(__pSearchedText->GetAt(itemIndex));
StringTokenizer stringTokenizer(*pKey, L":");
- stringTokenizer.GetNextToken(itemText);
+ stringTokenizer.GetNextToken(itemMainText);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- if (itemText.Contains(currentRegion) == true)
+ if (itemMainText.Contains(currentRegion) == true)
{
__pTableView->SetItemChecked(groupIndex, itemIndex, true);
}
- ItemTypeOneLine(itemRectangle);
- itemRectangle.width = itemWidth;
+ ItemTypeOneLine(itemMainRectangle);
+ itemMainRectangle.width = itemWidth;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(FontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectLabel;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectLabel.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectLabel.y = yItemOffset;
- itemRectLabel.width = itemWidth;
- itemRectLabel.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
TableViewItem*
ResetterForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectLabel;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
- String itemText;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
{
case ID_ITEM_RESET_MAIN_RESET_SETTING:
{
- itemText = ResourceManager::GetString(L"IDS_ST_HEADER_RESET_SETTINGS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_HEADER_RESET_SETTINGS");
}
break;
case ID_ITEM_RESET_MAIN_FACTORY_RESET:
{
- itemText = ResourceManager::GetString(L"IDS_ST_MBODY_FACTORY_RESET");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_MBODY_FACTORY_RESET");
}
break;
break;
}
- ItemTypeOneLine(itemRectLabel);
+ ItemTypeOneLine(itemMainRectangle);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
ResetterSettingForm::CreateTableView(void)
{
Rectangle bounds = GetClientAreaBounds();
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
Rectangle itemSelectCount;
- String itemText = ResourceManager::GetString(L"IDS_ST_BODY_SELECT_ALL");
+ String itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SELECT_ALL");
String itemSelectedText = ResourceManager::GetString(L"IDS_ST_OPT_SELECTED");
bounds.x = X_GROUP_DEFAULT;
bounds.y = H_GROUP_ITEM_DEFAULT;
bounds.width -= (bounds.x * WIDTH_GAP);
- itemRectangle = itemSelectCount = bounds;
- itemRectangle.y = Y_GROUP_DEFAULT;
- itemRectangle.height = H_GROUP_ITEM_DEFAULT;
+ itemMainRectangle = itemSelectCount = bounds;
+ itemMainRectangle.y = Y_GROUP_DEFAULT;
+ itemMainRectangle.height = H_GROUP_ITEM_DEFAULT;
__pCheckButton = new (std::nothrow) CheckButton();
- __pCheckButton->Construct(itemRectangle, CHECK_BUTTON_STYLE_MARK, BACKGROUND_STYLE_NONE, false);
+ __pCheckButton->Construct(itemMainRectangle, CHECK_BUTTON_STYLE_MARK, BACKGROUND_STYLE_NONE, false);
__pCheckButton->SetActionId(IDA_BUTTON_CHECKED, IDA_BUTTON_UNCHECKED, IDA_BUTTON_SELECTED);
- __pCheckButton->SetText(itemText);
+ __pCheckButton->SetText(itemMainText);
AddControl(*__pCheckButton);
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_MARK;
- Rectangle itemRectangle;
- String itemText;
+ Rectangle itemMainRectangle;
+ String itemMainText;
Label* pLabel = null;
int fontSize = GetFontSize();
{
case ID_ITEM_LOCATION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_LOCATIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_LOCATIONS");
}
break;
case ID_ITEM_NETWORK:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_NETWORK");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_NETWORK");
}
break;
case ID_ITEM_WIFI_DIRECT:
{
- itemText = ResourceManager::GetString(L"IDS_ST_HEADER_WI_FI_DIRECT");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_HEADER_WI_FI_DIRECT");
}
break;
case ID_ITEM_WALLPAPER:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MAINDISPLAY_WALLPAPER");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MAINDISPLAY_WALLPAPER");
}
break;
case ID_ITEM_SOUNDS:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDS");
}
break;
case ID_ITEM_BRIGHTNESS:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_BRIGHTNESS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_BRIGHTNESS");
}
break;
case ID_ITEM_FONT:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_FONT");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_FONT");
}
break;
case ID_ITEM_DISPLAY:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DISPLAY");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DISPLAY");
}
break;
case ID_ITEM_AUTO_ROTATE_SCREEN:
{
- itemText = ResourceManager::GetString(L"IDS_ST_HEADER_AUTO_ROTATE_SCREEN_ABB");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_HEADER_AUTO_ROTATE_SCREEN_ABB");
}
break;
case ID_ITEM_DATE_TIME:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DATE_AND_TIME");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DATE_AND_TIME");
}
break;
case ID_ITEM_LANGUAGE_REGION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_LANGUAGE_AND_REGION_ABB");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_LANGUAGE_AND_REGION_ABB");
}
break;
case ID_ITEM_KEYBOARD:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_KEYBOARD");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_KEYBOARD");
}
break;
case ID_ITEM_MANAGE_APPLICATION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MANAGE_APPLICATIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MANAGE_APPLICATIONS");
}
break;
case ID_ITEM_MEMORY:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MEMORY");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MEMORY");
}
break;
case ID_ITEM_DEVELOPER_OPTION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DEVELOPER_OPTIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DEVELOPER_OPTIONS");
}
break;
case ID_ITEM_ABOUT_PHONE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_ABOUT_PHONE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_ABOUT_PHONE");
}
break;
break;
}
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectangle;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
int fontSize = GetFontSize();
yItemOffset = H_GROUP_INDEX_NO_HELP_TEXT_GAP;
itemHeight = H_GROUP_INDEX_NO_TITLE_DEFAULT;
- itemRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectangle.y = yItemOffset;
- itemRectangle.width = itemWidth;
- itemRectangle.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(fontSize, style);
pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
{
AppLogDebug("group[%d] index[%d]", groupIndex, itemIndex);
- Rectangle itemRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_RADIO;
- String itemText = L"";
+ String itemMainText = L"";
String valueKeyString = L"";
- String secondLineText;
String fontReturnValue;
Label* pLabel = null;
int fontSize = GetFontSize();
int itemHeight = H_GROUP_ITEM_DEFAULT;
- itemText = GetItemString(itemIndex);
+ itemMainText = GetItemString(itemIndex);
TableViewItem* pItem = new (std::nothrow) TableViewItem();
RelativeLayout relativeLayout;
pItem->Construct(relativeLayout, Dimension(itemWidth, itemHeight), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
- ItemTypeOneLine(itemRectangle);
+ ItemTypeOneLine(itemMainRectangle);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
Color colorText = COLOR_HELP_TEXT_TYPE_01;
- Rectangle itemRectLabel;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectLabel.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectLabel.y = yItemOffset;
- itemRectLabel.width = itemWidth;
- itemRectLabel.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(colorText);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
TableViewItem*
SecurityForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
- Rectangle itemRectLabel;
+ Rectangle itemMainRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
Label* pLabel = null;
- String itemText;
+ String itemMainText;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
{
case ID_ITEM_SECURITY_SCREEN_LOCK_TYPE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SCREEN_LOCK_TYPE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SCREEN_LOCK_TYPE");
}
break;
case ID_ITEM_SECURITY_SCREEN_LOCK_SCREEN_OPTION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_LOCK_SCREEN_OPTIONS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_LOCK_SCREEN_OPTIONS");
}
break;
case ID_GROUP_SECURITY_PHONE_SECURITY:
{
- itemText = ResourceManager::GetString(L"IDS_ST_MBODY_FIND_MY_MOBILE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_MBODY_FIND_MY_MOBILE");
}
break;
case ID_GROUP_SECURITY_SIM:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SIM_LOCK");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SIM_LOCK");
if (itemIndex == ID_ITEM_SECURITY_PIN_LOCK)
{
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
case ID_ITEM_SECURITY_PIN_LOCK:
{
style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_PIN_LOCK");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_PIN_LOCK");
}
break;
case ID_ITEM_SECURITY_CHANGE_PIN_1:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CHANGE_PIN1");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CHANGE_PIN1");
}
break;
case ID_ITEM_SECURITY_CHANGE_PIN_2:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CHANGE_PIN2");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CHANGE_PIN2");
}
break;
case ID_GROUP_SECURITY_DEVICE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_DEVICE_ENCRYPTED");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_DEVICE_ENCRYPTED");
}
break;
break;
}
- ItemTypeOneLine(itemRectLabel);
+ ItemTypeOneLine(itemMainRectangle);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
int yItemOffset = H_GROUP_INDEX_HELP_TEXT_TOP_GAP;
Color colorText = COLOR_HELP_TEXT_TYPE_01;
LabelTextStyle style = LABEL_TEXT_STYLE_NORMAL;
- Rectangle itemRectLabel;
+ Rectangle itemMainRectangle;
String groupText;
Label* pLabel = null;
break;
}
- itemRectLabel.x = X_GROUP_ITEM_DEFAULT_LABEL;
- itemRectLabel.y = yItemOffset;
- itemRectLabel.width = itemWidth;
- itemRectLabel.height = itemHeight;
+ itemMainRectangle.x = X_GROUP_ITEM_DEFAULT_LABEL;
+ itemMainRectangle.y = yItemOffset;
+ itemMainRectangle.width = itemWidth;
+ itemMainRectangle.height = itemHeight;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_INDEX_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, groupText);
+ pLabel->Construct(itemMainRectangle, groupText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_GROUP_TITLE_TEXT, style);
pLabel->SetTextColor(colorText);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
pItem->SetEnabled(false);
SoundsForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
bool slientMode = false;
- Rectangle itemRectLabel;
- Rectangle itemRectSlider;
+ Rectangle itemMainRectangle;
+ Rectangle itemSliderRectangle;
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
Bitmap* pBitmapSoundMin = null;
Bitmap* pBitmapSoundMax = null;
Label* pLabel = null;
Slider* pSlider = null;
- String itemText;
+ String itemMainText;
int fontSize = GetFontSize();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- ItemTypeOneLine(itemRectLabel);
+ ItemTypeOneLine(itemMainRectangle);
- itemRectSlider.x = 0;
- itemRectSlider.y = Y_GROUP_ITEM_DEFAULT_LABEL;
- itemRectSlider.width = itemWidth;
- itemRectSlider.height = H_GROUP_ITEM_DEFAULT_SLIDER;
+ itemSliderRectangle.x = 0;
+ itemSliderRectangle.y = Y_GROUP_ITEM_DEFAULT_LABEL;
+ itemSliderRectangle.width = itemWidth;
+ itemSliderRectangle.height = H_GROUP_ITEM_DEFAULT_SLIDER;
if (groupIndex == ID_GROUP1)
{
{
case ID_ITEM_MAIN_VOLUME:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDS");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDS");
if (SettingInfo::GetValue(SETTING_INFO_KEY_SOUND_SILENTMODE, slientMode) == E_SUCCESS)
{
case ID_ITEM_MAIN_VIBRATION:
{
bool vibratorStatus = false;
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_CALLALERTTYPE_VIBRATION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_CALLALERTTYPE_VIBRATION");
if (SettingInfo::GetValue(SETTING_INFO_KEY_VIBRATOR, vibratorStatus) == E_SUCCESS)
{
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
{
case ID_ITEM_INCOMMING_CALL_RINGTONE:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_INCOMING_CALL_RINGTONE");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_INCOMING_CALL_RINGTONE");
}
break;
case ID_ITEM_INCOMMING_CALL_VIBRATION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_INCOMING_CALL_VIBRATION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_INCOMING_CALL_VIBRATION");
}
break;
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectLabel.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
if (itemIndex == ID_ITEM_VOLUME_SYSTEM)
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SYSTEM");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SYSTEM");
}
else if (itemIndex == ID_ITEM_VOLUME_MEDIA)
{
- itemText = ResourceManager::GetString(L"IDS_COM_BODY_MEDIA");
+ itemMainText = ResourceManager::GetString(L"IDS_COM_BODY_MEDIA");
settingInfoVolumeKey = SETTING_INFO_KEY_SOUND_MEDIA_VOLUME;
}
else if (itemIndex == ID_ITEM_VOLUME_NOTIFICATION)
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_NOTIFICATION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_NOTIFICATION");
settingInfoVolumeKey = SETTING_INFO_KEY_SOUND_NOTIFICATION_VOLUME;
}
pSlider = new (std::nothrow) Slider();
- pSlider->Construct(itemRectSlider, BACKGROUND_STYLE_NONE, true, GROUP_ITEM_SLIDER_MIN_VALUE, GROUP_ITEM_SLIDER_MAX_VALUE);
- pSlider->SetTitleText(itemText);
+ pSlider->Construct(itemSliderRectangle, BACKGROUND_STYLE_NONE, true, GROUP_ITEM_SLIDER_MIN_VALUE, GROUP_ITEM_SLIDER_MAX_VALUE);
+ pSlider->SetTitleText(itemMainText);
int systemVolume = 0;
if (SettingInfo::GetValue(settingInfoVolumeKey, systemVolume) != E_SUCCESS)
{
case ID_ITEM_NOTIFICATION_MESSAGE_ALERT:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MESSAGE_ALERT");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MESSAGE_ALERT");
}
break;
case ID_ITEM_NOTIFICATION_MESSAGE_ALERT_REPETITION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_MSG_ALERT_REPETITION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_MSG_ALERT_REPETITION");
}
break;
case ID_ITEM_NOTIFICATION_EMAIL_ALERT:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_EMAIL_ALERT");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_EMAIL_ALERT");
}
break;
case ID_ITEM_NOTIFICATION_EMAIL_ALERT_REPETITION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_EMAIL_ALERT_REPETITION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_EMAIL_ALERT_REPETITION");
}
break;
}
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
{
case ID_ITEM_VIBRATION_NOTIFICATION:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_NOTIFICATION");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_NOTIFICATION");
}
break;
case ID_ITEM_VIBRATION_HAPTIC_FEEDBACK:
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDFEEDBACK_HAPTIC_FEEDBACK");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SOUNDFEEDBACK_HAPTIC_FEEDBACK");
}
break;
pSlider = new (std::nothrow) Slider();
- pSlider->Construct(itemRectSlider, BACKGROUND_STYLE_NONE, true, GROUP_ITEM_SLIDER_MIN_VALUE, GROUP_ITEM_SLIDER_MAX_VALUE);
- pSlider->SetTitleText(itemText);
+ pSlider->Construct(itemSliderRectangle, BACKGROUND_STYLE_NONE, true, GROUP_ITEM_SLIDER_MIN_VALUE, GROUP_ITEM_SLIDER_MAX_VALUE);
+ pSlider->SetTitleText(itemMainText);
pSlider->SetValue(GROUP_ITEM_SLIDER_DEFAULT_VALUE);
pBitmapSoundMin = ResourceManager::GetBitmapN(IDB_VIBRATION_MIN);
}
else
{
- itemText = ResourceManager::GetString(L"IDS_ST_BODY_SCREEN_LOCK_SOUND");
+ itemMainText = ResourceManager::GetString(L"IDS_ST_BODY_SCREEN_LOCK_SOUND");
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectLabel, itemText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_BOLD);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
String key;
String stringGMT;
String tmpStr;
- String firstLineText;
- String secondLineText;
- Rectangle itemRectangle;
+ String itemMainText;
+ String itemSubText;
+ Rectangle itemMainRectangle;
Rectangle itemGMTRectangle;
- Rectangle itemSecondLineTextRect;
+ Rectangle itemSubRectangle;
int itemHeight = H_GROUP_ITEM_DEFAULT;
String noSearchResult = ResourceManager::GetString(L"IDS_COM_BODY_NO_SEARCH_RESULTS");
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- firstLineText = pData->GetCountryData();
- secondLineText = pData->GetRegionData();
+ itemMainText = pData->GetCountryData();
+ itemSubText = pData->GetRegionData();
gmtMin = pData->GetGMTData();
- if (firstLineText.Equals(noSearchResult, false))
+ if (itemMainText.Equals(noSearchResult, false))
{
- ItemTypeOneLine(itemRectangle);
- itemHeight = (itemRectangle.height);
+ ItemTypeOneLine(itemMainRectangle);
+ itemHeight = (itemMainRectangle.height);
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, firstLineText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemMainRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}
}
}
- ItemTypeTwoLine(itemRectangle, itemSecondLineTextRect, fontSize);
- itemHeight = (itemRectangle.height + itemSecondLineTextRect.height);
- itemGMTRectangle = itemRectangle;
+ ItemTypeTwoLine(itemMainRectangle, itemSubRectangle, fontSize);
+ itemHeight = (itemMainRectangle.height + itemSubRectangle.height);
+ itemGMTRectangle = itemMainRectangle;
RelativeLayout relativeLayout;
relativeLayout.Construct();
pItem->Construct(relativeLayout, Dimension(itemWidth, itemHeight), style);
pItem->SetBackgroundColor(COLOR_BG_GROUP_ITEM_DEFAULT);
- itemRectangle.width = itemWidth;
+ itemMainRectangle.width = itemWidth;
itemGMTRectangle.width = W_GMT_FIXED_SIZE;
- itemGMTRectangle.x = itemRectangle.width - itemGMTRectangle.width;
- itemRectangle.width = itemRectangle.width - itemGMTRectangle.width;
+ itemGMTRectangle.x = itemMainRectangle.width - itemGMTRectangle.width;
+ itemMainRectangle.width = itemMainRectangle.width - itemGMTRectangle.width;
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemRectangle, firstLineText);
+ pLabel->Construct(itemMainRectangle, itemMainText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_MAIN_TEXT);
relativeLayout.SetRelation(*pLabel, *pSecLabel, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
pLabel = new (std::nothrow) Label();
- pLabel->Construct(itemSecondLineTextRect, secondLineText);
+ pLabel->Construct(itemSubRectangle, itemSubText);
pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
pLabel->SetTextColor(COLOR_SUB_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemSecondLineTextRect.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ relativeLayout.SetMargin(*pLabel, itemSubRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
}