Reverse landscap/potrait checks added
authorAmith Kumar Mahale <amith.m@samsung.com>
Thu, 18 Apr 2013 13:13:56 +0000 (18:43 +0530)
committerAmith Kumar Mahale <amith.m@samsung.com>
Thu, 18 Apr 2013 13:13:56 +0000 (18:43 +0530)
Change-Id: I8774f8b0cd8de79034bec346b9b57c079fc97d83
Signed-off-by: Amith Kumar Mahale <amith.m@samsung.com>
src/AppResourceId.cpp [deleted file]
src/CallActiveCallForm.cpp

diff --git a/src/AppResourceId.cpp b/src/AppResourceId.cpp
deleted file mode 100644 (file)
index 4ca9d6b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#include "AppResourceId.h"
-
-const wchar_t* IDC_EDITFIELD1 = L"IDC_EDITFIELD1";
-const wchar_t* IDF_FORM = L"IDF_FORM";
index 840a65b..d311a22 100644 (file)
@@ -199,12 +199,12 @@ ActiveCallForm::ShowDTMFKeypad(void)
        {
                //update rect according to client screen area
                Rectangle rect(0, 0, 0, 0);
-               if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
+               if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
                {
                        rect.width = GetClientAreaBounds().width;
                        rect.height = GetClientAreaBounds().height - __pCallButtonsPanel->GetHeight();
                }
-               else if (GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE)
+               else if (GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
                {
                        rect.height = GetClientAreaBounds().height;
                        rect.width = GetClientAreaBounds().width - __pCallButtonsPanel->GetWidth();
@@ -263,12 +263,12 @@ ActiveCallForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui
                //change orientation of DTMF Keypad, if it is visible.
                if (__pDTMFKeypad != null)
                {
-                       if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE)
+                       if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
                        {
                                //in landscape mode, caller info is visible.
                                SetShowStateOnKeypad(true);
                        }
-                       else if (orientationStatus == ORIENTATION_STATUS_PORTRAIT)
+                       else if (orientationStatus == ORIENTATION_STATUS_PORTRAIT || orientationStatus == ORIENTATION_STATUS_PORTRAIT_REVERSE)
                        {
                                //in Portrait mode it is hidden beneath DTMF Keypad.
                                SetShowStateOnKeypad(false);
@@ -570,10 +570,10 @@ ActiveCallForm::OnActionPerformed(const Control& source, int actionId)
 
        case IDA_OPEN_NUMKEYPAD:
        {
-               if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
+               if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
                {
                        //hide only in portrait mode.
-               SetShowStateOnKeypad(false);
+                       SetShowStateOnKeypad(false);
                }
                ShowDTMFKeypad();
                __pCallButtonsPanel->SetKeypadButtonState(IDA_CLOSE_NUMKEYPAD);