-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControllerEngine Refactoring #3463
Merged
daschuer
merged 79 commits into
mixxxdj:main
from
Holzhaus:controllerengine_refactoring
Dec 20, 2020
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
fed2e1b
split ControllerEngine functionality into ControllerEngineJSProxy
Be-ing 9c04291
reorganize controller scripting code
Be-ing 24408ab
controllers: clean up some #includes
Be-ing 979a243
split ControllerScriptHandler into base and subclasses
Be-ing b3d6ff8
remove hacks for JS modules in legacy controller system
Be-ing 72e849f
ControllerScriptEngineBase: remove outdated comment
Be-ing 0968a9d
Controller: replace legacy NULL with nullptr
Be-ing 77ca43f
ControllerScriptModuleEngine: keep build working with Qt < 5.12
Be-ing 8153b3f
cleanup handling of incoming HID/USB Bulk/MIDI sysex data
Be-ing 9363b49
MidiController: rename confusingly overloaded "receive" method
Be-ing e25bf12
ControllerScriptEngine: generate wrappers for input callbacks
Be-ing e8e2487
HIDController: avoid deep copying input data
Be-ing 26b51ec
Controller: pass received input QByteArray by reference
Be-ing e99cef3
BulkController: avoid deep copying input data
Be-ing f6f7050
ControllerScriptModuleEngine: pass raw ArrayBuffer to input callback
Be-ing b4d2d21
Hss1394Controller: fix build
Be-ing 197c0d0
Merge remote-tracking branch 'upstream/master' into controllerengine_…
Be-ing 62fc40c
Merge remote-tracking branch 'upstream/master' into controllerengine_…
Be-ing 2046add
change explicit comparisons to nullptr to implicit
Be-ing a691d32
HSS1394Controller: replace C cast with reinterpret_cast
Be-ing 487f8f9
ControllerScriptEngineLegacy: make iterator const
Be-ing 2b6eb9f
rename ControllerScriptInterface to ControllerScriptInterfaceLegacy
Be-ing fa16b57
ControllerScriptInterfaceLegacy: clang-format fixes
Be-ing 427ba5e
assert for missing ControlObjects with --controllerDebug CLI option
Be-ing caf3d68
remove legacy ControllerEngine file brought back from merge
Be-ing 6c1a6b6
ControllerScriptEngineLegacy: remove QString initialization to ""
Be-ing df4f377
ControllerScriptEngineBase: fix typo in comment
Be-ing 8ec7ed8
fix ControllerEngine tests
Be-ing 0d39501
rename ControllerEngineTest to ControllerScriptEngineLegacyTest
Be-ing 13f86a5
ControllerScriptEngineLegacyTest clang-format fixes
Be-ing e028e3e
Merge remote-tracking branch 'upstream/master' into controllerengine_…
Be-ing 5c1ace9
Merge remote-tracking branch 'upstream/main' into controllerengine_re…
Be-ing bdf497b
ControllerScriptEngineBase: make m_scriptWatcher private
Be-ing 3383aef
ControllerScriptEngineBase: don't call virtual destructor
Be-ing 19b9aaf
ControllerScriptEngineBase: fix removing files from watcher
Be-ing 4505c86
ControllerScriptEngineBase: pass QFileInfo& to watchScriptFile
Be-ing 95b83ea
make ControllerScriptEngine classes' constructors explicit
Be-ing e4bdfdd
mark child classes' destructors override
Be-ing 269de0d
ControllerScriptEngineBase: log error when unable to watch file
Be-ing d72618f
move script watching from ControllerScriptEngineBase to child classes
Be-ing d677f4b
ControllerScriptEngineLegacy: stop watching old script files
Be-ing 5b02715
remove class names from debug messages
Be-ing 424c94b
Controller: remove unnecessary local variable
Be-ing d50b710
HSS1394 & Bulk controllers: don't use QByteArray::fromRawData
Be-ing fa8771f
MidiController: formatting
Be-ing c96a2c2
ControllerScriptEngineBase: remove superfluous QString() wrapper
Be-ing cb41ffd
ControllerScriptEngineBase: make isTesting const
Be-ing a80ca2c
ControllerScriptEngineBase: remove obsolete friend declaration
Be-ing f7b0ddc
ControllerScriptEngineLegacy: use std::as_const for looped container
Be-ing 0112554
ControllerScriptEngineLegacy: reserve known list size
Be-ing 65de8c5
ControllerScriptEngineLegacy: remove undefined declaration
Be-ing 94d9423
ControllerScriptEngineLegacy: remove obsolete friend class declarations
Be-ing 388b4e3
ControllerScriptEngineLegacy: make jsEngine() hack private and const
Be-ing 57c0219
ControllerScriptEngineLegacy: remove obsolete forward declarations
Be-ing e504678
ControllerScriptEngineLegacy: remove unneeded #include
Be-ing e35e90f
ControllerScriptEngineLegacy: use QStringBuilder
Be-ing 5b81d28
fix legacy controller preset validation tests
Be-ing 98d9e37
fix PortMidiController tests
Be-ing 4e744e0
Merge remote-tracking branch 'upstream/main' into controllerengine_re…
Be-ing 6a78b67
Merge remote-tracking branch 'upstream/main' into controllerengine_re…
Be-ing 0e6119c
ControllerScriptEngineBase: add missing override
Be-ing 145cf8e
rename receiveShortMessage/Sysex -> receivedShortMessage/Sysex
Be-ing 7f2187d
ControllerScriptModuleEngine: remove input handling
Be-ing 30692a1
ControllerScriptEngineBase: remove confusing (obsolete?) comment
Be-ing 86bebb6
ControllerScriptEngineBase/Legacy: use shared_ptr for QJSEngine
Be-ing 4227e22
ControllerScriptEngineLegacy: rename local variable
Be-ing b8e2430
Merge remote-tracking branch 'upstream/main' into controllerengine_re…
Be-ing 20fbcb0
Merge remote-tracking branch 'upstream/main' into controllerengine_re…
Be-ing b5cf59d
controllers: fix clazy warnings
Be-ing 1911580
Merge remote-tracking branch 'upstream/main' into controllerengine_re…
Be-ing b5fafcc
Merge remote-tracking branch 'upstream/main' into controllerengine_re…
Be-ing 57b7406
remove accidentally commited mixxx.log.1 file
Be-ing 3a40266
Merge branch 'main' of github.com:mixxxdj/mixxx into controllerengine…
Holzhaus 221dab8
ControllerScriptEngineBase: Add comment regarding input handler errors
Holzhaus 66f447c
ControllerScriptEngineBase: Fix inverted logic in scriptErrorDialog
Holzhaus 7e770cf
ControllerScriptEngineLegacy: Abort initialization if base init failed
Holzhaus de29f92
ControllerScriptEngineBase: Move JS array buffer wrapping to legacy
Holzhaus 6c8cb90
ControllerScriptEngineLegacy: Remove temp variable for initialize() r…
Holzhaus 4c95980
ControllerDebug: Clean up method names and add a way to disable testing
Holzhaus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None means assert all assumptions. What is the reasoning that we don't want that during tests? Is this correct:
Please add a comment why.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may also consider to rename ControlFlag::None to
ControlFlag::AssertAll; Or AssertExeptions:None or such.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was done because some tests are expected to fail. I just pushed the new commits that disable controller testing for these tests.