aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xAAP.svg248
-rw-r--r--ALP.svg131
-rw-r--r--Alee Audio Player.desktop7
-rw-r--r--Alee Audio Player.pro (renamed from AleePlayer.pro)7
-rw-r--r--AleePlayer.desktop7
-rw-r--r--README.md2
-rw-r--r--about.cpp2
-rw-r--r--about.h2
-rw-r--r--about.ui6
-rw-r--r--library.cpp2
-rw-r--r--library.h2
-rw-r--r--main.cpp6
-rw-r--r--player.cpp24
-rw-r--r--player.h3
-rw-r--r--player.ui10
15 files changed, 296 insertions, 163 deletions
diff --git a/AAP.svg b/AAP.svg
new file mode 100755
index 0000000..0662b78
--- /dev/null
+++ b/AAP.svg
@@ -0,0 +1,248 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ sodipodi:docname="AAP.svg"
+ inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
+ id="svg1957"
+ version="1.1"
+ viewBox="0 0 100 100"
+ height="100mm"
+ width="100mm">
+ <defs
+ id="defs1951">
+ <filter
+ height="1.12"
+ y="-0.059999999"
+ width="1.12"
+ x="-0.059999999"
+ id="filter3581-5"
+ style="color-interpolation-filters:sRGB"
+ inkscape:collect="always">
+ <feGaussianBlur
+ id="feGaussianBlur3583-0"
+ stdDeviation="11.72299"
+ inkscape:collect="always" />
+ </filter>
+ <linearGradient
+ gradientTransform="matrix(0.562833,0,0,0.562833,120.95711,117.57609)"
+ gradientUnits="userSpaceOnUse"
+ y2="241.81548"
+ x2="199.57143"
+ y1="58.875"
+ x1="4.1577382"
+ id="linearGradient4532-0"
+ xlink:href="#linearGradient3954"
+ inkscape:collect="always" />
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient3954">
+ <stop
+ style="stop-color:#ff8807;stop-opacity:1"
+ offset="0"
+ id="stop3950" />
+ <stop
+ style="stop-color:#975100;stop-opacity:1"
+ offset="1"
+ id="stop3952" />
+ </linearGradient>
+ <filter
+ inkscape:collect="always"
+ style="color-interpolation-filters:sRGB"
+ id="filter3168"
+ x="-0.048"
+ width="1.096"
+ y="-0.048"
+ height="1.096">
+ <feGaussianBlur
+ inkscape:collect="always"
+ stdDeviation="1.5378906"
+ id="feGaussianBlur3170" />
+ </filter>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient2924"
+ id="linearGradient2918"
+ x1="120.119"
+ y1="133.34694"
+ x2="232.47932"
+ y2="247.911"
+ gradientUnits="userSpaceOnUse" />
+ <linearGradient
+ id="linearGradient2924"
+ inkscape:collect="always">
+ <stop
+ id="stop2920"
+ offset="0"
+ style="stop-color:#fcff00;stop-opacity:1" />
+ <stop
+ id="stop2922"
+ offset="1"
+ style="stop-color:#b09100;stop-opacity:1" />
+ </linearGradient>
+ </defs>
+ <sodipodi:namedview
+ inkscape:window-maximized="0"
+ inkscape:window-y="34"
+ inkscape:window-x="569"
+ inkscape:window-height="908"
+ inkscape:window-width="1343"
+ showgrid="false"
+ inkscape:document-rotation="0"
+ inkscape:current-layer="layer1"
+ inkscape:document-units="mm"
+ inkscape:cy="304.17278"
+ inkscape:cx="708.27688"
+ inkscape:zoom="0.49497475"
+ inkscape:pageshadow="2"
+ inkscape:pageopacity="0.0"
+ borderopacity="1.0"
+ bordercolor="#666666"
+ pagecolor="#ffffff"
+ id="base" />
+ <metadata
+ id="metadata1954">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1"
+ inkscape:groupmode="layer"
+ inkscape:label="Layer 1">
+ <g
+ inkscape:export-ydpi="96"
+ inkscape:export-xdpi="96"
+ transform="translate(-123.7713,-144.38989)"
+ id="g3354">
+ <path
+ style="fill:#000c80;fill-opacity:1;stroke-width:0.224156"
+ id="path817-9"
+ sodipodi:type="arc"
+ sodipodi:cx="174.25737"
+ sodipodi:cy="194.81694"
+ sodipodi:rx="48.673847"
+ sodipodi:ry="48.673847"
+ sodipodi:start="0"
+ sodipodi:end="6.2105971"
+ sodipodi:open="true"
+ sodipodi:arc-type="arc"
+ d="m 222.93122,194.81694 a 48.673847,48.673847 0 0 1 -47.79061,48.66583 48.673847,48.673847 0 0 1 -49.52503,-46.89964 48.673847,48.673847 0 0 1 45.99324,-50.36792 48.673847,48.673847 0 0 1 51.19422,45.07168" />
+ <path
+ style="fill:#191919;fill-opacity:1;stroke-width:1.78393;filter:url(#filter3581-5)"
+ id="path819-8-6"
+ sodipodi:type="arc"
+ sodipodi:cx="703.04071"
+ sodipodi:cy="251.83664"
+ sodipodi:rx="234.45979"
+ sodipodi:ry="234.45979"
+ sodipodi:start="0"
+ sodipodi:end="6.2630301"
+ sodipodi:open="true"
+ transform="matrix(0.18545219,0,0,0.18545219,43.87694,148.11327)"
+ sodipodi:arc-type="arc"
+ d="M 937.5005,251.83664 A 234.45979,234.45979 0 0 1 704.2221,486.29346 234.45979,234.45979 0 0 1 468.59282,254.19939 234.45979,234.45979 0 0 1 699.49666,17.403634 234.45979,234.45979 0 0 1 937.45288,247.11137" />
+ <path
+ style="fill:url(#linearGradient4532-0);fill-opacity:1;stroke-width:0.330834"
+ id="path819-3"
+ sodipodi:type="arc"
+ sodipodi:cx="174.25737"
+ sodipodi:cy="194.81694"
+ sodipodi:rx="43.481079"
+ sodipodi:ry="43.481079"
+ sodipodi:start="0"
+ sodipodi:end="6.2630301"
+ sodipodi:open="true"
+ sodipodi:arc-type="arc"
+ d="m 217.73845,194.81694 a 43.481079,43.481079 0 0 1 -43.26199,43.48053 43.481079,43.481079 0 0 1 -43.69796,-43.04235 43.481079,43.481079 0 0 1 42.82162,-43.91429 43.481079,43.481079 0 0 1 44.1295,42.5998" />
+ <g
+ id="g3337">
+ <text
+ id="text1825-5-8"
+ y="194.81694"
+ x="172.20232"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.95665px;line-height:1.25;font-family:Play;-inkscape-font-specification:Play;letter-spacing:0px;word-spacing:0px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.148916"
+ xml:space="preserve"><tspan
+ style="stroke-width:0.148916"
+ y="194.81694"
+ x="172.20232"
+ id="tspan1823-6-5"
+ sodipodi:role="line"> </tspan></text>
+ <circle
+ style="fill:#000000;fill-opacity:0.996078;fill-rule:nonzero;stroke:none;stroke-width:2.06667;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal;filter:url(#filter3168)"
+ id="path3766-8"
+ cx="1269.061"
+ cy="48.709526"
+ r="38.447266"
+ transform="matrix(0.61264227,0,0,0.61264227,-603.22306,164.97543)" />
+ <g
+ id="g2933"
+ transform="translate(-0.16912973,-2.7675262)">
+ <circle
+ style="fill:url(#linearGradient2918);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.26613;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
+ id="path3766"
+ cx="174.25737"
+ cy="197.64726"
+ r="23.55442" />
+ <ellipse
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78783;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
+ id="path3794"
+ cx="164.32909"
+ cy="191.02161"
+ rx="1.6651245"
+ ry="3.5370526" />
+ <ellipse
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78783;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
+ id="path3794-1"
+ cx="183.73766"
+ cy="190.92998"
+ rx="1.6651245"
+ ry="3.5370526" />
+ <g
+ id="g1035"
+ transform="translate(4.4158622,31.006934)">
+ <rect
+ y="157.49884"
+ x="142.70897"
+ height="20.71139"
+ width="6.2427411"
+ id="rect3680"
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.0851603;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" />
+ <path
+ d="m 1259.0482,-58.817824 c 0.568,-19.184701 17.5934,-34.020666 36.5069,-33.357732 16.1054,0.564507 30.1652,11.938063 34.7034,27.298741"
+ transform="matrix(0.68412502,0.09907965,-0.0858267,0.8299174,-720.64463,86.204294)"
+ sodipodi:t0="0.85191101"
+ sodipodi:argument="-19.247704"
+ sodipodi:radius="39.10619"
+ sodipodi:revolution="3.02601"
+ sodipodi:expansion="1"
+ sodipodi:cy="-55.781796"
+ sodipodi:cx="1292.2246"
+ id="path3772"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-dasharray:none"
+ sodipodi:type="spiral" />
+ <rect
+ y="156.7856"
+ x="191.06956"
+ height="20.71139"
+ width="6.2427411"
+ id="rect3680-6"
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.0851603;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" />
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+</svg>
diff --git a/ALP.svg b/ALP.svg
deleted file mode 100644
index 11a8a9d..0000000
--- a/ALP.svg
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="32px"
- height="32px"
- viewBox="0 0 32 32"
- version="1.1"
- id="SVGRoot"
- inkscape:version="0.92.4 5da689c313, 2019-01-14"
- sodipodi:docname="ALP.svg">
- <defs
- id="defs23">
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient1815"
- id="linearGradient1849"
- x1="191.35619"
- y1="77.545326"
- x2="165.94176"
- y2="36.145283"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(1.6679636,0,0,1.6679636,-180.21985,-725.61614)" />
- <linearGradient
- inkscape:collect="always"
- id="linearGradient1815">
- <stop
- style="stop-color:#008000;stop-opacity:1"
- offset="0"
- id="stop1811" />
- <stop
- style="stop-color:#000080;stop-opacity:1"
- offset="1"
- id="stop1813" />
- </linearGradient>
- </defs>
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="11.313708"
- inkscape:cx="17.930357"
- inkscape:cy="8.2669824"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- inkscape:window-width="1920"
- inkscape:window-height="974"
- inkscape:window-x="0"
- inkscape:window-y="36"
- inkscape:window-maximized="1"
- inkscape:grid-bbox="true" />
- <metadata
- id="metadata26">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1">
- <g
- transform="matrix(0.17705736,0,0,0.17705736,-3.9152667,126.91168)"
- id="g1147"
- inkscape:export-xdpi="96"
- inkscape:export-ydpi="96">
- <path
- style="display:inline;fill:url(#linearGradient1849);fill-opacity:1;stroke-width:0.39826357"
- id="path817-7"
- sodipodi:type="arc"
- sodipodi:cx="113.56826"
- sodipodi:cy="-626.15546"
- sodipodi:rx="86.480103"
- sodipodi:ry="86.480103"
- sodipodi:start="0"
- sodipodi:end="6.2105971"
- sodipodi:open="true"
- d="m 200.04836,-626.15546 a 86.480103,86.480103 0 0 1 -84.91083,86.46587 86.480103,86.480103 0 0 1 -87.99242,-83.32784 86.480103,86.480103 0 0 1 81.7174,-89.49 86.480103,86.480103 0 0 1 90.95812,80.08005" />
- <path
- style="display:inline;fill:#5aa02c;fill-opacity:1;stroke-width:0.58780181"
- id="path819-0"
- sodipodi:type="arc"
- sodipodi:cx="113.56826"
- sodipodi:cy="-626.15546"
- sodipodi:rx="77.253967"
- sodipodi:ry="77.253967"
- sodipodi:start="0"
- sodipodi:end="6.2105971"
- sodipodi:open="true"
- d="m 190.82223,-626.15546 a 77.253967,77.253967 0 0 1 -75.85212,77.24125 77.253967,77.253967 0 0 1 -78.604941,-74.438 77.253967,77.253967 0 0 1 72.999371,-79.94276 77.253967,77.253967 0 0 1 81.25425,71.53671" />
- <path
- style="fill:#ffffff;stroke-width:0.08870116"
- inkscape:connector-curvature="0"
- d="m 155.94806,-608.99878 h -28.3844 c -7.84115,0 -14.19216,6.35103 -14.19216,14.19218 0,7.84118 6.35101,14.1922 14.19216,14.1922 3.97385,0 7.55736,-1.63212 10.12969,-4.25766 h 8.11618 c 2.57232,2.62554 6.16473,4.25766 10.12968,4.25766 7.84115,0 14.19215,-6.35101 14.19215,-14.1922 0,-7.84115 -6.34212,-14.19218 -14.1833,-14.19218 z m -19.86905,15.96623 c 0,0.58545 -0.479,1.06437 -1.06442,1.06437 h -4.61247 v 4.61249 c 0,0.58541 -0.47896,1.06441 -1.06442,1.06441 h -3.54806 c -0.58542,0 -1.0644,-0.479 -1.0644,-1.06441 v -4.61249 h -4.61245 c -0.58543,0 -1.06442,-0.47897 -1.06442,-1.06437 v -3.54809 c 0,-0.58543 0.47899,-1.0644 1.06442,-1.0644 h 4.61245 v -4.61245 c 0,-0.58543 0.47898,-1.06441 1.0644,-1.06441 h 3.54806 c 0.58546,0 1.06442,0.47898 1.06442,1.06441 v 4.61245 h 4.61247 c 0.58542,0 1.06442,0.47897 1.06442,1.0644 z m 16.32097,6.03166 c -2.35056,0 -4.25763,-1.90707 -4.25763,-4.25766 0,-2.35058 1.90707,-4.25765 4.25763,-4.25765 2.35062,0 4.25767,1.90707 4.25767,4.25765 0,2.35059 -1.90705,4.25766 -4.25767,4.25766 z m 7.09614,-7.0961 c -2.3506,0 -4.25768,-1.90708 -4.25768,-4.25766 0,-2.35055 1.90708,-4.25762 4.25768,-4.25762 2.35057,0 4.25764,1.90707 4.25764,4.25762 0,2.35058 -1.90707,4.25766 -4.25764,4.25766 z"
- id="path1581-3" />
- <path
- style="fill:#ffffff;stroke-width:0.08802874"
- inkscape:connector-curvature="0"
- d="m 98.479254,-607.66596 v 0.53336 H 87.211581 v -11.26769 h 0.533372 c 0.560277,0 1.097714,0.22264 1.493942,0.61877 l 8.621633,8.62159 a 2.1131295,2.1131295 0 0 1 0.618726,1.49397 z m -11.971928,3.35027 c -1.161952,0 -2.112663,-0.95072 -2.112663,-2.11267 v -11.97193 H 66.788914 c -1.166817,0 -2.11269,0.94588 -2.11269,2.1127 v 40.84531 c 0,1.16684 0.945873,2.11271 2.11269,2.11271 h 29.577672 c 1.166822,0 2.112668,-0.94587 2.112668,-2.11271 v -28.87341 z m -10.985439,21.17134 a 0.47535512,0.47535512 0 0 1 -0.671925,0.0216 l -5.710062,-5.35322 a 0.47535512,0.47535512 0 0 1 0,-0.69358 l 5.710062,-5.3532 a 0.47535512,0.47535512 0 0 1 0.671925,0.0216 l 1.723504,1.83851 a 0.47535512,0.47535512 0 0 1 -0.03262,0.68196 l -3.588304,3.15794 3.588304,3.15796 a 0.47535512,0.47535512 0 0 1 0.03262,0.68193 z m 4.515422,4.44362 -2.416637,-0.70158 a 0.47553119,0.47553119 0 0 1 -0.324046,-0.58908 l 5.408486,-18.62921 a 0.47553119,0.47553119 0 0 1 0.589101,-0.32402 l 2.416548,0.70159 a 0.47535512,0.47535512 0 0 1 0.323951,0.58908 l -5.408498,18.62918 a 0.47509106,0.47509106 0 0 1 -0.588905,0.32404 z m 14.154303,-9.77517 -5.710011,5.35324 a 0.47535512,0.47535512 0 0 1 -0.671925,-0.0216 l -1.723636,-1.83847 a 0.47535512,0.47535512 0 0 1 0.03265,-0.68196 l 3.588424,-3.15787 -3.588328,-3.15792 a 0.47535512,0.47535512 0 0 1 -0.03265,-0.68195 l 1.723636,-1.8385 a 0.47535512,0.47535512 0 0 1 0.671893,-0.0216 l 5.710091,5.35322 a 0.47535512,0.47535512 0 0 1 -9.6e-5,0.69359 z"
- id="path3972" />
- <path
- style="fill:#ffffff;stroke-width:0.08816871"
- inkscape:connector-curvature="0"
- d="m 61.212704,-654.75471 c 3.112359,0 5.642798,-2.53046 5.642798,-5.6428 0,-3.11235 -2.530439,-5.6428 -5.642798,-5.6428 -3.112347,0 -5.642785,2.53045 -5.642785,5.6428 0,3.11234 2.530438,5.6428 5.642785,5.6428 z m 39.499576,0 c 3.11238,0 5.64282,-2.53046 5.64282,-5.6428 0,-3.11235 -2.53044,-5.6428 -5.64282,-5.6428 -3.112362,0 -5.642792,2.53045 -5.642792,5.6428 0,3.11234 2.53043,5.6428 5.642792,5.6428 z m 2.82143,2.82138 h -5.642833 c -1.551769,0 -2.953639,0.62598 -3.976419,1.63993 3.55322,1.94855 6.074833,5.46647 6.621492,9.64569 h 5.81915 c 1.56058,0 2.8214,-1.26082 2.8214,-2.82143 v -2.8214 c 0,-3.11233 -2.53046,-5.64279 -5.64279,-5.64279 z m -22.571214,0 c 5.457654,0 9.874898,-4.41723 9.874898,-9.8749 0,-5.45762 -4.417244,-9.87488 -9.874898,-9.87488 -5.457639,0 -9.874882,4.41726 -9.874882,9.87488 0,5.45767 4.417243,9.8749 9.874882,9.8749 z m 6.771339,2.82142 h -0.731762 c -1.833939,0.88169 -3.870626,1.41069 -6.039577,1.41069 -2.168936,0 -4.19682,-0.529 -6.039548,-1.41069 h -0.731816 c -5.607522,0 -10.157029,4.54951 -10.157029,10.15703 v 2.53926 c 0,2.33647 1.895621,4.23207 4.2321,4.23207 h 25.392575 c 2.33648,0 4.232099,-1.8956 4.232099,-4.23207 v -2.53926 c 0,-5.60752 -4.549509,-10.15703 -10.157042,-10.15703 z m -19.723333,-1.18148 c -1.02275,-1.01394 -2.424634,-1.63992 -3.976399,-1.63992 h -5.642798 c -3.112347,0 -5.642798,2.53046 -5.642798,5.64278 v 2.82141 c 0,1.56059 1.260817,2.82142 2.821412,2.82142 h 5.810312 c 0.555461,-4.17922 3.07707,-7.69715 6.630271,-9.64569 z"
- id="path3983" />
- <path
- style="fill:#ffffff;stroke-width:0.09225987"
- inkscape:connector-curvature="0"
- d="m 148.63404,-668.58888 h -26.60777 c -2.43563,0 -4.41,1.97441 -4.41,4.41006 v 26.60771 c 0,2.43565 1.97437,4.41001 4.41,4.41001 h 26.60777 c 2.43565,0 4.41,-1.97436 4.41,-4.41001 v -26.60771 c 0,-2.43565 -1.97435,-4.41006 -4.41,-4.41006 z m 17.47394,3.4782 -10.11165,6.97481 v 14.52172 l 10.11165,6.96561 c 1.95595,1.34699 4.64998,-0.0278 4.64998,-2.3803 v -23.70155 c 0,-2.34338 -2.68482,-3.72733 -4.64998,-2.38029 z"
- id="path1514-6-7" />
- </g>
- </g>
-</svg>
diff --git a/Alee Audio Player.desktop b/Alee Audio Player.desktop
new file mode 100644
index 0000000..17a1a4b
--- /dev/null
+++ b/Alee Audio Player.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Type=Application
+Name=Alee Audio Player
+Comment=Audio Player
+Exec=AleeAudioPlayer
+Icon=AAP
+Categories=Audio;
diff --git a/AleePlayer.pro b/Alee Audio Player.pro
index ecb90de..3c4e2fa 100644
--- a/AleePlayer.pro
+++ b/Alee Audio Player.pro
@@ -38,16 +38,17 @@ TRANSLATIONS += \
unix:!macx:!android {
- TARGET = AleePlayer
+ TARGET = AleeAudioPlayer
target.path = /usr/bin
desktop.path = /usr/share/applications
- desktop.files = AleePlayer.desktop
+ desktop.files = Alee Audio Player.desktop
icon.path = /usr/share/icons/hicolor/scalable/apps/
- icon.files = ALP.svg
+ icon.files = AAP.svg
+ LIBS += -ltag
INSTALLS += target desktop icon
}
diff --git a/AleePlayer.desktop b/AleePlayer.desktop
deleted file mode 100644
index da6d3a5..0000000
--- a/AleePlayer.desktop
+++ /dev/null
@@ -1,7 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Alee Music Player
-Comment=Music Player
-Exec=AleePlayer
-Icon=ALP
-Categories=Audio;
diff --git a/README.md b/README.md
index f974ac9..243a713 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# AleePlayer
+# Alee Audio Player
An audio player written in Qt
[![Build status](https://ci.appveyor.com/api/projects/status/6ifpgxms79l4q0u2?svg=true)](https://ci.appveyor.com/project/Alee14/aleeplayer) [![Build Status](https://travis-ci.org/aleeproductions/AleePlayer.svg?branch=master)](https://travis-ci.org/aleeproductions/AleePlayer)
diff --git a/about.cpp b/about.cpp
index 250945d..e5ebef7 100644
--- a/about.cpp
+++ b/about.cpp
@@ -1,5 +1,5 @@
/*
- AleePlayer: Music player in Qt
+ Alee Audio Player: Audio player in Qt
Copyright (C) 2020 Alee Productions
This program is free software: you can redistribute it and/or modify
diff --git a/about.h b/about.h
index 595f3f5..f2c91ff 100644
--- a/about.h
+++ b/about.h
@@ -1,5 +1,5 @@
/*
- AleePlayer: Music player in Qt
+ Alee Audio Player: Audio player in Qt
Copyright (C) 2020 Alee Productions
This program is free software: you can redistribute it and/or modify
diff --git a/about.ui b/about.ui
index cc3cad9..2bd6eab 100644
--- a/about.ui
+++ b/about.ui
@@ -64,14 +64,14 @@
</widget>
</item>
<item>
- <widget class="QLabel" name="label_2">
+ <widget class="QLabel" name="label_4">
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="text">
- <string>Licensed with GPL-3.0</string>
+ <string>Written in C++ and Qt, Licensed with GPL-3.0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -112,7 +112,7 @@
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Alee Music Player: An audio player written in Qt&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Alee Audio Player: An audio player written in Qt&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Copyright (C) 2020 Alee Productions&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; This program is free software: you can redistribute it and/or modify&lt;/p&gt;
diff --git a/library.cpp b/library.cpp
index aa3e8c1..ffba966 100644
--- a/library.cpp
+++ b/library.cpp
@@ -1,5 +1,5 @@
/*
- AleePlayer: Music player in Qt
+ Alee Audio Player: Audio player in Qt
Copyright (C) 2020 Alee Productions
This program is free software: you can redistribute it and/or modify
diff --git a/library.h b/library.h
index 9858d9f..c88f49d 100644
--- a/library.h
+++ b/library.h
@@ -1,5 +1,5 @@
/*
- AleePlayer: Music player in Qt
+ Alee Audio Player: Audio player in Qt
Copyright (C) 2020 Alee Productions
This program is free software: you can redistribute it and/or modify
diff --git a/main.cpp b/main.cpp
index e9f00e6..d255601 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,5 +1,5 @@
/*
- AleePlayer: Music player in Qt
+ Alee Audio Player: Audio player in Qt
Copyright (C) 2020 Alee Productions
This program is free software: you can redistribute it and/or modify
@@ -26,7 +26,7 @@
int main(int argc, char *argv[])
{
- qInfo() << "AleePlayer: A music player by Alee Productions. Licensed with GPL-3.0.\n";
+ qInfo() << "Alee Audio Player: A music player by Alee Productions. Licensed with GPL-3.0.\n";
qDebug() << "Creating files...";
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
QApplication a(argc, argv);
QTranslator translator;
- translator.load(QLocale(), "/home/andrew/Documents/GitHub/AleePlayer/translations/");
+ translator.load(QLocale(), "/home/andrew/Documents/GitHub/Alee Audio Player/translations/");
a.installTranslator(&translator);
Player musicPlayer;
diff --git a/player.cpp b/player.cpp
index fdc41c7..9ff8591 100644
--- a/player.cpp
+++ b/player.cpp
@@ -1,5 +1,5 @@
/*
- AleePlayer: Music player in Qt
+ Alee Audio Player: Audio player in Qt
Copyright (C) 2020 Alee Productions
This program is free software: you can redistribute it and/or modify
@@ -23,7 +23,8 @@
void Player::loadFile()
{
QMessageBox msgbox;
- mFile = QFileDialog::getOpenFileName(this, tr("Open any audio file"), QDir::homePath(), tr("Audio Files (*.mp3 *.wav *.ogg *.flac *.mp4)"));
+
+ mFile = QFileDialog::getOpenFileName(this, tr("Open any audio file"), QDir::homePath(), tr("Audio Files (*.mp3 *.wav *.ogg *.flac)"));
if (mFile == NULL) {
qDebug() << tr("File cannot be found");
msgbox.setWindowTitle(tr("Uh oh! An error has occured!"));
@@ -39,7 +40,18 @@ void Player::loadFile()
msgbox.setIcon(QMessageBox::Information);
msgbox.exec();
ui->volumeSlider->setValue(100);
- ui->playButton->setText(tr("Play"));
+ ui->playbackSlider->setEnabled(true);
+
+ char* fn = new char [mFile.toStdString().size()+1];
+ strcpy( fn, mFile.toStdString().c_str() );
+ TagLib::FileRef* fileref = new TagLib::FileRef(fn);
+
+ if (fileref->tag() != nullptr) {
+ TagLib::String title = fileref->tag()->title();
+ const char* title_ = title.to8Bit(true).c_str();
+ ui->labelTitle->setText(title_);
+ }
+
return;
}
}
@@ -51,7 +63,6 @@ Player::Player(QWidget *parent)
, ui(new Ui::Player)
{
ui->setupUi(this);
-
ui->library->setModel(new Library());
connect(mPlayer, &QMediaPlayer::positionChanged, this, &Player::on_positionChanged);
@@ -61,7 +72,7 @@ Player::Player(QWidget *parent)
Player::~Player()
{
- qInfo() << tr("Closing AleePlayer...");
+ qInfo() << tr("Closing Alee Audio Player...");
mPlayer->deleteLater();
delete ui;
}
@@ -84,8 +95,6 @@ void Player::on_playButton_pressed()
qDebug() << tr("Playing music...");
mPlayer->play();
ui->playButton->setText(tr("Pause"));
- amount++;
- //qDebug() << "You have pressed play for" << amount << "time(s).";
}
}
@@ -94,7 +103,6 @@ void Player::on_stopButton_pressed()
{
qInfo() << tr("Stopping music...");
mPlayer->stop();
- ui->volumeSlider->setEnabled(false);
ui->volumeSlider->setValue(100);
ui->playbackSlider->setEnabled(false);
ui->playbackSlider->setValue(0);
diff --git a/player.h b/player.h
index f0cb0b9..c1fbc78 100644
--- a/player.h
+++ b/player.h
@@ -1,5 +1,5 @@
/*
- AleePlayer: Music player in Qt
+ Alee Audio Player: Audio player in Qt
Copyright (C) 2020 Alee Productions
This program is free software: you can redistribute it and/or modify
@@ -23,6 +23,7 @@
#include <QDebug>
#include <QFileDialog>
#include <QMessageBox>
+#include <taglib/fileref.h>
QT_BEGIN_NAMESPACE
namespace Ui { class Player; }
diff --git a/player.ui b/player.ui
index 86e9834..ac85d61 100644
--- a/player.ui
+++ b/player.ui
@@ -127,7 +127,7 @@
<item row="6" column="3" colspan="2">
<widget class="QSlider" name="volumeSlider">
<property name="enabled">
- <bool>false</bool>
+ <bool>true</bool>
</property>
<property name="value">
<number>99</number>
@@ -179,7 +179,6 @@
</property>
<addaction name="actionOpen"/>
<addaction name="separator"/>
- <addaction name="actionAbout"/>
<addaction name="actionQuit"/>
</widget>
<widget class="QMenu" name="menuView">
@@ -187,8 +186,15 @@
<string>View</string>
</property>
</widget>
+ <widget class="QMenu" name="menuHelp">
+ <property name="title">
+ <string>Help</string>
+ </property>
+ <addaction name="actionAbout"/>
+ </widget>
<addaction name="menuFile"/>
<addaction name="menuView"/>
+ <addaction name="menuHelp"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionQuit">