#
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT("volume")
+PROJECT("tv-volume")
IF(NOT DEFINED PACKAGE_NAME)
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * 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.
+ */
+
+#include "../include/define.h"
+
+collections {
+ base_scale: 2.0;
+ #include "widget/progressbar.edc"
+}
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * 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.
+ */
+
+#include "../include/define.h"
+
+collections {
+ base_scale: 2.0;
+ group {
+ name: GRP_VOLUME;
+ images {
+ image: "ic_volume_active.png" COMP;
+ image: "ic_volume_mute.png" COMP;
+ }
+ parts {
+ part {
+ name, "padding.volume";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ min, 46 0;
+ rel1.relative, 0.0 0.0;
+ rel2.relative, 0.0 0.0;
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, "part.volume";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ min, 74 530;
+ rel1 {
+ to, "padding.volume";
+ relative, 1.0 0.0;
+ }
+ rel2 {
+ to, "padding.volume";
+ relative, 1.0 0.0;
+ }
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ part {
+ name, PART_VOLUME_TEXT;
+ type, TEXT;
+ effect, OUTLINE_SOFT_SHADOW;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1.relative, 0.5 0.0;
+ rel2.relative, 0.5 0.0;
+ text {
+ font, FONT_LIGHT;
+ size, 36;
+ align, 0.5 0.5;
+ }
+ color, 255 255 255 255;
+ color2, 0 0 0 25;
+ color3, 0 0 0 78;
+ min, 62 36;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ description {
+ state, "mute" 0.0;
+ inherit, "default" 0.0;
+ visible, 0;
+ }
+ }
+ part {
+ name, "padding.progressbar";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ min, 0 22;
+ rel1 {
+ to, PART_VOLUME_TEXT;
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, PART_VOLUME_TEXT;
+ relative, 0.5 1.0;
+ }
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, PART_VOLUME_PROGRESSBAR;
+ type, SWALLOW;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ min, 6 404;
+ rel1 {
+ to, "padding.progressbar";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "padding.progressbar";
+ relative, 0.5 1.0;
+ }
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ description {
+ state, "mute" 0.0;
+ inherit, "default" 0.0;
+ visible, 0;
+ }
+ }
+ part {
+ name, "padding.icon";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ min, 0 18;
+ rel1 {
+ to, PART_VOLUME_PROGRESSBAR;
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, PART_VOLUME_PROGRESSBAR;
+ relative, 0.5 1.0;
+ }
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, PART_VOLUME_ICON;
+ type, IMAGE;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ image.normal, "ic_volume_active.png";
+ min, 74 50;
+ rel1 {
+ to, "padding.icon";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "padding.icon";
+ relative, 0.5 1.0;
+ }
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ description {
+ state, "mute" 0.0;
+ inherit, "default" 0.0;
+ rel1 {
+ to, "part.volume";
+ relative, 0.5 0.5;
+ }
+ rel2 {
+ to, "part.volume";
+ relative, 0.5 0.5;
+ }
+ align, 0.5 0.5;
+ image.normal, "ic_volume_mute.png";
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name, "show.mute";
+ signal, SIGNAL_SHOW_MUTE;
+ source, SOURCE_PROGRAM;
+ action, STATE_SET "mute" 0.0;
+ target, PART_VOLUME_TEXT;
+ target, PART_VOLUME_PROGRESSBAR;
+ target, PART_VOLUME_ICON;
+ }
+ program {
+ name, "hide.mute";
+ signal, SIGNAL_HIDE_MUTE;
+ source, SOURCE_PROGRAM;
+ action, STATE_SET "default" 0.0;
+ target, PART_VOLUME_TEXT;
+ target, PART_VOLUME_PROGRESSBAR;
+ target, PART_VOLUME_ICON;
+ }
+ }
+ }
+}
+++ /dev/null
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- */
-
-#include "../include/define.h"
-
-collections {
- base_scale: 2.0;
- #include "widget/progressbar.edc"
-}
+++ /dev/null
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- */
-
-#include "../include/define.h"
-
-collections {
- base_scale: 2.0;
- group {
- name: GRP_VOLUME;
- images {
- image: "ic_volume_active.png" COMP;
- image: "ic_volume_mute.png" COMP;
- }
- parts {
- part {
- name, "padding.volume";
- type, SPACER;
- scale, 1;
- description {
- state, "default" 0.0;
- min, 46 0;
- rel1.relative, 0.0 0.0;
- rel2.relative, 0.0 0.0;
- align, 0.0 0.0;
- fixed, 1 1;
- }
- }
- part {
- name, "part.volume";
- type, SPACER;
- scale, 1;
- description {
- state, "default" 0.0;
- min, 74 530;
- rel1 {
- to, "padding.volume";
- relative, 1.0 0.0;
- }
- rel2 {
- to, "padding.volume";
- relative, 1.0 0.0;
- }
- align, 0.0 0.0;
- fixed, 1 1;
- }
- part {
- name, PART_VOLUME_TEXT;
- type, TEXT;
- effect, OUTLINE_SOFT_SHADOW;
- scale, 1;
- description {
- state, "default" 0.0;
- rel1.relative, 0.5 0.0;
- rel2.relative, 0.5 0.0;
- text {
- font, FONT_LIGHT;
- size, 36;
- align, 0.5 0.5;
- }
- color, 255 255 255 255;
- color2, 0 0 0 25;
- color3, 0 0 0 78;
- min, 62 36;
- align, 0.5 0.0;
- fixed, 1 1;
- }
- description {
- state, "mute" 0.0;
- inherit, "default" 0.0;
- visible, 0;
- }
- }
- part {
- name, "padding.progressbar";
- type, SPACER;
- scale, 1;
- description {
- state, "default" 0.0;
- min, 0 22;
- rel1 {
- to, PART_VOLUME_TEXT;
- relative, 0.5 1.0;
- }
- rel2 {
- to, PART_VOLUME_TEXT;
- relative, 0.5 1.0;
- }
- align, 0.5 0.0;
- fixed, 1 1;
- }
- }
- part {
- name, PART_VOLUME_PROGRESSBAR;
- type, SWALLOW;
- scale, 1;
- description {
- state, "default" 0.0;
- min, 6 404;
- rel1 {
- to, "padding.progressbar";
- relative, 0.5 1.0;
- }
- rel2 {
- to, "padding.progressbar";
- relative, 0.5 1.0;
- }
- align, 0.5 0.0;
- fixed, 1 1;
- }
- description {
- state, "mute" 0.0;
- inherit, "default" 0.0;
- visible, 0;
- }
- }
- part {
- name, "padding.icon";
- type, SPACER;
- scale, 1;
- description {
- state, "default" 0.0;
- min, 0 18;
- rel1 {
- to, PART_VOLUME_PROGRESSBAR;
- relative, 0.5 1.0;
- }
- rel2 {
- to, PART_VOLUME_PROGRESSBAR;
- relative, 0.5 1.0;
- }
- align, 0.5 0.0;
- fixed, 1 1;
- }
- }
- part {
- name, PART_VOLUME_ICON;
- type, IMAGE;
- scale, 1;
- description {
- state, "default" 0.0;
- image.normal, "ic_volume_active.png";
- min, 74 50;
- rel1 {
- to, "padding.icon";
- relative, 0.5 1.0;
- }
- rel2 {
- to, "padding.icon";
- relative, 0.5 1.0;
- }
- align, 0.5 0.0;
- fixed, 1 1;
- }
- description {
- state, "mute" 0.0;
- inherit, "default" 0.0;
- rel1 {
- to, "part.volume";
- relative, 0.5 0.5;
- }
- rel2 {
- to, "part.volume";
- relative, 0.5 0.5;
- }
- align, 0.5 0.5;
- image.normal, "ic_volume_mute.png";
- }
- }
- }
- }
- programs {
- program {
- name, "show.mute";
- signal, SIGNAL_SHOW_MUTE;
- source, SOURCE_PROGRAM;
- action, STATE_SET "mute" 0.0;
- target, PART_VOLUME_TEXT;
- target, PART_VOLUME_PROGRESSBAR;
- target, PART_VOLUME_ICON;
- }
- program {
- name, "hide.mute";
- signal, SIGNAL_HIDE_MUTE;
- source, SOURCE_PROGRAM;
- action, STATE_SET "default" 0.0;
- target, PART_VOLUME_TEXT;
- target, PART_VOLUME_PROGRESSBAR;
- target, PART_VOLUME_ICON;
- }
- }
- }
-}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="@PACKAGE_NAME@" version="@VERSION@" install-location="internal-only">
+ <label>volume</label>
+ <author email="jw0227.shin@samsung.com" href="www.samsung.com">Jinwoo Shin</author>
+ <description>volume</description>
+ <ui-application appid="@PACKAGE_NAME@" exec="@BINDIR@/@PROJECT_NAME@" nodisplay="true" multiple="false" type="capp" taskmanage="true">
+ <label>volume</label>
+ <icon>@DESKTOP_ICON@</icon>
+ </ui-application>
+ <privileges>
+ <privilege>http://tizen.org/privilege/volume.set</privilege>
+ <privilege>http://tizen.org/privilege/keygrab</privilege>
+ </privileges>
+</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="@PACKAGE_NAME@" version="@VERSION@" install-location="internal-only">
- <label>volume</label>
- <author email="jw0227.shin@samsung.com" href="www.samsung.com">Jinwoo Shin</author>
- <description>volume</description>
- <ui-application appid="@PACKAGE_NAME@" exec="@BINDIR@/@PROJECT_NAME@" nodisplay="true" multiple="false" type="capp" taskmanage="true">
- <label>volume</label>
- <icon>@DESKTOP_ICON@</icon>
- </ui-application>
- <privileges>
- <privilege>http://tizen.org/privilege/volume.set</privilege>
- <privilege>http://tizen.org/privilege/keygrab</privilege>
- </privileges>
-</manifest>
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
--- /dev/null
+[Unit]
+Description=This path will tell you that volume is ready to launch
+
+[Path]
+PathExists=/run/.wm_ready
--- /dev/null
+[Unit]
+Description=volume
+Requires=launchpad-process-pool.service
+After=launchpad-process-pool.service
+
+[Service]
+ExecStart=/bin/sh -c -l '/usr/bin/aul_test launch org.tizen.tv-volume'
--- /dev/null
+Name: org.tizen.tv-volume
+Summary: Volume widget for Tizen TV
+Version: 0.2
+Release: 1
+Group: Applications/Core Applications
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.service
+Source2: %{name}.path
+Source3: %{name}.manifest
+
+BuildRequires: cmake
+BuildRequires: pkgconfig(capi-appfw-application)
+BuildRequires: pkgconfig(capi-media-sound-manager)
+BuildRequires: pkgconfig(elementary)
+BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(edje)
+BuildRequires: pkgconfig(app-utils)
+BuildRequires: gettext-devel
+BuildRequires: edje-bin
+
+%define _pkgdir /usr/apps/%{name}
+%define _bindir %{_pkgdir}/bin
+%define _resdir %{_pkgdir}/res
+%define _datadir %{_pkgdir}/data
+%define _edjedir %{_resdir}/edje
+%define _manifestdir /usr/share/packages
+%define _sysuserdir /systemd/user
+%define _servicedir /systemd/user/default.target.wants
+
+%description
+Volume widget for Tizen TV
+
+%prep
+%setup -q
+cp %{SOURCE3} .
+
+%build
+cmake \
+ -DCMAKE_INSTALL_PREFIX=%{_pkgdir} \
+ -DPACKAGE_NAME=%{name} \
+ -DBINDIR=%{_bindir} \
+ -DEDJEDIR=%{_edjedir} \
+ -DMANIFESTDIR=%{_manifestdir} \
+ -DVERSION=%{version}
+
+make %{?jobs:-j%jobs}
+
+%install
+%make_install
+install --directory %{buildroot}/%{_datadir}
+install --directory %{buildroot}%{_libdir}%{_servicedir}
+install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}%{_sysuserdir}
+install -m 0644 %{SOURCE2} %{buildroot}%{_libdir}%{_sysuserdir}
+ln -sf ../%{name}.path %{buildroot}%{_libdir}%{_servicedir}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{_bindir}/*
+%{_resdir}/*
+%{_datadir}
+%{_manifestdir}/%{name}.xml
+%{_libdir}%{_sysuserdir}/%{name}.service
+%{_libdir}%{_sysuserdir}/%{name}.path
+%{_libdir}%{_servicedir}/%{name}.path
+%{_datarootdir}/license/*
+++ /dev/null
-<manifest>
- <request>
- <domain name="_"/>
- </request>
-</manifest>
+++ /dev/null
-[Unit]
-Description=This path will tell you that volume is ready to launch
-
-[Path]
-PathExists=/run/.wm_ready
+++ /dev/null
-[Unit]
-Description=volume
-Requires=launchpad-process-pool.service
-After=launchpad-process-pool.service
-
-[Service]
-ExecStart=/bin/sh -c -l '/usr/bin/aul_test launch org.tizen.volume'
+++ /dev/null
-Name: org.tizen.volume
-Summary: Volume widget for Tizen TV
-Version: 0.2
-Release: 1
-Group: Applications/Core Applications
-License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
-Source1: %{name}.service
-Source2: %{name}.path
-Source3: %{name}.manifest
-
-BuildRequires: cmake
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(capi-media-sound-manager)
-BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(edje)
-BuildRequires: pkgconfig(app-utils)
-BuildRequires: gettext-devel
-BuildRequires: edje-bin
-
-%define _pkgdir /usr/apps/%{name}
-%define _bindir %{_pkgdir}/bin
-%define _resdir %{_pkgdir}/res
-%define _datadir %{_pkgdir}/data
-%define _edjedir %{_resdir}/edje
-%define _manifestdir /usr/share/packages
-%define _sysuserdir /systemd/user
-%define _servicedir /systemd/user/default.target.wants
-
-%description
-Volume widget for Tizen TV
-
-%prep
-%setup -q
-cp %{SOURCE3} .
-
-%build
-cmake \
- -DCMAKE_INSTALL_PREFIX=%{_pkgdir} \
- -DPACKAGE_NAME=%{name} \
- -DBINDIR=%{_bindir} \
- -DEDJEDIR=%{_edjedir} \
- -DMANIFESTDIR=%{_manifestdir} \
- -DVERSION=%{version}
-
-make %{?jobs:-j%jobs}
-
-%install
-%make_install
-install --directory %{buildroot}/%{_datadir}
-install --directory %{buildroot}%{_libdir}%{_servicedir}
-install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}%{_sysuserdir}
-install -m 0644 %{SOURCE2} %{buildroot}%{_libdir}%{_sysuserdir}
-ln -sf ../%{name}.path %{buildroot}%{_libdir}%{_servicedir}
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%manifest %{name}.manifest
-%defattr(-,root,root,-)
-%{_bindir}/*
-%{_resdir}/*
-%{_datadir}
-%{_manifestdir}/%{name}.xml
-%{_libdir}%{_sysuserdir}/%{name}.service
-%{_libdir}%{_sysuserdir}/%{name}.path
-%{_libdir}%{_servicedir}/%{name}.path
-%{_datarootdir}/license/*