MessageBox Button position changes 2.
authorsriram.k <sriram.k@samsung.com>
Fri, 12 Jul 2013 07:00:37 +0000 (12:30 +0530)
committersriram.k <sriram.k@samsung.com>
Fri, 12 Jul 2013 07:00:37 +0000 (12:30 +0530)
Signed-off-by: sriram.k <sriram.k@samsung.com>
Change-Id: Id1fadc3ae658fa760c8cb77fa98bd1c479e92b79

src/ui/controls/FUiCtrl_MessageBoxPresenter.cpp

index 90dc983..167c430 100644 (file)
@@ -679,9 +679,9 @@ _MessageBoxPresenter::GetButtonString(void)
 
        case MSGBOX_STYLE_YESNOCANCEL:
                __buttonNum = 3;
-               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_YES, __buttonText[0]);
+               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_YES, __buttonText[2]);
                GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_NO, __buttonText[1]);
-               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_CANCEL_ABB, __buttonText[2]);
+               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_CANCEL_ABB, __buttonText[0]);
                break;
 
        case MSGBOX_STYLE_ABORTRETRYIGNORE:
@@ -700,8 +700,8 @@ _MessageBoxPresenter::GetButtonString(void)
 
        case MSGBOX_STYLE_RETRYCANCEL:
                __buttonNum = 2;
-               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_RETRY, __buttonText[0]);
-               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_CANCEL_ABB, __buttonText[1]);
+               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_RETRY, __buttonText[1]);
+               GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_CANCEL_ABB, __buttonText[0]);
                break;
 
        default:
@@ -1098,7 +1098,7 @@ _MessageBoxPresenter::FindButtonAndResult(const _ControlHandle handle)
                switch (btnPos)
                {
                case 0:
-                       SetReturnValue(MSGBOX_RESULT_YES);
+                       SetReturnValue(MSGBOX_RESULT_CANCEL);
                        break;
 
                case 1:
@@ -1106,7 +1106,7 @@ _MessageBoxPresenter::FindButtonAndResult(const _ControlHandle handle)
                        break;
 
                case 2:
-                       SetReturnValue(MSGBOX_RESULT_CANCEL);
+                       SetReturnValue(MSGBOX_RESULT_YES);
                        break;
                }
                break;
@@ -1149,11 +1149,11 @@ _MessageBoxPresenter::FindButtonAndResult(const _ControlHandle handle)
                switch (btnPos)
                {
                case 0:
-                       SetReturnValue(MSGBOX_RESULT_RETRY);
+                       SetReturnValue(MSGBOX_RESULT_CANCEL);
                        break;
 
                case 1:
-                       SetReturnValue(MSGBOX_RESULT_CANCEL);
+                       SetReturnValue(MSGBOX_RESULT_RETRY);
                        break;
                }
                break;