Apache License 2.0 is applied 98/282698/1
authorJin Yoon <jinny.yoon@samsung.com>
Mon, 10 Oct 2022 03:06:05 +0000 (12:06 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Mon, 10 Oct 2022 03:06:27 +0000 (12:06 +0900)
Change-Id: I820174c5d21029308dc52e6cd789833db938cede

28 files changed:
Apps/Apps.cs
Apps/Common/DeviceInfo.cs
Apps/Common/PropertyNotifier.cs
Apps/Common/Resources.cs
Apps/Core/AppLauncher.cs
Apps/Models/AppInfoModel.cs
Apps/ViewManager.cs
Apps/ViewModels/AppInfoViewModel.cs
Apps/ViewModels/AppViewModel.cs
Apps/Views/AppItemLayout.cs
Apps/Views/AppView.cs
Apps/Views/CustomBorder.cs
LICENSE
TrayApplication/Common/DeviceInfo.cs
TrayApplication/Common/InputGeneratorBase.cs
TrayApplication/Common/PropertyNotifier.cs
TrayApplication/Common/Resources.cs
TrayApplication/Core/AppLauncher.cs
TrayApplication/Core/AppScoreDataBase.cs
TrayApplication/Models/AppInfoModel.cs
TrayApplication/TrayApplication.cs
TrayApplication/ViewModels/ApplicationViewModel.cs
TrayApplication/ViewModels/QuickAccessViewModel.cs
TrayApplication/Views/AppItemView.cs
TrayApplication/Views/ApplicationsView.cs
TrayApplication/Views/MainView.cs
TrayApplication/Views/QuickAccessView.cs
packaging/org.tizen.Tray.spec

index ca977a220911b70b9dc805ed4971643dd91c8887..a6fa9e29d3ac783f8b9d0925d6a0b4ef9d3af8a2 100755 (executable)
@@ -1,4 +1,20 @@
-using System.Collections.Generic;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.Collections.Generic;
 using Tizen.NUI;
 using Apps.Common;
 using Apps.Views;
index 7151e6eacbbcb9a2fc2e8e83b534d625cd47c905..150f06eec2226eacd6509084a3448a78fcc940d4 100644 (file)
@@ -1,4 +1,20 @@
-using Tizen.NUI;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using Tizen.NUI;
 using Tizen.System;
 
 namespace Apps.Common
index c324bc619c364ccce63115d3ec3c730af57f32aa..8eb767970ec4e67fd3ed91cf649ebd63dbf80937 100644 (file)
@@ -1,4 +1,20 @@
-using System.ComponentModel;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.ComponentModel;
 using System.Runtime.CompilerServices;
 
 namespace Apps.Common
index b0100a78754abb2dc94f957eb5333e238c300309..100d98d75a2b567d037849eb62e886e5c6008622 100755 (executable)
@@ -1,4 +1,20 @@
-namespace Apps.Common
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+namespace Apps.Common
 {
     class Resources
     {
@@ -9,8 +25,8 @@
         public static string GetThemePath()
         {
             return Tizen.Applications.Application.Current.DirectoryInfo.Resource + "themes/";
-        }\r
-\r
+        }
+
         public static string GetImagePath()
         {
             return Tizen.Applications.Application.Current.DirectoryInfo.Resource + "images/";
index fe353200d58a65e243b39e87711e7726255a22a6..1b7630b3654a495262a0344c58d6df9bf70a9d78 100644 (file)
@@ -1,4 +1,20 @@
-using Tizen.Applications;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using Tizen.Applications;
 
 namespace Apps.Core
 {
index 2c7949b2b056a518eb1f67fafcfb7379677f610c..e3ba445a87a7e22c35cfa303ef3ea621e44fff87 100755 (executable)
@@ -1,11 +1,27 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.Collections.Generic;
 using Tizen.NUI;
 using Apps.Common;
 namespace Apps.Models
 {
     class AppInfoModel : PropertyNotifier
-    {\r
+    {
         private ImageVisual defaultVisual;
         private GradientVisual gradientVisual;
 
@@ -129,21 +145,21 @@ namespace Apps.Models
             }
             else
             {
-                Tizen.Log.Info(Resources.LogTag, "setting palette color");\r
-                SetGradientVisual(stopColor);\r
+                Tizen.Log.Info(Resources.LogTag, "setting palette color");
+                SetGradientVisual(stopColor);
                 IconBackground = gradientVisual.OutputVisualMap;
             }
         }
 
-        ~AppInfoModel()\r
-        {\r
-            Tizen.Log.Info(Resources.LogTag, "Clearing NUI PropertyMap resources");\r
-            defaultVisual?.Dispose();\r
-            defaultVisual = null;\r
-            gradientVisual?.Dispose();\r
-            gradientVisual = null;\r
-            IconBackground?.Dispose();\r
-            IconBackground = null;\r
+        ~AppInfoModel()
+        {
+            Tizen.Log.Info(Resources.LogTag, "Clearing NUI PropertyMap resources");
+            defaultVisual?.Dispose();
+            defaultVisual = null;
+            gradientVisual?.Dispose();
+            gradientVisual = null;
+            IconBackground?.Dispose();
+            IconBackground = null;
         }
     }
 }
index 29b7a3e4f6483bd523446b3c51b47cffb00a1244..3b3db88d6d01167a915325c6be46b6474d920df5 100755 (executable)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.Linq;
 using System.Threading.Tasks;
 using System.Collections.Generic;
index 5db5d6d0410689e60ed5390740ef0b8bfdb6cef0..a81af102a8c47dc75923c7a1cf4c37767d5bb42a 100755 (executable)
@@ -1,4 +1,20 @@
-using System.Collections.Generic;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Threading;
 using Tizen.Applications;
@@ -14,11 +30,11 @@ namespace Apps.ViewModels
         }
 
         public void CreateData(IEnumerable<ApplicationInfo> list)
-        {\r
+        {
             Clear();
-            if (list == null)\r
-            {\r
-                return;\r
+            if (list == null)
+            {
+                return;
             }
             foreach (ApplicationInfo appInfo in list)
             {
index 870a76a08f21d52742cbcc8011f57b8dd28907fb..f0d77d8e3e8eade9cd7508fa1a56b82105252bff 100755 (executable)
@@ -1,4 +1,20 @@
-using System.Collections;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.Collections;
 using System.Collections.Generic;
 using System.Windows.Input;
 using Tizen.Applications;
index cdd734a58184fa21d311ef3be80c459cb75e3e33..8e2c0ce4cef35995dfe8b736f85b8fc5b8de0c56 100644 (file)
@@ -1,4 +1,20 @@
-using Tizen.NUI;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using Tizen.NUI;
 using Tizen.NUI.Components;
 using Tizen.NUI.BaseComponents;
 using Apps.Common;
index ff905a8853c8d3096aeca71aa9ed4bac9ca48a42..e7bce79ac272ba1711d1d7fe16a11d7150464a67 100755 (executable)
@@ -1,4 +1,20 @@
-using System.Windows.Input;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.Windows.Input;
 using Tizen.NUI;
 using Tizen.NUI.Components;
 using Tizen.NUI.BaseComponents;
index 41c43bc4dd326842467f997ee0b188882a24e6e1..5f117c320fdaad777335b411f97388e5c42b7cbb 100755 (executable)
-using Tizen.NUI;\r
-using Tizen.NUI.BaseComponents;\r
-using Apps.Common;\r
-\r
-namespace Apps.Views\r
-{\r
-    class CustomBorder : DefaultBorder\r
-    {\r
-        private ImageView maximalizeIcon;\r
-        private ImageView closeIcon;\r
-        private ImageView leftCornerIcon;\r
-        private ImageView rightCornerIcon;\r
-        private View borderView;\r
-\r
-        public CustomBorder() : base()\r
-        {\r
-        }\r
-\r
-        public override void CreateBorderView(View borderView)\r
-        {\r
-            this.borderView = borderView;\r
-            borderView.CornerRadius = new Vector4(0.03f, 0.03f, 0.03f, 0.03f);\r
-            borderView.CornerRadiusPolicy = VisualTransformPolicyType.Relative;\r
-            borderView.BackgroundColor = new Color(1, 1, 1, 0.3f);\r
-        }\r
-\r
-        public override bool CreateBottomBorderView(View bottomView)\r
-        {\r
-            if (bottomView == null)\r
-            {\r
-                return false;\r
-            }\r
-            bottomView.Layout = new RelativeLayout();\r
-            maximalizeIcon = new ImageView()\r
-            {\r
-                Focusable = true,\r
-                ResourceUrl = Resources.GetImagePath() + "/maximalize.png",\r
-                AccessibilityHighlightable = true,\r
-            };\r
-\r
-            closeIcon = new ImageView()\r
-            {\r
-                Focusable = true,\r
-                ResourceUrl = Resources.GetImagePath() + "/close.png",\r
-                AccessibilityHighlightable = true,\r
-            };\r
-\r
-            leftCornerIcon = new ImageView()\r
-            {\r
-                Focusable = true,\r
-                ResourceUrl = Resources.GetImagePath() + "/leftCorner.png",\r
-                AccessibilityHighlightable = true,\r
-            };\r
-\r
-            rightCornerIcon = new ImageView()\r
-            {\r
-                Focusable = true,\r
-                ResourceUrl = Resources.GetImagePath() + "/rightCorner.png",\r
-                AccessibilityHighlightable = true,\r
-            };\r
-\r
-            RelativeLayout.SetRightTarget(maximalizeIcon, closeIcon);\r
-            RelativeLayout.SetRightRelativeOffset(maximalizeIcon, 0.0f);\r
-            RelativeLayout.SetHorizontalAlignment(maximalizeIcon, RelativeLayout.Alignment.End);\r
-\r
-            RelativeLayout.SetRightTarget(closeIcon, rightCornerIcon);\r
-            RelativeLayout.SetRightRelativeOffset(closeIcon, 0.0f);\r
-            RelativeLayout.SetHorizontalAlignment(closeIcon, RelativeLayout.Alignment.End);\r
-\r
-            RelativeLayout.SetRightRelativeOffset(rightCornerIcon, 1.0f);\r
-            RelativeLayout.SetHorizontalAlignment(rightCornerIcon, RelativeLayout.Alignment.End);\r
-\r
-            bottomView.Add(leftCornerIcon);\r
-            bottomView.Add(maximalizeIcon);\r
-            bottomView.Add(closeIcon);\r
-            bottomView.Add(rightCornerIcon);\r
-\r
-            maximalizeIcon.TouchEvent += OnMaximizeIconTouched;\r
-            closeIcon.TouchEvent += OnCloseIconTouched;\r
-            leftCornerIcon.TouchEvent += OnLeftBottomCornerIconTouched;\r
-            rightCornerIcon.TouchEvent += OnRightBottomCornerIconTouched;\r
-\r
-            maximalizeIcon.AccessibilityActivated += (s, e) =>\r
-            {\r
-                MaximizeBorderWindow();\r
-            };\r
-\r
-            closeIcon.AccessibilityActivated += (s, e) =>\r
-            {\r
-                CloseBorderWindow();\r
-            };\r
-\r
-            maximalizeIcon.AccessibilityNameRequested += (s, e) =>\r
-            {\r
-                e.Name = "Maximize";\r
-            };\r
-\r
-            closeIcon.AccessibilityNameRequested += (s, e) =>\r
-            {\r
-                e.Name = "Close";\r
-            };\r
-\r
-            leftCornerIcon.AccessibilityNameRequested += (s, e) =>\r
-            {\r
-                e.Name = "Resize";\r
-            };\r
-\r
-            rightCornerIcon.AccessibilityNameRequested += (s, e) =>\r
-            {\r
-                e.Name = "Resize";\r
-            };\r
-\r
-            maximalizeIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);\r
-            closeIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);\r
-            leftCornerIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);\r
-            rightCornerIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);\r
-            return true;\r
-        }\r
-\r
-        public override void OnResized(int width, int height)\r
-        {\r
-            if (borderView != null)\r
-            {\r
-                base.OnResized(width, height);\r
-                UpdateIcons();\r
-            }\r
-        }\r
-\r
-        private void UpdateIcons()\r
-        {\r
-            if (BorderWindow != null && borderView != null)\r
-            {\r
-                if (BorderWindow.IsMaximized() == true)\r
-                {\r
-                    if (maximalizeIcon != null)\r
-                    {\r
-                        maximalizeIcon.ResourceUrl = Resources.GetImagePath() + "/smallwindow.png";\r
-                    }\r
-                }\r
-                else\r
-                {\r
-                    if (maximalizeIcon != null)\r
-                    {\r
-                        maximalizeIcon.ResourceUrl = Resources.GetImagePath() + "/maximalize.png";\r
-                    }\r
-                }\r
-            }\r
-        }\r
-    }\r
-}\r
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Apps.Common;
+
+namespace Apps.Views
+{
+    class CustomBorder : DefaultBorder
+    {
+        private ImageView maximalizeIcon;
+        private ImageView closeIcon;
+        private ImageView leftCornerIcon;
+        private ImageView rightCornerIcon;
+        private View borderView;
+
+        public CustomBorder() : base()
+        {
+        }
+
+        public override void CreateBorderView(View borderView)
+        {
+            this.borderView = borderView;
+            borderView.CornerRadius = new Vector4(0.03f, 0.03f, 0.03f, 0.03f);
+            borderView.CornerRadiusPolicy = VisualTransformPolicyType.Relative;
+            borderView.BackgroundColor = new Color(1, 1, 1, 0.3f);
+        }
+
+        public override bool CreateBottomBorderView(View bottomView)
+        {
+            if (bottomView == null)
+            {
+                return false;
+            }
+            bottomView.Layout = new RelativeLayout();
+            maximalizeIcon = new ImageView()
+            {
+                Focusable = true,
+                ResourceUrl = Resources.GetImagePath() + "/maximalize.png",
+                AccessibilityHighlightable = true,
+            };
+
+            closeIcon = new ImageView()
+            {
+                Focusable = true,
+                ResourceUrl = Resources.GetImagePath() + "/close.png",
+                AccessibilityHighlightable = true,
+            };
+
+            leftCornerIcon = new ImageView()
+            {
+                Focusable = true,
+                ResourceUrl = Resources.GetImagePath() + "/leftCorner.png",
+                AccessibilityHighlightable = true,
+            };
+
+            rightCornerIcon = new ImageView()
+            {
+                Focusable = true,
+                ResourceUrl = Resources.GetImagePath() + "/rightCorner.png",
+                AccessibilityHighlightable = true,
+            };
+
+            RelativeLayout.SetRightTarget(maximalizeIcon, closeIcon);
+            RelativeLayout.SetRightRelativeOffset(maximalizeIcon, 0.0f);
+            RelativeLayout.SetHorizontalAlignment(maximalizeIcon, RelativeLayout.Alignment.End);
+
+            RelativeLayout.SetRightTarget(closeIcon, rightCornerIcon);
+            RelativeLayout.SetRightRelativeOffset(closeIcon, 0.0f);
+            RelativeLayout.SetHorizontalAlignment(closeIcon, RelativeLayout.Alignment.End);
+
+            RelativeLayout.SetRightRelativeOffset(rightCornerIcon, 1.0f);
+            RelativeLayout.SetHorizontalAlignment(rightCornerIcon, RelativeLayout.Alignment.End);
+
+            bottomView.Add(leftCornerIcon);
+            bottomView.Add(maximalizeIcon);
+            bottomView.Add(closeIcon);
+            bottomView.Add(rightCornerIcon);
+
+            maximalizeIcon.TouchEvent += OnMaximizeIconTouched;
+            closeIcon.TouchEvent += OnCloseIconTouched;
+            leftCornerIcon.TouchEvent += OnLeftBottomCornerIconTouched;
+            rightCornerIcon.TouchEvent += OnRightBottomCornerIconTouched;
+
+            maximalizeIcon.AccessibilityActivated += (s, e) =>
+            {
+                MaximizeBorderWindow();
+            };
+
+            closeIcon.AccessibilityActivated += (s, e) =>
+            {
+                CloseBorderWindow();
+            };
+
+            maximalizeIcon.AccessibilityNameRequested += (s, e) =>
+            {
+                e.Name = "Maximize";
+            };
+
+            closeIcon.AccessibilityNameRequested += (s, e) =>
+            {
+                e.Name = "Close";
+            };
+
+            leftCornerIcon.AccessibilityNameRequested += (s, e) =>
+            {
+                e.Name = "Resize";
+            };
+
+            rightCornerIcon.AccessibilityNameRequested += (s, e) =>
+            {
+                e.Name = "Resize";
+            };
+
+            maximalizeIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);
+            closeIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);
+            leftCornerIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);
+            rightCornerIcon.SetAccessibilityReadingInfoTypes(Tizen.NUI.BaseComponents.AccessibilityReadingInfoTypes.Name);
+            return true;
+        }
+
+        public override void OnResized(int width, int height)
+        {
+            if (borderView != null)
+            {
+                base.OnResized(width, height);
+                UpdateIcons();
+            }
+        }
+
+        private void UpdateIcons()
+        {
+            if (BorderWindow != null && borderView != null)
+            {
+                if (BorderWindow.IsMaximized() == true)
+                {
+                    if (maximalizeIcon != null)
+                    {
+                        maximalizeIcon.ResourceUrl = Resources.GetImagePath() + "/smallwindow.png";
+                    }
+                }
+                else
+                {
+                    if (maximalizeIcon != null)
+                    {
+                        maximalizeIcon.ResourceUrl = Resources.GetImagePath() + "/maximalize.png";
+                    }
+                }
+            }
+        }
+    }
+}
diff --git a/LICENSE b/LICENSE
index 54b213e0b69596792dbe12ef7e0b03bb61b74013..545b618e42ea262eae900a425762111cd90eb110 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
+Copyright (c) 2022 Samsung Electronics Co., Ltd. All rights reserved.
 
                                  Apache License
                            Version 2.0, January 2004
index 683107908adb96bbb3a87dd03b43e5154a1285a3..eb0bce24ee91b95769064b8cfeab8655a69c0d21 100755 (executable)
@@ -1,4 +1,20 @@
-using Tizen.NUI;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using Tizen.NUI;
 
 namespace TrayApplication.Common
 {
@@ -14,16 +30,16 @@ namespace TrayApplication.Common
             height = Window.Instance.Size.Height;
             IsPortrait = width < height;
             orientation = Window.Instance.GetCurrentOrientation();
-            if(orientation == Window.WindowOrientation.Portrait || orientation == Window.WindowOrientation.PortraitInverse && IsPortrait == false)\r
-            {\r
-                if (IsPortrait == false)\r
-                {\r
-                    ToggleOrientation();\r
-                }\r
+            if(orientation == Window.WindowOrientation.Portrait || orientation == Window.WindowOrientation.PortraitInverse && IsPortrait == false)
+            {
+                if (IsPortrait == false)
+                {
+                    ToggleOrientation();
+                }
             }
-            else if(IsPortrait == true)\r
-            {\r
-                ToggleOrientation();\r
+            else if(IsPortrait == true)
+            {
+                ToggleOrientation();
             }
         }
 
index 77e9e87e62971fe562528209e9eaa9e629246910..e48ddd928391c5b3e36fe9d7436fe8e1409367f5 100644 (file)
@@ -1,34 +1,50 @@
-using ElmSharp;\r
-\r
-namespace TrayApplication.Common\r
-{\r
-    public static class InputGeneratorBase\r
-    {\r
-        const string KeyName = "XF86Back";\r
-\r
-        private static InputGenerator inputGenerator;\r
-        public static InputGenerator InputGenerator\r
-        {\r
-            get { return inputGenerator; }\r
-        }\r
-        public static void InitInputGenerator()\r
-        {\r
-            inputGenerator = new InputGenerator(InputDeviceType.Keyboard, "TrayApplication");\r
-        }\r
-\r
-        public static void OnKeyEvent()\r
-        {\r
-            Tizen.Log.Debug(Resources.LogTag, "KeyEvent Called : " + KeyName);\r
-            inputGenerator.GenerateKeyEvent(KeyName, 1);\r
-            inputGenerator.GenerateKeyEvent(KeyName, 0);\r
-        }\r
-\r
-        public static void FinalizeInputGenerator()\r
-        {\r
-            if (inputGenerator != null)\r
-            {\r
-                inputGenerator.Dispose();\r
-            }\r
-        }\r
-    }\r
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using ElmSharp;
+
+namespace TrayApplication.Common
+{
+    public static class InputGeneratorBase
+    {
+        const string KeyName = "XF86Back";
+
+        private static InputGenerator inputGenerator;
+        public static InputGenerator InputGenerator
+        {
+            get { return inputGenerator; }
+        }
+        public static void InitInputGenerator()
+        {
+            inputGenerator = new InputGenerator(InputDeviceType.Keyboard, "TrayApplication");
+        }
+
+        public static void OnKeyEvent()
+        {
+            Tizen.Log.Debug(Resources.LogTag, "KeyEvent Called : " + KeyName);
+            inputGenerator.GenerateKeyEvent(KeyName, 1);
+            inputGenerator.GenerateKeyEvent(KeyName, 0);
+        }
+
+        public static void FinalizeInputGenerator()
+        {
+            if (inputGenerator != null)
+            {
+                inputGenerator.Dispose();
+            }
+        }
+    }
 }
\ No newline at end of file
index 2794eaabca89020ddb49fc4b1965ba15b418a3be..e2aa5769b181108491fa7b624f4af705e6fb4e99 100644 (file)
@@ -1,4 +1,20 @@
-using System.ComponentModel;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.ComponentModel;
 using System.Runtime.CompilerServices;
 
 namespace TrayApplication.Common
index 2071129db8012aa407102262070977d769088afa..dc159b620bb9872c5bb6bf2285df71494bfa8626 100644 (file)
@@ -1,4 +1,20 @@
-using Tizen.NUI;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using Tizen.NUI;
 
 namespace TrayApplication.Common
 {
index f53d68d84c49e2be1c7f0b6d0144fb5f79d19e4b..88d98a161ed49088ece6b4eb9b28d9ad8f83d222 100755 (executable)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using Tizen.Applications;
 
 namespace TrayApplication.Core
index 85f9c0274a0f64d79186fd5d445b23e6b5853c87..8ab91dfd392756724079f2ec0cb0f33a12caebeb 100755 (executable)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.Collections.Generic;
 using Microsoft.Data.Sqlite;
 using Tizen.Applications;
@@ -33,23 +49,23 @@ namespace TrayApplication.Core
         {
             if (e.State == PackageEventState.Completed)
             {
-                try\r
-                {\r
-                    Package package = PackageManager.GetPackage(e.PackageId);\r
-                    foreach (ApplicationInfo appInfo in package.GetApplications())\r
-                    {\r
-                        if (appInfo == null || string.IsNullOrEmpty(appInfo.IconPath) || appInfo.IsNoDisplay == true)\r
-                        {\r
-                            continue;\r
-                        }\r
-                        Tizen.Log.Info(Resources.LogTag, "Updating " + appInfo.ApplicationId);\r
-                        IncreaseScore(appInfo.ApplicationId, true);\r
-                        OnDatabaseUpdate.Invoke(null, new EventArgs());\r
+                try
+                {
+                    Package package = PackageManager.GetPackage(e.PackageId);
+                    foreach (ApplicationInfo appInfo in package.GetApplications())
+                    {
+                        if (appInfo == null || string.IsNullOrEmpty(appInfo.IconPath) || appInfo.IsNoDisplay == true)
+                        {
+                            continue;
+                        }
+                        Tizen.Log.Info(Resources.LogTag, "Updating " + appInfo.ApplicationId);
+                        IncreaseScore(appInfo.ApplicationId, true);
+                        OnDatabaseUpdate.Invoke(null, new EventArgs());
                     }
                 }
                 catch(Exception ex)
-                {\r
-                    Tizen.Log.Error(Resources.LogTag, "Exception " + ex.Message);\r
+                {
+                    Tizen.Log.Error(Resources.LogTag, "Exception " + ex.Message);
                 }
             }
         }
@@ -58,23 +74,23 @@ namespace TrayApplication.Core
         {
             if (e.Progress == 0)
             {
-                try\r
-                {\r
-                    Package package = PackageManager.GetPackage(e.PackageId);\r
-                    foreach (ApplicationInfo appInfo in package.GetApplications())\r
-                    {\r
-                        if (appInfo == null || string.IsNullOrEmpty(appInfo.IconPath) || appInfo.IsNoDisplay == true)\r
-                        {\r
-                            continue;\r
-                        }\r
-                        Tizen.Log.Info(Resources.LogTag, "Updating " + appInfo.ApplicationId);\r
-                        RemoveAppScore(appInfo.ApplicationId);\r
-                        OnDatabaseUpdate.Invoke(null, new EventArgs());\r
-                    }\r
+                try
+                {
+                    Package package = PackageManager.GetPackage(e.PackageId);
+                    foreach (ApplicationInfo appInfo in package.GetApplications())
+                    {
+                        if (appInfo == null || string.IsNullOrEmpty(appInfo.IconPath) || appInfo.IsNoDisplay == true)
+                        {
+                            continue;
+                        }
+                        Tizen.Log.Info(Resources.LogTag, "Updating " + appInfo.ApplicationId);
+                        RemoveAppScore(appInfo.ApplicationId);
+                        OnDatabaseUpdate.Invoke(null, new EventArgs());
+                    }
                 }
                 catch(Exception ex)
-                {\r
-                    Tizen.Log.Error(Resources.LogTag, "Exception " + ex.Message);\r
+                {
+                    Tizen.Log.Error(Resources.LogTag, "Exception " + ex.Message);
                 }
             }
         }
@@ -87,13 +103,13 @@ namespace TrayApplication.Core
                 if (appInfo == null || string.IsNullOrEmpty(appInfo.IconPath) || appInfo.IsNoDisplay == true)
                 {
                     return;
-                }\r
-                IncreaseScore(e.ApplicationRunningContext.ApplicationId, false);\r
+                }
+                IncreaseScore(e.ApplicationRunningContext.ApplicationId, false);
                 OnDatabaseUpdate.Invoke(null, new EventArgs());
             }
-            catch (Exception ex)\r
-            {\r
-                Tizen.Log.Error(Resources.LogTag, "Exception " + ex.Message);\r
+            catch (Exception ex)
+            {
+                Tizen.Log.Error(Resources.LogTag, "Exception " + ex.Message);
             }
         }
 
@@ -142,26 +158,26 @@ namespace TrayApplication.Core
             ApplicationInfoFilter appInfoFilter = new ApplicationInfoFilter();
             appInfoFilter.Filter.Add(ApplicationInfoFilter.Keys.NoDisplay, "False");
             var task = ApplicationManager.GetInstalledApplicationsAsync(appInfoFilter);
-            task.Wait();\r
-            try\r
-            {\r
-                IEnumerable<ApplicationInfo> applicationsList = task.Result;\r
-                if (applicationsList != null)\r
-                {\r
-                    foreach (ApplicationInfo appInfo in applicationsList)\r
-                    {\r
-                        if (appInfo == null || string.IsNullOrEmpty(appInfo.IconPath))\r
-                        {\r
-                            continue;\r
-                        }\r
-                        sqliteCmd.CommandText = INSERT_VALUES_QUERY + appInfo.ApplicationId + "', 50.00); ";\r
-                        sqliteCmd.ExecuteNonQuery();\r
+            task.Wait();
+            try
+            {
+                IEnumerable<ApplicationInfo> applicationsList = task.Result;
+                if (applicationsList != null)
+                {
+                    foreach (ApplicationInfo appInfo in applicationsList)
+                    {
+                        if (appInfo == null || string.IsNullOrEmpty(appInfo.IconPath))
+                        {
+                            continue;
+                        }
+                        sqliteCmd.CommandText = INSERT_VALUES_QUERY + appInfo.ApplicationId + "', 50.00); ";
+                        sqliteCmd.ExecuteNonQuery();
                     }
                 }
             }
             catch (Exception ex)
-            {\r
-                Tizen.Log.Error(Resources.LogTag, "Error " + ex.Message);\r
+            {
+                Tizen.Log.Error(Resources.LogTag, "Error " + ex.Message);
             }
             sqliteCmd.Dispose();
         }
@@ -230,13 +246,13 @@ namespace TrayApplication.Core
                 string appName = sqliteDatareader.GetString(0);
                 int appScore = sqliteDatareader.GetInt32(1);
                 Tizen.Log.Info(Resources.LogTag, "appName " + appName + " score " + appScore);
-                try\r
-                {\r
-                    appsScoreData.Add(appName, appScore);\r
+                try
+                {
+                    appsScoreData.Add(appName, appScore);
                 }
                 catch(Exception ex)
-                {\r
-                    Tizen.Log.Error(Resources.LogTag, "Error " + ex.Message);\r
+                {
+                    Tizen.Log.Error(Resources.LogTag, "Error " + ex.Message);
                 }
             }
             sqliteCmd.Dispose();
index 8dbee75bab28ae471b75aa2d3d3cd7c6f3ef549d..785065bc0e7e6977ae96f99472f7dc73ed79543f 100755 (executable)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.Collections.Generic;
 using System.Windows.Input;
 using Tizen.NUI;
@@ -9,7 +25,7 @@ using TrayApplication.Core;
 namespace TrayApplication.Models
 {
     class AppInfoModel : PropertyNotifier
-    {\r
+    {
         private ImageVisual defaultVisual;
         private GradientVisual gradientVisual;
 
@@ -18,14 +34,14 @@ namespace TrayApplication.Models
             Name = name;
             ApplicationId = applicationId;
             IconUrl = url;
-            AppSelectCommand = new Command(OnAppSelect);\r
-\r
-            if (Name == "back")\r
-            {\r
+            AppSelectCommand = new Command(OnAppSelect);
+
+            if (Name == "back")
+            {
                 InputGeneratorBase.InitInputGenerator();
             }
-        }\r
-\r
+        }
+
         public AppInfoModel(string name, string url)
         {
             Name = name;
@@ -58,14 +74,14 @@ namespace TrayApplication.Models
         }
 
         private void OnAppSelect(object selectedItem)
-        {\r
-            if (Name == "back")\r
-            {\r
-                InputGeneratorBase.OnKeyEvent();\r
+        {
+            if (Name == "back")
+            {
+                InputGeneratorBase.OnKeyEvent();
             }
-            else\r
-            {\r
-                AppLauncher.LaunchApplication(ApplicationId);\r
+            else
+            {
+                AppLauncher.LaunchApplication(ApplicationId);
             }
         }
 
@@ -155,27 +171,27 @@ namespace TrayApplication.Models
             PropertyArray stopColor = GetGradientStopColors(palette);
             if (stopColor.Count() < 2)
             {
-                Tizen.Log.Info(Resources.LogTag, "Palette or palatte values not valid, adding default gradient");\r
+                Tizen.Log.Info(Resources.LogTag, "Palette or palatte values not valid, adding default gradient");
                 SetDefaultImageVisual();
                 IconBackground = defaultVisual.OutputVisualMap;
             }
             else
             {
                 Tizen.Log.Info(Resources.LogTag, "setting palette color");
-                SetGradientVisual(stopColor);\r
+                SetGradientVisual(stopColor);
                 IconBackground = gradientVisual.OutputVisualMap;
             }
-        }\r
-\r
-        ~AppInfoModel()\r
-        {\r
-            Tizen.Log.Info(Resources.LogTag, "Clearing NUI PropertyMap resources");\r
-            defaultVisual?.Dispose();\r
-            defaultVisual = null;\r
-            gradientVisual?.Dispose();\r
-            gradientVisual = null;\r
-            IconBackground?.Dispose();\r
-            IconBackground = null;\r
+        }
+
+        ~AppInfoModel()
+        {
+            Tizen.Log.Info(Resources.LogTag, "Clearing NUI PropertyMap resources");
+            defaultVisual?.Dispose();
+            defaultVisual = null;
+            gradientVisual?.Dispose();
+            gradientVisual = null;
+            IconBackground?.Dispose();
+            IconBackground = null;
         }
     }
 }
index bc2b5007aefa558ee94fa270fed2fddc4e65301e..6f5c6159952ed63a67b927c921955be7985e69a8 100644 (file)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.Collections.Generic;
 using Tizen.NUI;
 using Tizen.NUI.WindowSystem.Shell;
@@ -73,8 +89,8 @@ namespace TrayApplication
         protected override void OnTerminate()
         {
             Tizen.Log.Info(Resources.LogTag, "Program OnTerminate");
-            AppScoreDataBase.Disconnect();\r
-            InputGeneratorBase.FinalizeInputGenerator();\r
+            AppScoreDataBase.Disconnect();
+            InputGeneratorBase.FinalizeInputGenerator();
             base.OnTerminate();
         }
 
index 20589f81e369e4c0dc5d44c6a3e9aabc1ef415ed..035e857a3bfa28717e284135a79b94ab77f8105b 100755 (executable)
@@ -1,4 +1,20 @@
-using System.Collections;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.Collections;
 using System.Collections.Generic;
 using System.Threading;
 using System.Windows.Input;
index 100ac0b521aca4688f27357a714dcbc7f05e872f..a3567306ab0c66e2e780a548e079f837f3c60c74 100644 (file)
@@ -1,4 +1,20 @@
-using System.Collections;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.Collections;
 using System.Collections.Generic;
 using Tizen.NUI;
 using TrayApplication.Common;
index 0ef3fbd689a255cd429fcc55bed08fd49bc20ed8..7a7956e7aec796e8cd1cde890223dba118beb7a3 100755 (executable)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.Windows.Input;
 using Tizen.NUI;
 using Tizen.NUI.BaseComponents;
index 7c862b8a1e4aed53b6c08e76c5149d0d8da4e4e0..a427d418143798087575e2b1bdaa7d2a2e48a029 100755 (executable)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.Collections.Generic;
 using System.Collections;
 using System.Windows.Input;
@@ -173,8 +189,8 @@ namespace TrayApplication.Views
         }
 
         private void UpdateRemovePopupWindowDimensions()
-        {\r
-            popupBaseView.WidthSpecification = removePopupWindow.Size.Width;\r
+        {
+            popupBaseView.WidthSpecification = removePopupWindow.Size.Width;
             popupBaseView.HeightSpecification = (int)(0.70f * removePopupWindow.Size.Height);
             popupBaseView.Remove(removePopup);
             popupBaseView.Add(removePopup);
@@ -199,7 +215,7 @@ namespace TrayApplication.Views
 
                 removePopupWindow.SetTransparency(true);
                 removePopupWindow.BackgroundColor = Color.Transparent;
-                popupBaseView = new View();\r
+                popupBaseView = new View();
                 removePopupWindow.Add(popupBaseView);
 
                 Button cancelButton = new Button("CancelButton");
@@ -207,7 +223,7 @@ namespace TrayApplication.Views
                 {
                     Size2D = new Size2D(252, 48).SpToPx(),
                     Text = "Delete",
-                };\r
+                };
                 deleteButton.PointSize = 16.SpToPx();
                 if (removePopup == null)
                 {
@@ -218,8 +234,8 @@ namespace TrayApplication.Views
                         Message = "Do you want to delete this app from the Tray? App won't be uninstalled from your device",
                         Actions = new List<Button>() { cancelButton, deleteButton },
                     };
-                }\r
-                popupBaseView.Add(removePopup);\r
+                }
+                popupBaseView.Add(removePopup);
                 UpdateRemovePopupWindowDimensions();
                 removePopupWindow.Resized += OnRemovePopupWindowResized;
 
@@ -244,16 +260,16 @@ namespace TrayApplication.Views
 
         private void RemoveConfirmationPopup()
         {
-            if (removePopup != null)\r
-            {\r
-                removePopupWindow?.Remove(popupBaseView);\r
-                popupBaseView?.Remove(removePopup);\r
-                removePopup.Dispose();\r
-                removePopup = null;\r
-                popupBaseView?.Dispose();\r
-                popupBaseView = null;\r
-                removePopupWindow?.Dispose();\r
-                removePopupWindow = null;\r
+            if (removePopup != null)
+            {
+                removePopupWindow?.Remove(popupBaseView);
+                popupBaseView?.Remove(removePopup);
+                removePopup.Dispose();
+                removePopup = null;
+                popupBaseView?.Dispose();
+                popupBaseView = null;
+                removePopupWindow?.Dispose();
+                removePopupWindow = null;
             }
         }
 
index 128d8444dcbbba54bcbe6f12123980bf5a3a7d0e..0e15662761bba16a62d3fdc847deeb5de5804a48 100755 (executable)
@@ -1,4 +1,20 @@
-using System;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
 using System.IO;
 using Tizen.NUI;
 using Tizen.NUI.BaseComponents;
index 8065101ea7b3d9173f5bd7e404bb2970f4ab4180..d3eebc58c55e49e61dbc2c500bc16fa241ddb184 100644 (file)
@@ -1,4 +1,20 @@
-using System.Collections;
+/*
+ *  Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System.Collections;
 using System.Collections.Generic;
 using Tizen.NUI;
 using Tizen.NUI.Components;
@@ -92,12 +108,12 @@ namespace TrayApplication.Views
                 defaultButtons.Add(button);
                 button.BindingContext = item;
                 button.Icon.SetBinding(ImageView.ResourceUrlProperty, "IconUrl");
-                button.SetBinding(Control.CommandProperty, "AppSelectCommand");\r
-\r
-                Tizen.Log.Info(Resources.LogTag, "Buttons Added");\r
+                button.SetBinding(Control.CommandProperty, "AppSelectCommand");
+
+                Tizen.Log.Info(Resources.LogTag, "Buttons Added");
             }
-        }\r
-\r
+        }
+
         public void OnRemoveModeToggled(bool removeMode)
         {
             if (removeMode == true)
index 84c1417722077c45dcbcb204e3cb2e0ec650813f..466e4ebb19f6e2e930764c2b38a3540e96a9de13 100755 (executable)
@@ -33,3 +33,4 @@ install packaging/%{apps_name}-%{version}.tpk %{buildroot}/%{preload_tpk_path}/
 %files
 %defattr(-,root,root,-)
 %{preload_tpk_path}/*
+%license LICENSE
\ No newline at end of file