#ifndef _CT_GROUP_LIST_PANEL_H_
#define _CT_GROUP_LIST_PANEL_H_
-#include <FApp.h>
#include <FBase.h>
#include <FUi.h>
#include "CtIContactEventListener.h"
virtual void OnCategoriesChanged(void);
private:
- void ReturnValues(RequestId requestId, Tizen::App::AppCtrlResult appCtrlResult, const Tizen::Base::Collection::IMap* pReturnValue);
- result LaunchAppControl(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, const Tizen::Base::String& argument, const Tizen::Base::String& type = L"");
-
-private:
int __sweptItemIndex;
- Tizen::App::AppControl* __pAppControl;
Tizen::Ui::Controls::GroupedListView* __pListView;
Tizen::Ui::Controls::ContextMenu* __pContextMenuMore;
GroupListPresentationModel* __pPresentationModel;
{
ContactsApp* pContactsApp = static_cast<ContactsApp*>(ContactsApp::GetInstance());
pContactsApp->RemoveContactsAppChangeEventListener(*this);
+
+ delete __pAppControl;
+ __pAppControl = null;
}
void
static const wchar_t* IDB_BUTTON_ADD_PRESSED = L"C02_caller_id_icon_add_press.png";
static const wchar_t* IDB_BUTTON_CAMERA = L"C02_caller_id_icon_camera.png";
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* INPUT_KEY_TYPE = L"type";
static const wchar_t* INPUT_KEY_MEDIA_TYPE = L"mediaType";
static const int H_THUMBNAIL_DELETE_BUTTON_GAP = 31;
static const int H_GROUP_RINGTONE_LABEL = 64;
static const int Y_EDITDATE = 8;
+static const int W_DROPBOX_ICON = 29;
+static const int H_DROPBOX_ICON = 29;
static const int GROUP_ITEM_COUNT = 11;
static const int NAME_FIELD_ITEM_COUNT = 1;
pButtonType->AddTouchEventListener(*this);
pButtonType->SetName(Integer::ToString(parsedItemIndex));
+ Bitmap* pDropBoxIcon = ResourceManager::GetBitmapN(IDB_BUTTON_DROPBOX);
+
+ if (pDropBoxIcon != null)
+ {
+ pButtonType->SetNormalBitmap(Point(W_TYPE_BUTTON - W_DROPBOX_ICON, H_BUTTON - H_DROPBOX_ICON), *pDropBoxIcon);
+ pButtonType->SetPressedBitmap(Point(W_TYPE_BUTTON - W_DROPBOX_ICON, H_BUTTON - H_DROPBOX_ICON), *pDropBoxIcon);
+ pButtonType->SetDisabledBitmap(Point(W_TYPE_BUTTON - W_DROPBOX_ICON, H_BUTTON - H_DROPBOX_ICON), *pDropBoxIcon);
+ delete pDropBoxIcon;
+ }
pTableViewItem->AddControl(*pButtonType);
Button *pButtonDelete = new (std::nothrow) Button();
pDeleteButton->SetShowState(true);
+ pEditField->HideKeypad();
__pTableView->UpdateTableView();
pEditField->ShowKeypad();
}
static const int FONT_SIZE_DELETE_POPUP_TEXT = 36;
static const unsigned int COLOR_EMPTY_COMMENT = Color32<102, 102, 102>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<215, 225, 232>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<76, 81, 88>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<68, 68, 68>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<255, 255, 255>::Value;
static const unsigned int COLOR_DELETE_POPUP_TEXT = Color32<128, 128, 128>::Value;
static const unsigned int COLOR_CHECK_LABEL_BG = Color32<220, 218, 211>::Value;
static const int IDA_FOOTER_MORE = 0;
static const int IDA_FOOTER_CREATE = 1;
static const int IDA_MORE_DELETE = 2;
+static const int IDA_MORE_SETTING = 3;
static const int IDA_HEADER_CONTACTS = 10;
static const int IDA_HEADER_GROUPS = 11;
static const int IDA_HEADER_FAVORITES = 12;
__pContextMenuMore = new (std::nothrow) ContextMenu();
__pContextMenuMore->Construct(Point(X_MORE, clientBounds.y + clientBounds.height), CONTEXT_MENU_STYLE_LIST);
__pContextMenuMore->AddItem(ResourceManager::GetString(L"IDS_COM_SK_DELETE"), IDA_MORE_DELETE);
+ __pContextMenuMore->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_CONTACT_SETTINGS"), IDA_MORE_SETTING);
__pContextMenuMore->AddActionEventListener(*this);
return E_SUCCESS;
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CONTACT_LIST_EDITOR));
}
break;
+ case IDA_MORE_SETTING:
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SETTINGS, SCENE_TRANSITION_ANIMATION_TYPE_LEFT));
+ }
+ break;
case IDA_POPUP_DELETE_OK:
{
int groupIndex = (__sweptItemIndex >> LIST_VIEW_GROUP_INDEX_SHIFT) & LIST_VIEW_MASK;
__pPresentationModel->RemoveContactChangeListener(*this);
pContactsApp->RemoveContactsAppChangeEventListener(*this);
+
+ delete __pAppControl;
+ __pAppControl = null;
}
int
static const int FONT_SIZE_BOTTOM_LABEL = 32;
-static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<215, 225, 232>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<76, 81, 88>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<68, 68, 68>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<255, 255, 255>::Value;
static const unsigned int COLOR_CHECK_LABEL_BG = Color32<220, 218, 211>::Value;
ContactSelectorForm::ContactSelectorForm(void)
static const unsigned int COLOR_TEXT = Color32<255, 255, 255>::Value;
static const unsigned int COLOR_LINE = Color32<225, 225, 225, 26>::Value;
static const unsigned int COLOR_EMPTY_COMMENT = Color32<102, 102, 102>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<215, 225, 232>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<76, 81, 88>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<68, 68, 68>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<255, 255, 255>::Value;
FavoriteListEditorPanel::FavoriteListEditorPanel(void)
: __pFavoriteListView(null)
Footer* pFooter = pForm->GetFooter();
pFooter->RemoveActionEventListener(*this);
+
+ delete __pAppControl;
+ __pAppControl = null;
}
void
static const int FONT_SIZE_BOTTOM_LABEL = 32;
static const int FONT_SIZE_EMPTY_COMMENT = 32;
-static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<215, 225, 232>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<76, 81, 88>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<68, 68, 68>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<255, 255, 255>::Value;
static const unsigned int COLOR_EMPTY_COMMENT = Color32<102, 102, 102>::Value;
static const unsigned int COLOR_CHECK_LABEL_BG = Color32<220, 218, 211>::Value;
if (__launchType != 0)
{
pContactsApp->RemoveContactsAppChangeEventListener(*this);
+
+ delete __pAppControl;
+ __pAppControl = null;
}
__pPresentationModel->RemoveContactChangeListener(*this);
}
}
__pPresentationModel->RemoveContactChangeListener(*this);
pContactsApp->RemoveContactsAppChangeEventListener(*this);
+
+ delete __pAppControl;
+ __pAppControl = null;
}
int
static const wchar_t* IDB_BUTTON_RENAME_PRESSED = L"00_button_rename_press.png";
static const unsigned int COLOR_CHECK_LABEL_BG = Color32<220, 218, 211>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<215, 225, 232>::Value;
-static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<76, 81, 88>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_BG = Color32<68, 68, 68>::Value;
+static const unsigned int COLOR_BOTTOM_LABEL_FONT = Color32<255, 255, 255>::Value;
static const int FONT_SIZE_GROUP_NAME = 44;
static const int FONT_SIZE_BOTTOM_LABEL = 32;
static const int FONT_SIZE_GROUP_NAME = 44;
-static const wchar_t* INPUT_KEY_TYPE = L"type";
-static const wchar_t* INPUT_TYPE_SMS = L"SMS";
-static const wchar_t* INPUT_KEY_TEL = L"tel";
-static const wchar_t* INPUT_KEY_TO = L"to";
-
GroupListPanel::GroupListPanel(void)
: __sweptItemIndex(0)
-, __pAppControl(null)
, __pListView(null)
, __pContextMenuMore(null)
, __pPresentationModel(null)
__pPresentationModel->RemoveGroupChangeListener(*this);
}
- delete __pAppControl;
delete __pContextMenuMore;
return r;
GroupListPanel::OnGroupedListViewItemSwept(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, Tizen::Ui::Controls::SweepDirection direction)
{
}
-
-void
-GroupListPanel::ReturnValues(RequestId requestId, Tizen::App::AppCtrlResult appCtrlResult, const Tizen::Base::Collection::IMap* pReturnValue)
-{
- AppControlProviderManager* pAppManager = AppControlProviderManager::GetInstance();
- pAppManager->SendAppControlResult(requestId, appCtrlResult, pReturnValue);
-
- UiApp* pApp = UiApp::GetInstance();
- pApp->Terminate();
-}
-
-result
-GroupListPanel::LaunchAppControl(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, const Tizen::Base::String& argument, const Tizen::Base::String& type)
-{
- result r = E_SUCCESS;
-
- if (__pAppControl != null)
- {
- return E_FAILURE;
- }
-
- HashMap extraData;
- extraData.Construct();
-
- if (appId.Equals(String(PROVIDER_ID_PHONE)))
- {
- extraData.Add(new (std::nothrow) String(INPUT_KEY_TEL), new (std::nothrow) String(argument));
- extraData.Add(new (std::nothrow) String(INPUT_KEY_TYPE), new (std::nothrow) String(type));
- }
- else if (appId.Equals(String(PROVIDER_ID_MESSAGE)))
- {
- extraData.Add(new (std::nothrow) String(INPUT_KEY_TO), new (std::nothrow) String(argument));
- extraData.Add(new (std::nothrow) String(INPUT_KEY_TYPE), new (std::nothrow) String(INPUT_TYPE_SMS));
- }
-
- __pAppControl = AppManager::FindAppControlN(appId, operationId);
- if (__pAppControl != null)
- {
- r = __pAppControl->Start(null, null, &extraData, null);
- if (IsFailed(r))
- {
- AppLogDebug("[%s] Unable to launch app control", GetErrorMessage(r));
- }
- }
-
- extraData.RemoveAll(true);
-
- return r;
-}
#include <FApp.h>
#include <FSystem.h>
+#include "CtContactsApp.h"
#include "CtResourceManager.h"
#include "CtSceneRegister.h"
#include "CtSettingsForm.h"
void
SettingsForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
{
- UiApp* pApp = UiApp::GetInstance();
- pApp->Terminate();
+ ContactsApp* pContactsApp = static_cast<ContactsApp*>(ContactsApp::GetInstance());
+
+ if (pContactsApp->GetOperationId() == OPERATION_ID_CONFIGURE)
+ {
+ UiApp* pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ else
+ {
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+ }
}
int