Commit Graph

55 Commits

Author SHA1 Message Date
Mat Sutcliffe
49611b7f44 Issue #77 Explicit template instantiations needed by Clang on Windows 2020-12-19 18:50:37 +00:00
Mat Sutcliffe
63f5d28622 Issue #77 Break cyclic dependency between CVariant and all other value classes 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
1991b4847a Issue #77 Break cyclic dependency between CPropertyIndex and all other value classes 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
363758e8ea Issue #77 Move GlobalIndex enum from CPropertyIndex to CPropertyIndexRef 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
0971c8ce68 Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant 2020-12-19 18:50:35 +00:00
Mat Sutcliffe
b80114213d Issue #77 Move mixin classes to separate files
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
e8a0a0b6ba Issue #15 Register CSequence as a sequential container metatype 2020-07-31 00:57:46 +01:00
Klaus Basan
637bae5bb6 #32 use remove/add to replace hotkey
possible workaround for "edited hotkey" not working
2020-06-12 19:07:57 +01:00
Klaus Basan
8d51c42cfc Ref T784, joystick (PTT) buttons
* style
* more detailed logs
2020-06-12 18:42:56 +01:00
Klaus Basan
ef4640e66f [Hotkey] Style 2020-01-07 19:57:21 +00:00
Mat Sutcliffe
57ff07592a [AFV] CInputManager stores icon indexes instead of QPixmap instances
The GUI converts icon indexes to QPixmap indexes when needed.
This fixes the context unittest that was broken by audio context changes.
2019-10-11 19:00:52 +01:00
Klaus Basan
d072224a8b Moved XPDR definitions into "actionhotkeydefs.h" 2019-09-16 22:38:07 +01:00
Klaus Basan
50412aa0d1 Preparation for 2 COM keys and increase/decrease volume hotkeys
Ref T672, Ref T642
2019-09-16 20:29:46 +01:00
Klaus Basan
bad8ad2a8e Ref T650, added more hotkeys such as OEM keys
* based on http://www.kbdlayout.info/
* OEM key solves accent / dead key issue for most cases
* Mac/Linux parts still missing
2019-05-13 11:21:04 +02:00
Klaus Basan
74e7fa46b6 Ref T645, added space/dead grave as hotkeys 2019-05-13 11:21:03 +02:00
Klaus Basan
13a2465424 Ref T609, encapsulate PTT action/key 2019-05-13 11:20:39 +02:00
Klaus Basan
c69a833598 Style 2019-05-13 11:20:39 +02:00
Klaus Basan
9287713cb8 Ref T606, added back/tab/ESC as hotkeys 2019-05-13 11:20:37 +02:00
Mat Sutcliffe
d29576b67a Ref T552 Register value classes with qRegisterMetaTypeStreamOperators. 2019-04-12 13:57:17 +01:00
Mat Sutcliffe
1cb21f0a4b Ref T545 Removed redundant constructors that are now inherited. 2019-04-12 13:30:53 +01:00
Mat Sutcliffe
c05a32dbd4 Ref T545 Using constructor inheritance in derived container classes. 2019-04-12 13:30:51 +01:00
Roland Rossgotterer
563a69e3f5 Remember and ignore hotkey combination before capturing
When capturing a new hotkey combination, we want to get only the delta of the keys and buttons being pressed during the capturing. 

ref T585
2019-04-11 22:12:20 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
68907258a5 Add method to get joystick button name including a device prefix 2019-02-22 20:36:23 +00:00
Klaus Basan
21acef505c Function for getKeyStrings() and replace without key (just adding) 2019-02-22 20:36:20 +00:00
Klaus Basan
d8a730302a Another attempt to fix copyed hotkeys by updating the identifier
* check on name OR id
* remote keys not updated, but lenient check on local machine
* Remark: Sometimes copied hotkeys d not work
2019-02-22 20:36:15 +00:00
Klaus Basan
2d30c1cce8 Style 2019-02-22 20:35:59 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Klaus Basan
180214e4f0 Ref T404, fixed the UTF issues for hotkeys
* QStringLiteral expects UTF16 for MSVC compilers
* we use descriptive names now
* UTF flag for MSVC compilers
* added the SLACK discussion as comment under https://dev.swift-project.org/T404
2018-11-16 02:49:53 +01:00
Klaus Basan
c862136126 Ref T404, style 2018-11-16 02:49:53 +01:00
Klaus Basan
554ab4aa01 Ref T404, added new hotkeys 2018-11-16 02:49:53 +01:00
Roland Winklmeier
0f140cb155 Add more special key codes to keyboard keys
ref T404
2018-11-16 02:49:51 +01:00
Roland Winklmeier
f90ad72d9e CJoystickButton fixes 2018-10-07 16:17:28 +02:00
Roland Winklmeier
c13121edbd Fix PropertyIndex for CKeyboardKey and CJoystickButton 2018-10-05 17:39:58 +02:00
Roland Winklmeier
8ee428e7cf Style 2018-10-05 17:39:58 +02:00
Roland Winklmeier
7e10ea2f64 Pass QString argument by const reference 2018-10-05 17:39:58 +02:00
Roland Winklmeier
fa74f28bca Add deviceName attribute to CJoystickButton
ref T254
2018-10-03 03:03:40 +02:00
Klaus Basan
6bcded9264 Style 2018-07-09 22:30:20 +02:00
Klaus Basan
4bc9b92c69 Ref T218, find hotkeys by same machine 2018-01-14 18:45:53 +01:00
Mathew Sutcliffe
3ea9e33e6b refs #937 Resolved clazy warnings: pass-by-value/reference. 2017-04-19 19:31:42 +01:00
Klaus Basan
09b9ca5d50 refs #912, keyboard key list / combination utility functions and minor fixes
* Ctor for single key
* static const CKeyboardKeyList
* some formatting
2017-04-18 00:04:42 +01:00
Klaus Basan
9921cc3497 refs #912, utility function for hotkey list 2017-04-18 00:04:40 +01:00
Mathew Sutcliffe
5791de6860 refs #800 Fixed some implicit conversion warnings. 2016-12-13 19:00:26 +01:00
Roland Winklmeier
3d7a39ed00 Fix BlackMisc header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
0f5d2a29a8 refs #655, Change signature (order) of setProperty/compareProperty 2016-05-13 16:44:17 +02:00
Mathew Sutcliffe
4e9d7d3efe refs #628 Metaclass style compatible with the AStyle beautifier. 2016-04-06 15:15:12 +01:00
Mathew Sutcliffe
4bd4baa535 refs #628 Use the metaclass mixins in all value classes. 2016-04-03 18:17:43 +01:00
Mathew Sutcliffe
a1861c69f0 refs #624 Some more occurrences of constexpr. 2016-03-22 16:02:53 +00:00
Klaus Basan
c3722f9198 refs #485, refs #584 removed include blackmiscfreefunctions.h 2016-03-18 01:07:49 +00:00