virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source){}
virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
- virtual void OnKeypadClosed(Tizen::Ui::Control& source){}
+ virtual void OnKeypadClosed(Tizen::Ui::Control& source);
virtual void OnKeypadOpened(Tizen::Ui::Control& source){}
virtual void OnKeypadWillOpen(Tizen::Ui::Control& source){}
virtual void OnKeypadBoundsChanged(Tizen::Ui::Control& source){}
virtual void OnSliderBarMoved(Tizen::Ui::Controls::Slider& source, int value){}
private:
+ void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+private:
int __currentTableViewList;
};
virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source){}
virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
- virtual void OnKeypadClosed(Tizen::Ui::Control& source){}
+ virtual void OnKeypadClosed(Tizen::Ui::Control& source);
virtual void OnKeypadOpened(Tizen::Ui::Control& source){}
virtual void OnKeypadWillOpen(Tizen::Ui::Control& source){}
virtual void OnKeypadBoundsChanged(Tizen::Ui::Control& source){}
extern const int W_DETAIL_ARROW_BUTTON;
extern const int FRFRESH_REQUEST_EVENT;
+extern const int BACK_GROUND_EVENT;
extern const wchar_t* IDB_MAIN_FOLDER_BACKGROUND;
CreateFooter();
CreateTableView();
- PowerManager::SetBatteryEventListener(static_cast<IBatteryEventListener*>(this));
- PowerManager::SetChargingEventListener(*(static_cast<IChargingEventListener*>(this)));
+ PowerManager::SetBatteryEventListener(this);
+ PowerManager::AddChargingEventListener(*this);
return E_SUCCESS;
}
__pTableView->SetItemProvider(null);
}
- PowerManager::SetBatteryEventListener(static_cast<IBatteryEventListener*>(null));
- PowerManager::SetChargingEventListener(*(static_cast<IChargingEventListener*>(null)));
+ PowerManager::SetBatteryEventListener(null);
+ PowerManager::RemoveChargingEventListener(*this);
SetFormBackEventListener(null);
return E_SUCCESS;
return;
}
- pFirstLine->SetText(ResourceManager::GetString(L"IDS_ST_BODY_MY_NUMBER"));
+ pFirstLine->SetText(ResourceManager::GetString(L"IDS_ST_BODY_BATTERY"));
pFirstLine->Invalidate(false);
String batteryPercentage;
void
PhoneInfoForm::OnKeypadClosed(Tizen::Ui::Control& source)
{
- SetFocus();
}
void
{
int itemCount = __pTableView->GetItemCountAt(groupIndex);
+ bool showEmptyMessageBox = true;
+ int textLength = __pEditField->GetText().GetLength();
+
+ for (int i = 0; i < textLength; i++)
+ {
+ wchar_t element;
+ __pEditField->GetText().GetCharAt(i, element);
+
+ if (element != ISSPACE )
+ {
+ showEmptyMessageBox = false;
+ break;
+ }
+ }
+
for (int count = 0; count < itemCount; count++)
{
- __pTableView->RefreshItem(groupIndex, count, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ if (count == 0)
+ {
+ if ((showEmptyMessageBox == true) || (__pEditField->GetText().Equals(L"", false)))
+ {
+ AppLogDebug("__pEditField is empty");
+ }
+ else
+ {
+ __pTableView->RefreshItem(groupIndex, count, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ }
+ else
+ {
+ __pTableView->RefreshItem(groupIndex, count, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ }
}
}
{
RefreshTableViewItem(0);
}
+ else if (requestId == BACK_GROUND_EVENT)
+ {
+ String phoneName;
+ if (SettingInfo::GetValue(SETTING_INFO_KEY_DEVICE_NAME, phoneName) != E_SUCCESS)
+ {
+ AppLogDebug("GetValue Fail ");
+ }
+ else
+ {
+ if (__pEditField->GetText().IsEmpty() == false)
+ {
+ bool showEmptyMessageBox = true;
+ int textLength = __pEditField->GetText().GetLength();
+
+ for (int i = 0; i < textLength; i++)
+ {
+ wchar_t element;
+ __pEditField->GetText().GetCharAt(i, element);
+
+ if (element != ISSPACE )
+ {
+ showEmptyMessageBox = false;
+ break;
+ }
+ }
+
+ if (showEmptyMessageBox == false)
+ {
+ if (__pEditField->GetText().CompareTo(phoneName))
+ {
+ SettingInfo::SetValue(SETTING_INFO_KEY_DEVICE_NAME, __pEditField->GetText());
+ }
+ }
+ }
+ }
+ }
if (pArgs == null)
{
AppLogDebug("pArgs is null");
}
else
{
- RemoveAllControls();
+ int contorlCount = GetControlCount();
+ for (int i = 0; i < contorlCount; i++)
+ {
+ RemoveControl(GetControl(0));
+ }
+// RemoveAllControls();
}
RemoveAllGroupItemNodeList();
RemoveAllItemHashCodeMap();
-//
+//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Flora License, Version 1.0 (the License);
{
if (__pTableView != null)
{
- __pTableView->RemoveAllControls();
+ int tableViewControlCount = __pTableView->GetControlCount();
+ for (int i = 0; i < tableViewControlCount; i++)
+ {
+ __pTableView->RemoveControl(__pTableView->GetControl(0));
+ }
+// __pTableView->RemoveAllControls();
__pTableView = null;
}
- RemoveAllControls();
+ int controlCount = GetControlCount();
+ for (int i = 0; i < controlCount; i++)
+ {
+ RemoveControl(GetControl(0));
+ }
+// RemoveAllControls();
if ( GetUserCertificateStoreCount() != 0)
{
AppLogDebug("GetUserCertificateStoreCount %d", GetUserCertificateStoreCount());
-//
+//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Flora License, Version 1.0 (the License);
if (__pTableView != null)
{
- __pTableView->RemoveAllControls();
+ int tableViewControlCount = __pTableView->GetControlCount();
+ for (int i = 0; i < tableViewControlCount; i++)
+ {
+ __pTableView->RemoveControl(__pTableView->GetControl(0));
+ }
+// __pTableView->RemoveAllControls();
__pTableView = null;
}
- RemoveAllControls();
+ int controlCount = GetControlCount();
+ for (int i = 0; i < controlCount; i++)
+ {
+ RemoveControl(GetControl(0));
+ }
+// RemoveAllControls();
if (!IsFailed(__pCertificatePresentationModelInstance->FindUserCertificateToInstallFromStorage()))
{
CreateTableView();
bool hourFormat = false;
__pTableView->UpdateTableView();
__pTableView->CollapseGroup(ID_GROUP_DATE_AND_TIME_FORMAT_LIST);
+ __pTableView->RefreshItem(ID_GROUP_DATE_AND_TIME_FORMAT, 0, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
if (SettingInfo::GetValue(SETTING_INFO_KEY_LOCALE_UPDATE_AUTO, automaticUpdate) == E_SUCCESS)
{
{
Rectangle detailArrow;
Bitmap* pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_CLOSED);
+ if (__pTableView->IsGroupExpanded(ID_GROUP_DATE_AND_TIME_FORMAT_LIST))
+ {
+ pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_OPENED);
+ }
+ else
+ {
+ pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_CLOSED);
+ }
detailArrow = itemRectangle;
detailArrow.y = itemRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
if (groupIndex == ID_GROUP_FONT)
{
pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_CLOSED);
+ if (__pTableView->IsGroupExpanded(ID_GROUP_FONT_LIST))
+ {
+ pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_OPENED);
+ }
+ else
+ {
+ pBitmap = ResourceManager::GetBitmapN(IDB_DETAIL_BUTTON_EXPAND_CLOSED);
+ }
detailArrow = itemRectangle;
detailArrow.y = itemRectangle.y + ((itemHeight - W_DETAIL_ARROW_BUTTON) / DEVIDE_TWO);
-//
+//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Flora License, Version 1.0 (the License);
if (__pTableView != null)
{
- __pTableView->RemoveAllControls();
+ int tableViewControlCount = __pTableView->GetControlCount();
+ for (int i = 0; i < tableViewControlCount; i++)
+ {
+ __pTableView->RemoveControl(__pTableView->GetControl(0));
+ }
+// __pTableView->RemoveAllControls();
__pTableView = null;
}
- RemoveAllControls();
+ int controlCount = GetControlCount();
+ for (int i = 0; i < controlCount; i++)
+ {
+ RemoveControl(GetControl(0));
+ }
+// RemoveAllControls();
if (pLangList->GetCount() != 0)
{
CreateTableView();
-//
+//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Flora License, Version 1.0 (the License);
AddControl(*pLabel);
- pLabel = new (std::nothrow) Label();
- pLabel->Construct(HelpContentsRect, itemHelp);
- pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
- pLabel->SetTextConfig(FONT_SIZE_TITLE_HELP_TEXT, LABEL_TEXT_STYLE_NORMAL);
- pLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
+ Label* pSecondLabel = new (std::nothrow) Label();
+ pSecondLabel = new (std::nothrow) Label();
+ pSecondLabel->Construct(HelpContentsRect, itemHelp);
+ pSecondLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+ pSecondLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
+ pSecondLabel->SetTextConfig(FONT_SIZE_TITLE_HELP_TEXT, LABEL_TEXT_STYLE_NORMAL);
+ pSecondLabel->SetTextColor(COLOR_HELP_TEXT_TYPE_01);
- AddControl(*pLabel);
+ AddControl(*pSecondLabel);
helpTitleRect.y = (HelpContentsRect.y + HelpContentsRect.height);
}
void
LocationHelpForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
{
- RemoveAllControls();
-
+ int controlCount = GetControlCount();
+ for (int i = 0; i < controlCount; i++)
+ {
+ RemoveControl(GetControl(0));
+ }
+// RemoveAllControls();
CreateHelpTextView();
}
static const int ID_ITEM_CONNECTIVITY_NFC = 3;
static const int ID_GROUP_CONNECTIVITY_ITEM_COUNT = 4;
+//static const int ID_GROUP_MODE = 1;
+//static const int ID_ITEM_MODE_FLIGHT_MODE = 0;
+//static const int ID_GROUP_MODE_ITEM_COUNT = 1;
+
static const int ID_GROUP_PERSONAL = 1;
static const int ID_ITEM_PERSONAL_HOME_SCREEN = 0;
static const int ID_ITEM_PERSONAL_LOCK_SCREEN = 1;
{
case ID_ITEM_PERSONAL_HOME_SCREEN:
{
- pBitmap = ResourceManager::GetBitmapN(IDB_WALLPAPER);
+ pBitmap = ResourceManager::GetBitmapN(IDB_HOME_SCREEN);
itemText = ResourceManager::GetString(L"IDS_ST_HEADER_HOME_SCREEN");
}
break;
__pTableView = null;
SetFormBackEventListener(null);
+ RemoveOrientationEventListener(*this);
return E_SUCCESS;
}
void
ManageApplicationInfoForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
{
+ if (__pTableView == null)
+ {
+ AppLogDebug("__pTableView is null");
+ return;
+ }
__pTableView->RefreshItem(ID_GROUP_APPLICATION_NAME, ID_ITEM_APPLICATION_COMMAND_BUTTON, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
Invalidate(true);
}
default:
break;
}
+}
+
+void
+LocaleRegionForm::OnKeypadClosed(Tizen::Ui::Control& source)
+{
+ __pSearchBar->SetMode(SEARCH_BAR_MODE_NORMAL);
}
\ No newline at end of file
#include "StMainFrame.h"
#include "StSettingsApp.h"
#include "StSettingScenesList.h"
+#include "StTypes.h"
using namespace Tizen::App;
using namespace Tizen::Base;
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const int FRFRESH_REQUEST_EVENT = 9999;
-
static const wchar_t* APPCONTROL_OPERATION_ID_CONFIGURE_LOCATION = L"http://tizen.org/appcontrol/operation/configure/location";
static const wchar_t* APPCONTROL_OPERATION_ID_CONFIGURE_BLUETOOTH_VISIBILITY = L"http://tizen.org/appcontrol/operation/configure/bluetooth/visibility";
static const wchar_t* APPCONTROL_OPERATION_ID_CONFIGURE_FONT_TYPE = L"http://tizen.org/appcontrol/operation/configure/font/type";
SettingsApp::OnBackground(void)
{
AppLogDebug("Background");
+ Form* pCurrentForm = (SceneManager::GetInstance()->GetCurrentScene()->GetForm());
+ pCurrentForm->SendUserEvent(BACK_GROUND_EVENT, null);
}
void
}
else if (operationId.CompareTo(APPCONTROL_OPERATION_ID_CONFIGURE_BLUETOOTH_VISIBILITY) == 0)
{
- AppLogTag("hwkim","operationId[%ls]", operationId.GetPointer());
+ AppLogDebug("operationId[%ls]", operationId.GetPointer());
const wchar_t* pSceneName = null;
ArrayList* pArgs = new (std::nothrow) ArrayList();
pArgs->Construct();
void
SoundsForm::OnGroupedTableViewGroupItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status)
{
+}
+
+void
+SoundsForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ if (requestId == FRFRESH_REQUEST_EVENT)
+ {
+ if (__pTableView)
+ {
+ __pTableView->UpdateTableView();
+ bool itemStatus = false;
+
+ if (SettingInfo::GetValue(SETTING_INFO_KEY_VIBRATOR, itemStatus) == E_SUCCESS)
+ {
+ __pTableView->SetItemChecked(ID_GROUP1, ID_ITEM_MAIN_VIBRATION, itemStatus);
+ }
+ if (SettingInfo::GetValue(SETTING_INFO_KEY_SOUND_SILENTMODE, itemStatus) == E_SUCCESS)
+ {
+ if (itemStatus == true)
+ {
+ __pTableView->SetItemChecked(ID_GROUP1, ID_ITEM_MAIN_VOLUME, false);
+ __pTableView->SetItemEnabled(ID_GROUP2, ID_GROUP2_INDEX1, false);
+ }
+ else
+ {
+ __pTableView->SetItemChecked(ID_GROUP1, ID_ITEM_MAIN_VOLUME, true);
+ __pTableView->SetItemEnabled(ID_GROUP2, ID_GROUP2_INDEX1, true);
+ }
+ }
+ }
+ if (pArgs)
+ {
+ pArgs->RemoveAll(true);
+ delete pArgs;
+ }
+ }
}
\ No newline at end of file
Footer* pFooter = GetFooter();
AppAssert(pFooter);
- pFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT);
-
FooterItem footerItemName;
footerItemName.Construct(IDA_FOOTER_ITEM_NAME);
footerItemName.SetText(ResourceManager::GetString(L"IDS_ST_BODY_NAME"));
}
}
+void
+TimeZoneForm::OnKeypadClosed(Tizen::Ui::Control& source)
+{
+ __pSearchBar->SetMode(SEARCH_BAR_MODE_NORMAL);
+}
+
result
TiemZoneComparer::Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp) const
{
const int W_DETAIL_ARROW_BUTTON = 72;
const int FRFRESH_REQUEST_EVENT = 9999;
+const int BACK_GROUND_EVENT = 9998;
const wchar_t* IDB_MAIN_FOLDER_BACKGROUND = L"T01_main_folder_bg.png";