Update with the change of Orientation in adaptor 04/39804/1
authorXiangyin Ma <x1.ma@samsung.com>
Fri, 22 May 2015 16:16:28 +0000 (17:16 +0100)
committerXiangyin Ma <x1.ma@samsung.com>
Fri, 22 May 2015 16:16:28 +0000 (17:16 +0100)
Change-Id: I6aafe45472d4e9d564af9873faa277b17d4d39fa

demo/dali-table-view.cpp
examples/item-view/item-view-example.cpp
examples/motion-blur/motion-blur-example.cpp
examples/motion-stretch/motion-stretch-example.cpp
examples/page-turn-view/page-turn-view-example.cpp

index 9577a2e..7188db9 100644 (file)
@@ -317,12 +317,10 @@ void DaliTableView::Initialize( Application& application )
   winHandle.RemoveAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
 
   // Set initial orientation
-  Dali::Orientation orientation = winHandle.GetOrientation();
-
-  unsigned int degrees = winHandle.GetOrientation().GetDegrees();
+  unsigned int degrees = 0;
   Rotate( degrees );
 
-  orientation.ChangedSignal().Connect( this, &DaliTableView::OrientationChanged );
+  //orientation.ChangedSignal().Connect( this, &DaliTableView::OrientationChanged );
 
   winHandle.ShowIndicator( Dali::Window::INVISIBLE );
 
index fc94b02..c3b858d 100644 (file)
@@ -220,7 +220,7 @@ public:
                                              TOOLBAR_IMAGE,
                                              "" );
 
-    app.GetWindow().GetOrientation().ChangedSignal().Connect( this, &ItemViewExample::OnOrientationChanged );
+    //app.GetWindow().GetOrientation().ChangedSignal().Connect( this, &ItemViewExample::OnOrientationChanged );
 
     // Create an edit mode button. (left of toolbar)
     Toolkit::PushButton editButton = Toolkit::PushButton::New();
index fc37bd1..d783a3b 100644 (file)
@@ -191,8 +191,8 @@ public:
     winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
 
     // set initial orientation
-    winHandle.GetOrientation().ChangedSignal().Connect( this, &MotionBlurExampleApp::OnOrientationChanged );
-    unsigned int degrees = winHandle.GetOrientation().GetDegrees();
+   // winHandle.GetOrientation().ChangedSignal().Connect( this, &MotionBlurExampleApp::OnOrientationChanged );
+    unsigned int degrees = 0;
     Rotate( static_cast< DeviceOrientation >( degrees ) );
 
 
index ff60371..ebfa809 100644 (file)
@@ -165,8 +165,8 @@ public:
     winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE  );
     winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
 
-    winHandle.GetOrientation().ChangedSignal().Connect( this, &MotionStretchExampleApp::OnOrientationChanged );
-    unsigned int degrees = winHandle.GetOrientation().GetDegrees();
+   // winHandle.GetOrientation().ChangedSignal().Connect( this, &MotionStretchExampleApp::OnOrientationChanged );
+    unsigned int degrees = 0;
     Rotate( static_cast< DeviceOrientation >( degrees ) );
 
 
index c0fc98c..39e329e 100644 (file)
@@ -246,7 +246,7 @@ void PageTurnController::OnInit( Application& app )
   winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
 
   // view will response to orientation change to display portrait or landscape views
-  app.GetWindow().GetOrientation().ChangedSignal().Connect( this, &PageTurnController::OnOrientationAnimationStarted );
+  //app.GetWindow().GetOrientation().ChangedSignal().Connect( this, &PageTurnController::OnOrientationAnimationStarted );
 
   mPageTurnPortraitView = PageTurnPortraitView::New( mPortraitPageFactory, stageSize );
   mPageTurnPortraitView.SetSpineShadowParameter( Vector2(70.f, 30.f) );