, public Tizen::Ui::ITextEventListener
, public Tizen::Ui::ITouchEventListener
, public Tizen::Ui::Controls::IFastScrollListener
+ , public Tizen::Ui::IFocusEventListener
, public Tizen::Ui::Controls::IGroupedListViewItemEventListener
, public Tizen::Ui::Controls::IGroupedListViewItemProvider
, public Tizen::Ui::Controls::IListViewItemEventListener
virtual void OnFastScrollIndexSelected (Tizen::Ui::Control& source, Tizen::Base::String& index);
+ virtual void OnFocusGained(const Tizen::Ui::Control& source);
+ virtual void OnFocusLost(const Tizen::Ui::Control& source);
+
virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
static const int IDA_BUTTON_MORE_INFO = 25;
static const int IDA_BUTTON_BIRTHDAY_CLEAR = 26;
static const int IDA_BUTTON_DEFAULT_PHONE_NUMBER = 27;
+static const int IDA_BUTTON_RINGTONE_CLEAR = 28;
static const int IDA_CONTEXT_MENU_ITEM_JOB_TITLE = 31;
static const int IDA_CONTEXT_MENU_ITEM_DEPARTMENT = 32;
static const int IDA_CONTEXT_MENU_ITEM_INSTANT_MESSENGER = 33;
static const wchar_t* IDB_BUTTON_CAMERA_PRESSED = L"C02_caller_id_icon_camera_press.png";
static const wchar_t* IDB_BUTTON_DROPBOX = L"C02_button_icon_dropbox.png";
static const wchar_t* IDB_THUMBNAIL_BACKGROUND = L"C02_created_photo_bg.png";
+static const wchar_t* IDB_DETAILS_RESET_NORMAL = L"00_button_refresh.png";
+static const wchar_t* IDB_DETAILS_RESET_PRESSED = L"00_button_refresh_press.png";
static const wchar_t* INPUT_DATA_SELECTION_MODE_SINGLE = L"single";
static const wchar_t* INPUT_KEY_SELECTION_MODE = L"http://tizen.org/appcontrol/data/selection_mode";
static const int H_EMPTY_SPACE = 32;
static const int H_EXPANDED_NAME_FIELDS = 672;
static const int H_BUTTON = 74;
+static const int H_ICON_BUTTON = 74;
static const int W_THUMBNAIL = 360;
static const int W_TITLE_LABEL = 170;
static const int X_MORE_INFORMATION_BUTTON = 60;
static const int H_SAVE_CONTACT_BUTTON = 74;
static const int W_SAVE_CONTACT_BUTTON = 318;
static const int W_POPUP_ITEM_GAP = 20;
+static const int X_REFRESH_BUTTON_MARGIN = 88;
static const int FONT_SIZE_SAVE_CONTACT_CONFIRM = 42;
static const int FONT_SIZE_SAVE_CONTACT_BUTTON = 36;
{
case IDA_ACTION_BAR_SAVE:
{
- long long avialableMemory = 0;
result r = E_SUCCESS;
- String key(RUNTIMEINFO_INTERNAL_MEMORY_KEY);
-
- r = RuntimeInfo::GetValue(key, avialableMemory);
- if(avialableMemory == 0)
- {
- int modalResult = 0;
- MessageBox memoryFullMessageBox;
- memoryFullMessageBox.Construct(L"", ResourceManager::GetString(L"IDS_EMAIL_POP_DEVICE_STORAGE_FULL"), MSGBOX_STYLE_NONE, 1000);
- memoryFullMessageBox.ShowAndWait(modalResult);
- return;
- }
-
r = SaveContactData();
if (r != E_SUCCESS)
}
}
break;
+ case IDA_BUTTON_RINGTONE_CLEAR:
+ {
+ __pPresentationModel->SetValue(DETAIL_PROPERTY_RINGTONE, L"", 0);
+ __pTableView->RefreshItem(TABLE_VIEW_GROUP_RINGTONE_FIELD_INDEX, 2, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ break;
default:
break;
}
break;
case TABLE_VIEW_NOTE_FIELD_INDEX:
{
- Control* pNoteField = pItem->GetControl(0);
-
+ Control* pNoteField = pItem->GetControl(1);
+ Control* pNoteLabel = pItem->GetControl(0);
if (pNoteField == null)
{
return;
}
- pItem->SetSize(pItem->GetWidth(), pNoteField->GetHeight());
+ pItem->SetSize(pItem->GetWidth(), pNoteLabel->GetHeight() + pNoteField->GetHeight());
}
break;
default:
pLabelRingToneName->SetTextColor(Color(COLOR_RINGTONE));
pRingtoneItem->AddControl(pLabelRingToneName);
+ Button* pClearButton = new (std::nothrow) Button();
+ pClearButton->Construct(Rectangle(itemWidth - X_REFRESH_BUTTON_MARGIN, (pRingtoneItem->GetHeight() - H_ICON_BUTTON) / 2, H_ICON_BUTTON, H_ICON_BUTTON));
+ pClearButton->SetActionId(IDA_BUTTON_RINGTONE_CLEAR);
+ pClearButton->AddActionEventListener(*this);
+
+ Bitmap* pReset = ResourceManager::GetBitmapN(IDB_DETAILS_RESET_NORMAL);
+ if (pReset != null)
+ {
+ pClearButton->SetNormalBitmap(Point(0, 0), *pReset);
+ delete pReset;
+ }
+ pReset = ResourceManager::GetBitmapN(IDB_DETAILS_RESET_PRESSED);
+ if (pReset != null)
+ {
+ pClearButton->SetPressedBitmap(Point(0, 0), *pReset);
+ delete pReset;
+ }
+
+ pRingtoneItem->AddControl(pClearButton);
+ pRingtoneItem->SetIndividualSelectionEnabled(pClearButton, true);
+
return pRingtoneItem;
}
{
result r = E_SUCCESS;
+ if (isSaved == true)
+ {
+ long long avialableMemory = 0;
+ result r = E_SUCCESS;
+
+ String key(RUNTIMEINFO_INTERNAL_MEMORY_KEY);
+
+ r = RuntimeInfo::GetValue(key, avialableMemory);
+ if (avialableMemory == 0)
+ {
+ int modalResult = 0;
+ MessageBox memoryFullMessageBox;
+ memoryFullMessageBox.Construct(L"", ResourceManager::GetString(L"IDS_EMAIL_POP_DEVICE_STORAGE_FULL"), MSGBOX_STYLE_NONE, 1000);
+ memoryFullMessageBox.ShowAndWait(modalResult);
+ return E_FAILURE;
+ }
+ }
+
r = SaveNameFields();
for (int i = 0; i < __pPhoneNumberFieldItem->GetCount(); i++)
__pSearchBar->Construct(Rectangle(0, 0, clientBounds.width, H_SEARCHBAR));
__pSearchBar->SetGuideText(ResourceManager::GetString(L"IDS_COM_BODY_SEARCH"));
__pSearchBar->AddSearchBarEventListener(*this);
+ __pSearchBar->AddFocusEventListener(*this);
__pSearchBar->AddTextEventListener(*this);
__pSearchBar->AddKeypadEventListener(*this);
__pSearchBar->SetContentAreaSize(Dimension(0, 0));
}
void
+ContactListPanel::OnFocusGained(const Tizen::Ui::Control& source)
+{
+ if (source.Equals(*__pSearchBar))
+ {
+ if (__pListView->GetShowState() == true)
+ {
+ __pListView->UpdateList();
+ }
+ }
+}
+
+void
+ContactListPanel::OnFocusLost(const Tizen::Ui::Control& source)
+{
+}
+
+void
ContactListPanel::ShowContactValuePopup(int groupIndex, int itemIndex)
{
delete __pMultipleContactValuePopup;
pForm->SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, false);
__isKeypadOpened = true;
-
- if(__pListView->GetShowState() == true)
- {
- __pListView->UpdateList();
- }
}
void
__changedSceneId = IDSCN_CONTACT_LIST;
}
-
- if(__pListView->GetShowState() == true && __pSearchBar->GetMode() != SEARCH_BAR_MODE_INPUT)
- {
- __pListView->UpdateList();
- }
}
void