mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 10:42:29 +01:00
Big cleanup and basic interface construction
This commit is contained in:
parent
18be4222d8
commit
520077d328
@ -1,10 +1,11 @@
|
||||
TEMPLATE = app
|
||||
|
||||
QT += qml quick gui opengl
|
||||
QT += qml quick gui opengl gui
|
||||
CONFIG += c++14
|
||||
|
||||
SOURCES += main.cpp \
|
||||
src/screenplay.cpp
|
||||
src/screenplay.cpp \
|
||||
src/steamworkshop.cpp
|
||||
|
||||
RESOURCES += qml.qrc
|
||||
|
||||
@ -31,7 +32,8 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
|
||||
HEADERS += \
|
||||
src/screenplay.h
|
||||
src/screenplay.h \
|
||||
src/steamworkshop.h
|
||||
|
||||
INCLUDEPATH += $$PWD/ThirdParty/Steam/
|
||||
INCLUDEPATH += $$PWD/src/
|
||||
@ -47,8 +49,7 @@ contains(QT_ARCH, i386) {
|
||||
}
|
||||
|
||||
DISTFILES += \
|
||||
steam_appid.txt
|
||||
|
||||
steam_appid.txt \
|
||||
|
||||
|
||||
|
||||
|
5
ThirdParty/Steam/steam_api_internal.h
vendored
5
ThirdParty/Steam/steam_api_internal.h
vendored
@ -7,6 +7,11 @@
|
||||
#ifndef STEAM_API_INTERNAL_H
|
||||
#define STEAM_API_INTERNAL_H
|
||||
|
||||
#include "isteamugc.h"
|
||||
#include "steam_api.h"
|
||||
#include "steamtypes.h"
|
||||
|
||||
|
||||
S_API HSteamUser SteamAPI_GetHSteamUser();
|
||||
S_API void * S_CALLTYPE SteamInternal_ContextInit( void *pContextInitData );
|
||||
S_API void * S_CALLTYPE SteamInternal_CreateInterface( const char *ver );
|
||||
|
BIN
assets/fonts/LibreBaskerville-Italic.ttf
Normal file
BIN
assets/fonts/LibreBaskerville-Italic.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Roboto-Light.ttf
Normal file
BIN
assets/fonts/Roboto-Light.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Roboto-Regular.ttf
Normal file
BIN
assets/fonts/Roboto-Regular.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Roboto-Thin.ttf
Normal file
BIN
assets/fonts/Roboto-Thin.ttf
Normal file
Binary file not shown.
11
assets/icons/icon_installed.svg
Normal file
11
assets/icons/icon_installed.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 15 19" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
||||
<g transform="matrix(1,0,0,1,-445.579,-224.075)">
|
||||
<g transform="matrix(1,0,0,1,-29.6028,0.25)">
|
||||
<g id="harddisk" transform="matrix(0.926128,0,0,0.926128,471.477,221.973)">
|
||||
<path d="M6,2L18,2C19.105,2 20,2.895 20,4L20,20C20,21.105 19.105,22 18,22L6,22C4.895,22 4,21.105 4,20L4,4C4,2.895 4.895,2 6,2ZM12,4C8.686,4 6,6.686 6,10C6,13.314 8.686,16 12.102,15.999L11.222,13.767C10.946,13.289 11.11,12.678 11.588,12.401L12.454,11.901C12.932,11.625 13.544,11.789 13.82,12.267L15.745,14.688C17.119,13.589 18,11.897 18,10C18,6.686 15.314,4 12,4ZM12,9C12.552,9 13,9.448 13,10C13,10.552 12.552,11 12,11C11.448,11 11,10.552 11,10C11,9.448 11.448,9 12,9ZM7,18C6.448,18 6,18.448 6,19C6,19.552 6.448,20 7,20C7.552,20 8,19.552 8,19C8,18.448 7.552,18 7,18ZM12.088,13.267L14.576,19.576L17.174,18.076L12.954,12.767L12.088,13.267Z" style="fill:rgb(190,190,190);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
11
assets/icons/icon_search.svg
Normal file
11
assets/icons/icon_search.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
||||
<g transform="matrix(1,0,0,1,-776.26,-293.26)">
|
||||
<g transform="matrix(1,0,0,1,0,0.25)">
|
||||
<g id="ic_search_24px" transform="matrix(1,0,0,1,773.26,290.01)">
|
||||
<path d="M15.5,14L14.71,14L14.43,13.73C15.444,12.554 16.001,11.052 16,9.5C16,5.934 13.066,3 9.5,3C5.934,3 3,5.934 3,9.5C3,13.066 5.934,16 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71L14,15.5L19,20.49L20.49,19L15.5,14L15.5,14ZM9.5,14C7.01,14 5,11.99 5,9.5C5,7.01 7.01,5 9.5,5C11.99,5 14,7.01 14,9.5C14,11.99 11.99,14 9.5,14Z" style="fill:rgb(190,190,190);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.0 KiB |
11
assets/icons/icon_settings.svg
Normal file
11
assets/icons/icon_settings.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 19 19" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
||||
<g transform="matrix(1,0,0,1,-790.455,-226.484)">
|
||||
<g transform="matrix(1,0,0,1,176,2.65872)">
|
||||
<g id="settings" transform="matrix(0.92613,0,0,0.92613,612.35,221.975)">
|
||||
<path d="M11.999,15.498C10.066,15.498 8.499,13.931 8.499,11.998C8.499,10.065 10.066,8.498 11.999,8.498C13.932,8.498 15.499,10.065 15.499,11.998C15.499,13.931 13.932,15.498 11.999,15.498ZM19.428,12.974C19.47,12.653 19.498,12.329 19.498,11.998C19.498,11.667 19.47,11.343 19.428,11.022L21.541,9.368C21.729,9.216 21.784,8.946 21.659,8.73L19.659,5.266C19.535,5.05 19.273,4.962 19.047,5.049L16.558,6.052C16.042,5.656 15.477,5.321 14.868,5.069L14.493,2.419C14.455,2.181 14.248,1.998 13.999,1.998L9.999,1.998C9.749,1.998 9.543,2.181 9.505,2.419L9.13,5.068C8.52,5.321 7.955,5.656 7.439,6.052L4.951,5.049C4.725,4.962 4.463,5.05 4.339,5.266L2.339,8.73C2.214,8.946 2.269,9.216 2.457,9.368L4.569,11.022C4.527,11.342 4.499,11.667 4.499,11.998C4.499,12.329 4.527,12.654 4.569,12.974L2.457,14.627C2.269,14.78 2.214,15.05 2.339,15.266L4.339,18.73C4.463,18.946 4.725,19.034 4.951,18.947L7.44,17.944C7.956,18.34 8.521,18.675 9.13,18.927L9.505,21.577C9.543,21.815 9.749,21.998 9.999,21.998L13.999,21.998C14.248,21.998 14.455,21.815 14.493,21.577L14.868,18.927C15.476,18.674 16.041,18.34 16.557,17.943L19.047,18.947C19.273,19.034 19.535,18.946 19.659,18.73L21.659,15.266C21.784,15.05 21.729,14.78 21.541,14.627L19.428,12.974Z" style="fill:rgb(190,190,190);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
11
assets/icons/icon_share.svg
Normal file
11
assets/icons/icon_share.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 11 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
||||
<g transform="matrix(1,0,0,1,-456.116,-509.855)">
|
||||
<g transform="matrix(0.579084,0,0,0.579084,-1310.67,-161.303)">
|
||||
<g opacity="0.539993">
|
||||
<path d="M3069,1166L3062,1159L3062,1163C3055,1164 3052,1169 3051,1174C3053.5,1170.5 3057,1168.9 3062,1168.9L3062,1173L3069,1166Z" style="fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 794 B |
11
assets/icons/icon_volume.svg
Normal file
11
assets/icons/icon_volume.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 15 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
||||
<g transform="matrix(1,0,0,1,-1389.72,-664.976)">
|
||||
<g transform="matrix(0.817085,0,0,0.817085,272.176,199.51)">
|
||||
<g id="volume" transform="matrix(1,0,0,1,1364.72,566.443)">
|
||||
<path d="M3,9L7,9L12,4L12,20L7,15L3,15L3,9ZM21,12C21,16.283 18.008,19.868 14,20.777L14,18.71C16.891,17.85 19,15.171 19,12C19,8.829 16.891,6.151 14,5.29L14,3.223C18.008,4.133 21,7.717 21,12ZM17,12C17,14.05 15.766,15.812 14,16.584L14,7.416C15.766,8.188 17,9.95 17,12Z" style="fill:rgb(190,190,190);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 988 B |
11
assets/icons/icon_workshop.svg
Normal file
11
assets/icons/icon_workshop.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 16 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
||||
<g transform="matrix(1,0,0,1,-289,-224)">
|
||||
<g transform="matrix(1,0,0,1,0,0.25)">
|
||||
<g id="database" transform="matrix(1,0,0,1,285,220.75)">
|
||||
<path d="M12,3C7.582,3 4,4.791 4,7C4,9.209 7.582,11 12,11C16.418,11 20,9.209 20,7C20,4.791 16.418,3 12,3ZM4,9L4,12C4,14.209 7.582,16 12,16C16.418,16 20,14.209 20,12L20,9C20,11.209 16.418,13 12,13C7.582,13 4,11.209 4,9ZM4,14L4,17C4,19.209 7.582,21 12,21C16.418,21 20,19.209 20,17L20,14C20,16.209 16.418,18 12,18C7.582,18 4,16.209 4,14Z" style="fill:rgb(190,190,190);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.0 KiB |
202
assets/licenses/Apache2.txt
Normal file
202
assets/licenses/Apache2.txt
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
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.
|
93
assets/licenses/OFL.txt
Normal file
93
assets/licenses/OFL.txt
Normal file
@ -0,0 +1,93 @@
|
||||
Copyright (c) 2012, Pablo Impallari (www.impallari.com|impallari@gmail.com),
|
||||
Copyright (c) 2012, Rodrigo Fuenzalida (www.rfuenzalida.com|hello<6C>rfuenzalida.com), with Reserved Font Name Libre Baskerville.
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
26
main.cpp
26
main.cpp
@ -4,22 +4,34 @@
|
||||
#include <QWindow>
|
||||
#include <QQuickView>
|
||||
#include <QLibrary>
|
||||
#include <QScreen>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QUrl>
|
||||
#include "screenplay.h"
|
||||
#include "steam_api.h"
|
||||
|
||||
//#include "steam_api.h"
|
||||
//#include "steamworkshop.h"
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
if(!SteamAPI_Init()){
|
||||
qFatal("Could not init Steam sdk!");
|
||||
}
|
||||
|
||||
QQmlApplicationEngine mainWindow(QUrl(QStringLiteral("qrc:/qml/mainWindow.qml")));
|
||||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
|
||||
// if(!SteamAPI_Init()){
|
||||
// qFatal("Could not init Steam sdk!");
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
QQmlApplicationEngine mainWindow(QUrl(QStringLiteral("qrc:/qml/main.qml")));
|
||||
|
||||
//ScreenPlay sp(GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN));
|
||||
|
||||
|
||||
ScreenPlay sp(GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN));
|
||||
|
||||
return app.exec();
|
||||
|
||||
|
22
qml.qrc
22
qml.qrc
@ -1,6 +1,24 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>qml/mainWindow.qml</file>
|
||||
<file>qml/ScreenPlay.qml</file>
|
||||
<file>qml/Components/Navigation.qml</file>
|
||||
<file>qml/Components/NavigationItem.qml</file>
|
||||
<file>qml/Components/Workshop.qml</file>
|
||||
<file>qml/Components/Installed.qml</file>
|
||||
<file>qml/main.qml</file>
|
||||
<file>qml/Components/ScreenPlay.qml</file>
|
||||
<file>qml/Components/Settings.qml</file>
|
||||
<file>qml/Components/Page.qml</file>
|
||||
<file>assets/licenses/Apache2.txt</file>
|
||||
<file>assets/licenses/OFL.txt</file>
|
||||
<file>assets/fonts/LibreBaskerville-Italic.ttf</file>
|
||||
<file>assets/fonts/Roboto-Light.ttf</file>
|
||||
<file>assets/fonts/Roboto-Regular.ttf</file>
|
||||
<file>assets/fonts/Roboto-Thin.ttf</file>
|
||||
<file>assets/icons/icon_installed.svg</file>
|
||||
<file>assets/icons/icon_search.svg</file>
|
||||
<file>assets/icons/icon_settings.svg</file>
|
||||
<file>assets/icons/icon_share.svg</file>
|
||||
<file>assets/icons/icon_volume.svg</file>
|
||||
<file>assets/icons/icon_workshop.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
6
qml/Components/Installed.qml
Normal file
6
qml/Components/Installed.qml
Normal file
@ -0,0 +1,6 @@
|
||||
import QtQuick 2.0
|
||||
|
||||
Page {
|
||||
id:pageInstalled
|
||||
pageName: "Installed"
|
||||
}
|
89
qml/Components/Navigation.qml
Normal file
89
qml/Components/Navigation.qml
Normal file
@ -0,0 +1,89 @@
|
||||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.2
|
||||
|
||||
Rectangle {
|
||||
id:navigation
|
||||
height:60
|
||||
width: 1366
|
||||
|
||||
signal changeTab(string name)
|
||||
|
||||
function onTabChanged(name){
|
||||
navigation.changeTab(name);
|
||||
if(name ==="Workshop")
|
||||
{
|
||||
navWorkshop.state = "active"
|
||||
navInstalled.state = "inactive"
|
||||
navSettings.state = "inactive"
|
||||
|
||||
} else if(name ==="Installed")
|
||||
{
|
||||
navWorkshop.state = "inactive"
|
||||
navInstalled.state = "active"
|
||||
navSettings.state = "inactive"
|
||||
|
||||
} else if(name ==="Settings")
|
||||
{
|
||||
navWorkshop.state = "inactive"
|
||||
navInstalled.state = "inactive"
|
||||
navSettings.state = "active"
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
anchors.fill: parent
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 20
|
||||
spacing: 20
|
||||
|
||||
NavigationItem {
|
||||
id: navWorkshop
|
||||
state: "active"
|
||||
name: "Workshop"
|
||||
iconSource: "qrc:/assets/icons/icon_workshop.svg"
|
||||
onTabClicked: navigation.onTabChanged(name)
|
||||
}
|
||||
|
||||
NavigationItem {
|
||||
id: navInstalled
|
||||
state: "inactive"
|
||||
name: "Installed"
|
||||
iconSource: "qrc:/assets/icons/icon_installed.svg"
|
||||
onTabClicked: navigation.onTabChanged(name)
|
||||
|
||||
}
|
||||
|
||||
NavigationItem {
|
||||
id: navSettings
|
||||
state: "inactive"
|
||||
name: "Settings"
|
||||
iconSource: "qrc:/assets/icons/icon_settings.svg"
|
||||
onTabClicked: navigation.onTabChanged(name)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id:createScreenPlay
|
||||
width: txtcreateScreenPlay.contentWidth
|
||||
|
||||
anchors{
|
||||
top:parent.top
|
||||
right: parent.right
|
||||
rightMargin: 20
|
||||
bottom: parent.bottom
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
Text {
|
||||
id: txtcreateScreenPlay
|
||||
text: qsTr("+ Create ScreenPlay")
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
154
qml/Components/NavigationItem.qml
Normal file
154
qml/Components/NavigationItem.qml
Normal file
@ -0,0 +1,154 @@
|
||||
import QtQuick 2.0
|
||||
import QtGraphicalEffects 1.0
|
||||
|
||||
Item {
|
||||
id:navigationItem
|
||||
width:150
|
||||
height:60
|
||||
state: "inactive"
|
||||
|
||||
property string name: "value"
|
||||
property string iconSource: "qrc:/assets/icons/icon_installed.svg"
|
||||
|
||||
signal tabClicked(string name)
|
||||
|
||||
function setActive(isActive){
|
||||
if(isActive)
|
||||
{
|
||||
navigationItem.state = "active"
|
||||
}else
|
||||
{
|
||||
navigationItem.state = "inactive"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
MouseArea{
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
|
||||
onClicked: {
|
||||
navigationItem.tabClicked(navigationItem.name)
|
||||
}
|
||||
|
||||
Item {
|
||||
id: item2
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 15
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 15
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
Text {
|
||||
id: txt
|
||||
anchors.left: icon.right
|
||||
anchors.leftMargin: 10
|
||||
text: name
|
||||
font.pointSize: 16
|
||||
color: "#626262"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
|
||||
Image {
|
||||
id: icon
|
||||
source: iconSource
|
||||
width:16
|
||||
height:16
|
||||
sourceSize.height: 16
|
||||
sourceSize.width: 16
|
||||
fillMode: Image.PreserveAspectFit
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 0
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
ColorOverlay {
|
||||
id:iconColorOverlay
|
||||
anchors.fill: icon
|
||||
source: icon
|
||||
color: "#FFAB00"
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: navIndicator
|
||||
y: 83
|
||||
height: 3
|
||||
color: "#FFAB00"
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 0
|
||||
}
|
||||
}
|
||||
states: [
|
||||
State {
|
||||
name: "active"
|
||||
|
||||
PropertyChanges {
|
||||
target: navIndicator
|
||||
anchors.bottomMargin: 0
|
||||
}
|
||||
|
||||
PropertyChanges {
|
||||
target: iconColorOverlay
|
||||
color: "#FFAB00"
|
||||
}
|
||||
|
||||
},
|
||||
State {
|
||||
name: "disabled"
|
||||
|
||||
PropertyChanges {
|
||||
target: navIndicator
|
||||
anchors.bottomMargin: -3
|
||||
}
|
||||
|
||||
PropertyChanges {
|
||||
target: iconColorOverlay
|
||||
color: "#00000000"
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "inactive"
|
||||
|
||||
PropertyChanges {
|
||||
target: navIndicator
|
||||
anchors.bottomMargin: -3
|
||||
}
|
||||
|
||||
PropertyChanges {
|
||||
target: iconColorOverlay
|
||||
color: "#00000000"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
transitions: [
|
||||
Transition {
|
||||
to: "active"
|
||||
|
||||
NumberAnimation {
|
||||
properties: "anchors.bottomMargin"
|
||||
duration: 100
|
||||
}
|
||||
},
|
||||
Transition {
|
||||
to: "inactive"
|
||||
|
||||
NumberAnimation {
|
||||
properties: "anchors.bottomMargin"
|
||||
duration: 100
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
58
qml/Components/Page.qml
Normal file
58
qml/Components/Page.qml
Normal file
@ -0,0 +1,58 @@
|
||||
import QtQuick 2.0
|
||||
import QtGraphicalEffects 1.0
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
Rectangle {
|
||||
id:page
|
||||
width:1366
|
||||
height:768
|
||||
color: "#eeeeee"
|
||||
property string pageName: "pagename"
|
||||
|
||||
|
||||
|
||||
LinearGradient {
|
||||
id: pageShadow
|
||||
height: 5
|
||||
|
||||
anchors{
|
||||
top:parent.top
|
||||
right: parent.right
|
||||
left: parent.left
|
||||
}
|
||||
start: Qt.point(0, 0)
|
||||
end: Qt.point(0,5)
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: "#22000000" }
|
||||
GradientStop { position: 1.0; color: "#00000000" }
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: columnLayout
|
||||
anchors.fill: parent
|
||||
|
||||
Rectangle {
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
color: "steelblue"
|
||||
Layout.preferredHeight: 100
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Text {
|
||||
id: txtLoading
|
||||
text: pageName
|
||||
anchors.centerIn: parent
|
||||
font.family: font_LibreBaskerville_Italic.name
|
||||
font.pointSize: 32
|
||||
font.italic: true
|
||||
color: "#818181"
|
||||
FontLoader{
|
||||
id: font_LibreBaskerville_Italic
|
||||
source: "qrc:/assets/fonts/LibreBaskerville-Italic.ttf"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -5,13 +5,10 @@ import QtQuick.Controls 2.1
|
||||
|
||||
import QtAV 1.07
|
||||
|
||||
|
||||
|
||||
Rectangle {
|
||||
id: rectangle
|
||||
color: "#f29f6a"
|
||||
visible: true
|
||||
width: 2560
|
||||
height: 1080
|
||||
|
||||
|
||||
|
||||
}
|
5
qml/Components/Settings.qml
Normal file
5
qml/Components/Settings.qml
Normal file
@ -0,0 +1,5 @@
|
||||
import QtQuick 2.0
|
||||
|
||||
Page {
|
||||
pageName: "Settings"
|
||||
}
|
6
qml/Components/Workshop.qml
Normal file
6
qml/Components/Workshop.qml
Normal file
@ -0,0 +1,6 @@
|
||||
import QtQuick 2.0
|
||||
|
||||
Page {
|
||||
pageName: "Workshop"
|
||||
|
||||
}
|
36
qml/main.qml
Normal file
36
qml/main.qml
Normal file
@ -0,0 +1,36 @@
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Window 2.2
|
||||
import QtCanvas3D 1.1
|
||||
import QtQuick.Controls 2.1
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
import "Components"
|
||||
|
||||
Window {
|
||||
id: rectangle
|
||||
color: "#eeeeee"
|
||||
visible: true
|
||||
width: 1366
|
||||
height: 768
|
||||
|
||||
Navigation {
|
||||
id: nav
|
||||
anchors {
|
||||
top: parent.top
|
||||
right: parent.right
|
||||
left: parent.left
|
||||
}
|
||||
onChangeTab: pageLoader.setSource("qrc:/qml/Components/"+name+".qml")
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: pageLoader
|
||||
anchors {
|
||||
top: nav.bottom
|
||||
right: parent.right
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
}
|
||||
source: "qrc:/qml/Components/Workshop.qml"
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Window 2.2
|
||||
import QtCanvas3D 1.1
|
||||
import QtQuick.Controls 2.1
|
||||
|
||||
|
||||
|
||||
Window {
|
||||
id: rectangle
|
||||
color: "#eeeeee"
|
||||
visible: true
|
||||
width: 1366
|
||||
height: 768
|
||||
|
||||
Button {
|
||||
id: button
|
||||
text: qsTr("Close")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: Qt.quit();
|
||||
}
|
||||
|
||||
}
|
@ -50,7 +50,7 @@ ScreenPlay::ScreenPlay(int width, int height)
|
||||
WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_NOACTIVATE | WS_EX_TOPMOST | WS_EX_TRANSPARENT | WS_EX_TOOLWINDOW);
|
||||
|
||||
|
||||
this->quickRenderer = new QQuickView(QUrl(QStringLiteral("qrc:/qml/ScreenPlay.qml")), this);
|
||||
this->quickRenderer = new QQuickView(QUrl(QStringLiteral("qrc:/qml/Components/ScreenPlay.qml")), this);
|
||||
|
||||
Qt::WindowFlags flags = this->flags();
|
||||
this->setFlags(flags | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint);
|
||||
|
@ -20,7 +20,7 @@ public slots:
|
||||
private:
|
||||
HWND hwnd = nullptr;
|
||||
HWND worker_hwnd = nullptr;
|
||||
QQuickView* quickRenderer;
|
||||
QQuickView* quickRenderer = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
6
src/steamworkshop.cpp
Normal file
6
src/steamworkshop.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "steamworkshop.h"
|
||||
|
||||
SteamWorkshop::SteamWorkshop()
|
||||
{
|
||||
|
||||
}
|
19
src/steamworkshop.h
Normal file
19
src/steamworkshop.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef STEAMWORKSHOP_H
|
||||
#define STEAMWORKSHOP_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
//#include "isteamugc.h"
|
||||
//#include "steam_api.h" public ISteamUGC,
|
||||
|
||||
class SteamWorkshop : public QObject
|
||||
{
|
||||
public:
|
||||
SteamWorkshop();
|
||||
|
||||
// ISteamUGC interface
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
#endif // STEAMWORKSHOP_H
|
Loading…
Reference in New Issue
Block a user