Commit Graph
647 Commits
Author SHA1 Message Date
Vasily fddae4278b Add more recommended switches
Commented out switches still give errors.
2019-02-21 18:48:53 +01:00
Vasily ac614c36e6 Replace -pedantic with -Wpedantic 2019-02-21 18:48:53 +01:00
Vasily d87338d195 Add -pedantic to Linux compilers
clang-msvc does not support -pedantic.
2019-02-21 18:48:53 +01:00
Vasily 82ac83d649 Add -Wextra to supported compilers 2019-02-21 18:48:53 +01:00
Vasily cc4f0d4bc8 Remove unneeded -Xclang 2019-02-21 18:48:53 +01:00
Vasily 34204d2441 Add -Wnon-virtual-dtor and resolve issues
The IPolicyConfig file is a third party file and since it describes a
third party API we can't make changes to it. Adding it via the system
includes disables warnings on most compilers.
2019-02-21 18:48:53 +01:00
Vasily 60bd0a54c1 Fix shadowed variable in easylogging++.cc
The _var was chosen because it conflicts with the naming convention in
the rest of the file.

Fixing the error was easier than getting GCC to ignore errors in one
file, or using a pragma to mute the warning.
Introducing a GCC pragma would require disabling C4068 on MSVC (unknown
pragma).
2019-02-21 18:48:53 +01:00
Vasily 5c70aba098 Revert easylogging++ include and attempt changing easylogging++.cc 2019-02-21 18:48:53 +01:00
Vasily 940ad48923 Attempt -i switch in order to ignore warnings in file 2019-02-21 18:48:53 +01:00
Vasily 9019270df8 Refine compiler system includes for different platforms
MSVC seems to be the only platform that doesn't have a non-experimental
way to include files that don't give warnings.
2019-02-21 18:48:53 +01:00
Vasily 7234e2ba6c Convert Linux only cast from old style 2019-02-21 18:48:53 +01:00
Vasily 1b6cc47238 Add .. to linux include paths 2019-02-21 18:48:53 +01:00
Vasily 4ed6e80645 Include third party headers system headers for clang/g++ 2019-02-21 18:48:53 +01:00
Vitaly acb666a142 Remove old style casts and enable warnings for them 2019-02-21 18:48:53 +01:00
Vasily 81af2b9c72 Add -Wshadow and solve warnings 2019-02-21 18:48:53 +01:00
Vasily 89e026e714 Rename declaration parameter to fit definition 2019-02-21 18:48:53 +01:00
Vasily fdc096bb61 Add recommended compiler switches
From
https://github.com/lefticus/cppbestpractices/blob/master/02-Use_the_Tools_Available.md#MSVC
The '/w14619' switch creates errors in qglobal.h and qvector.h.
2019-02-21 18:48:53 +01:00
Vasily 68a72ded1f Add whole program optimization to MSVC 2019-02-21 18:48:53 +01:00
Vasily a7706c1b0b Remove generated banner from .pro file
The banner does not add anything to the file and is only wasted space.
2019-02-21 18:48:53 +01:00
Vasily ab25124d7b Move source files and resources file into separate .pri files 2019-02-21 18:48:53 +01:00
Vitaly 4b48d051c8 Refactor Qt project file into compiler specific subfiles
Encapsulating compiler specific options in a separate file
makes it easier to reason about what is going to happen on
a specific qmake call.

clang-msvc and msvc are separate because they don't support
exactly the same compiler switches.
2019-02-21 18:48:53 +01:00
Vasily adcbb474c5 Add Qt project files to .gitignore 2019-02-21 18:48:53 +01:00
username223 4784347826 Merge pull request #84 from OpenVR-Advanced-Settings/ivrinput-ptt
Move the Push To Talk system to the new IVRInputs
2019-02-20 20:04:09 +01:00
Vasily f49ade20a4 Fix bug in MirrorDeviceSelector.qml
It was mistakenly referring to the playback device list, instead of the
mirror device list.
2019-02-16 17:59:59 +01:00
Vasily 60418279b5 Remove unused Ptt component 2019-02-16 17:59:17 +01:00
Vasily 6142e1a032 Remove commented out code in PttButtons.qml 2019-02-16 15:18:01 +01:00
Vasily ae47f06447 Remove deprecated features from root page 2019-02-16 15:11:32 +01:00
Vasily bb90e7a48b Remove deprecated AudioPage features from readme 2019-02-16 15:11:32 +01:00
Vitaly c62c85a08f Remove deprecated elements from AudioPage
There are still many elements remaining from the old input system.
These have not been removed due to time constraints. They should
be removed as part of a general clean up process.

The PTT profile buttons have been replaced with a text telling users
to use the SteamVR bindings interface. This is for people who don't
read changelogs.
2019-02-16 15:11:32 +01:00
Vitaly 3c59a2b2ae Move push to talk bindings to overlaycontroller
The old system used the old OpenVR input system which is
incompatible with the new IVRInput.

This change broke the AccessbilityTabController, but
that is to be removed because the functionality can be
found elsewhere.
2019-02-16 15:11:32 +01:00
Vitaly 28cf033bec Add PushToTalk action 2019-02-16 15:11:32 +01:00
Robin Appelman f8aa2512eb Merge pull request #83 from OpenVR-Advanced-Settings/update-to-qt5.12
Update to qt5.12
2019-02-16 15:07:44 +01:00
Vasily 56b5f516ac Update windows build docs with recommended Qt version 2019-02-16 14:48:27 +01:00
Vasily 7ef8d35459 Update Qt version on AppVeyor
The 5.11.2 version has been removed from AppVeyor leading to all builds
failing due to lack of Qt install. The 5.12 folder is symlinked to the
newest Qt version, preventing the need for changes during small updates
and preventing failures when versions have been removed.

This solves
https://github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings/issues/53
2019-02-16 14:45:16 +01:00
Kung-vr de069ee42e Merge branch 'master' into alpha-kung 2019-02-10 23:56:39 +09:00
Kung-vr 55e0915fc4 Add motion page, comfort mode, rename "room" to "space" 2019-02-10 23:55:48 +09:00
username223 ca67502fc5 Remove the Accessibility Tab completely from the app (#79)
See
https://github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings/issues/27

The Accessibility tab was made redundant with the implementation of the
new playspace/room/universe tab in
https://github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings/issues/60

The tab inherited from the PttController class, which required changes
in order to work with the new IVRInput system. See
https://github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings/issues/51
for more about the IVRInput system.

Removing the page now at an early state is going to make it easier to
refactor the PttController since only one class is inheriting it,
instead of two. Since the Accessibility tab is going to be removed
anyway, it makes sense to remove it now.
2019-02-03 12:33:43 -06:00
Kung-vr be19793b48 Merge branch 'master' into alpha-kung 2019-02-04 00:04:14 +09:00
Kung-vr 05fca0e17d Merge pull request #78 from OpenVR-Advanced-Settings/refactor-common-components
Refactor My* QML components into folder, move images to .qrc file, add .gitattributes file
2019-02-04 00:03:46 +09:00
Kung-vr 6a90f66b2e Split off hand-turn hand-drag and hmdrotation
Hand-turn hand-drag and hmdrotationstats counting are split off into separate functions from the event loop.
2019-02-03 22:42:50 +09:00
Vasily 2f07a987bf Add .gitattributes file
.svg files were not treated as binary which means they were spamming up
the diff log.

Bash files were not being pulled with LF line endings, which means they
couldn't be run by Windows Subsystem for Linux.

Bash files were renamed .sh to easily allow them to be recognized by
both .gitattributes and humans.

Taken from https://github.com/alexkaratarakis/gitattributes.
2019-02-02 16:37:50 +01:00
Vasily c662334a17 Remove unneeded imports from .pro file 2019-02-02 16:09:07 +01:00
Vasily a4ecb0b114 Convert images to use .qrc file, move images
All images have been moved to the /img/ folder in order to fully
separate qml from images. The .qrc file allows qml to use the images by
appending the qrc:/ prefix before the abstract path to the image.

Note that the .qrc file is also check at compile time, which further
enhances the confidence the lack of errors.

Some of the images are not used in the QML, but instead directly passed
through to the OpenVR API. These have not been added to the .qrc file.
2019-02-02 16:09:06 +01:00
Vasily e0768a38b3 Move checkmark and back arrow into .qrc file
The QRC file is a platform independant way of referring to resource
files. It allows the program to access resources in an abstract way
instead of the direct file path.

This is the first step towards moving all files to the new system.
2019-02-02 16:09:02 +01:00
Vasily 76507bd602 Move common elements into /common/ and change imports
Elements work like they've always done, this just moves the commonly
used components away from the global namespace.

The qmldir file still does something, although at this point it is
unknown exactly how it's used and whether or not it could be changed to
simplify imports across the block.
2019-02-02 16:09:01 +01:00
username223 4fc038630c Merge pull request #77 from OpenVR-Advanced-Settings/ptt-controller-rework
Refactor AudioPage into separate components
2019-02-02 16:04:15 +01:00
Kung-vr 5832eea951 Create quaternion.h to centralize quaternion math 2019-02-02 22:36:19 +09:00
Vasily 1a1697eafe Update AudioPage image
Some things have been knocked out of alignment because they were
manually adjusted using integer literal values.
2019-02-01 20:40:14 +01:00
Vasily b01425d745 Fix qml files not being added in Qt Creator
The missing backslashes continued the line, without them the additional
lines were not being included in the += call.
2019-02-01 20:24:02 +01:00
Vasily 083e85cf59 Refactor profile buttons and popups
The popups have been moved inside the scope of the ProfileButtons. Since
the popups open based on the location of their parents, they are
currently opening underneath where they used to open.

Since the profiles and ptt settings do not work anyway, this is seen as
acceptable.
2019-02-01 20:15:51 +01:00