Modify window enum type's use-case 59/246159/1
authorWonsik Jung <sidein@samsung.com>
Mon, 26 Oct 2020 07:04:27 +0000 (16:04 +0900)
committerWonsik Jung <sidein@samsung.com>
Mon, 26 Oct 2020 07:05:20 +0000 (16:05 +0900)
Change-Id: I49395004f4f340942df35af15d950a9190aa8ea0

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

index 174d390..e52e2c8 100644 (file)
@@ -183,10 +183,10 @@ public:
     mTapGestureDetector.DetectedSignal().Connect(this, &MotionBlurExampleApp::OnTap);
 
     Dali::Window winHandle = app.GetWindow();
-    winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT);
-    winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE);
-    winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
-    winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
     winHandle.ResizeSignal().Connect(this, &MotionBlurExampleApp::OnWindowResized);
 
     // set initial orientation
index 7b815fa..dd55e34 100644 (file)
@@ -162,10 +162,10 @@ public:
 
     // set initial orientation
     Dali::Window winHandle = app.GetWindow();
-    winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT);
-    winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE);
-    winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
-    winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
     winHandle.ResizeSignal().Connect(this, &MotionStretchExampleApp::OnWindowResized);
 
     // set initial orientation
index dc3315a..b7641fc 100644 (file)
@@ -199,10 +199,10 @@ void PageTurnExample::OnInit(Application& app)
   Window window = app.GetWindow();
   window.KeyEventSignal().Connect(this, &PageTurnExample::OnKeyEvent);
 
-  window.AddAvailableOrientation(Window::PORTRAIT);
-  window.AddAvailableOrientation(Window::LANDSCAPE);
-  window.AddAvailableOrientation(Window::PORTRAIT_INVERSE);
-  window.AddAvailableOrientation(Window::LANDSCAPE_INVERSE);
+  window.AddAvailableOrientation(WindowOrientation::PORTRAIT);
+  window.AddAvailableOrientation(WindowOrientation::LANDSCAPE);
+  window.AddAvailableOrientation(WindowOrientation::PORTRAIT_INVERSE);
+  window.AddAvailableOrientation(WindowOrientation::LANDSCAPE_INVERSE);
   window.ResizeSignal().Connect(this, &PageTurnExample::OnWindowResized);
 
   Window::WindowSize size = window.GetSize();
index 88ca5a5..45246a6 100644 (file)
@@ -289,17 +289,17 @@ void DaliTableView::Initialize(Application& application)
 
   if(windowSize.GetWidth() <= windowSize.GetHeight())
   {
-    winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT);
-    winHandle.RemoveAvailableOrientation(Dali::Window::LANDSCAPE);
-    winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
-    winHandle.RemoveAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+    winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
+    winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
   }
   else
   {
-    winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE);
-    winHandle.RemoveAvailableOrientation(Dali::Window::PORTRAIT);
-    winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
-    winHandle.RemoveAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+    winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+    winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
+    winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
   }
 
   // Set initial orientation