Commit Graph

3512 Commits

Author SHA1 Message Date
Roland Winklmeier
200c2612e5 Fixed typo introduced by former shimlib (corrected in shimlib 0.4.15) 2014-03-11 22:28:04 +01:00
Roland Winklmeier
5cac09f625 Fixed issues arised after merge
- wrong namespace in newly created headers
- wrong includes
- Fixed members in CKeyboardKey
- Fixed CKeyboardKey unit test
2014-03-11 22:24:25 +01:00
Roland Winklmeier
0349d8f212 Added a build flag for FSX specific code
FSX SimConnect code is build and linked only if enabled
by the build configuration.

refs #145
2014-03-11 22:01:32 +01:00
Roland Winklmeier
e978b6dee1 Central build configuration
* config.pri: Build configuration version
* library.pri project library dependencies
* build.pri: compiler/qmake configuration

refs #145
2014-03-11 22:01:31 +01:00
Roland Winklmeier
811bbdfe4e Reload hotkey settings when they have changed
This also includes changing the registration

refs #83
2014-03-11 21:56:55 +01:00
Roland Winklmeier
abb20a5154 Change CVoiceVatlib to use new IKeyboard interface
refs #83
2014-03-11 21:56:54 +01:00
Roland Winklmeier
f09c77ebd0 Sample Hotkey
Demonstrates the usage of IKeyboard

refs #83
2014-03-11 21:51:41 +01:00
Roland Winklmeier
a7465fa6a3 Windows implementation of IKeyboard interface
Located in a win subfolder. It uses keyboard hooks to get
key up and down events. Keymapping is done in a separate
windows specific class.

refs #83
2014-03-11 21:50:25 +01:00
Roland Winklmeier
f8ce8a84cd IKeyboard interface
This is the main interface for platform specific implementations.
It is a singleton design, since we need one object per process.

refs #83
2014-03-11 21:50:24 +01:00
Roland Winklmeier
f3076372d1 Add CKeyboardKey unit tests to BlackMisc testcases
refs #83
2014-03-11 21:50:24 +01:00
Roland Winklmeier
492a950877 Add methods to generally add/remove modifiers in CKeyboardKey
It adds a modifier if modifer1 or modifer2 are set to None.

refs #83
2014-03-11 21:50:23 +01:00
Roland Winklmeier
9a5f2b2003 Remove native scan code from CKeyboardKey
Remove isPressed status from CKeyboardKey
Switched key value to Qt::Key

There is no way on OSX to get the native scan code of a key.
Therefore it is removed from this class, because we might
create dependent code which will not run on OSX.
CKeyboardKey is a abstraction of platform keys. It was representing
also the status when CKeyboardKey was sent in signals. So this
can be removed. Pressed status is sent as argument to the registered
method.

refs #83
2014-03-11 21:50:22 +01:00
Roland Winklmeier
b0d55687bd Refactored inheritance hierarchy of ContextSettings
refs #85
2014-03-11 21:44:58 +01:00
Roland Winklmeier
ac8ade5e05 Refactored inheritance hierarchy of ContextNetwork
refs #85
2014-03-11 21:44:58 +01:00
Roland Winklmeier
33aee8cb12 Refactored inheritance hierarchy of ContextAudio (former ContextVoice)
refs #85
2014-03-11 21:36:57 +01:00
Roland Winklmeier
1e8a2a5b01 Refactored inheritance hierarchy of ContextApplication
refs #85
2014-03-11 21:26:19 +01:00
Roland Winklmeier
eccfae1fd3 Add new page in sample_blackgui to display user aircraft data
refs #143
2014-03-11 21:26:18 +01:00
Roland Winklmeier
23056c61c8 FSX implementation divided into three parts:
- SimConnect handling done in CSimulatorFSX
- Exception handling done by CSimConnectException
- Data definitions done by CSimConnectDataDefinition

refs #142
2014-03-11 21:26:18 +01:00
Roland Winklmeier
ab21a9ba28 Add ContextSimulator classes to CoreRuntime
refs #135
2014-03-11 21:26:17 +01:00
Roland Winklmeier
c7d35d29a4 Add DBus implementation for IContextSimulator
This class implements the DBus version off simulator context.
When one of its methods is called, it forwards it to
the configured DBus session/server.
refs #135
2014-03-11 21:26:17 +01:00
Roland Winklmeier
1d6572d222 Add local implementation for IContextSimulator
This class implements the local BlackCore object
for the simulator context. It initializes its member
variables with default values.
refs #135
2014-03-11 21:26:16 +01:00
Roland Winklmeier
6fac031720 Add abstract interface IContextSimulator
IContextSimulator is implememted similar to the other contexts.
It defines a small set of methods as a starter. More will
be added later when the concept is proofen to work.
refs #135
2014-03-11 21:26:15 +01:00
Roland Winklmeier
844bed6c5b First draft of ISimulator
Currently it supports
* Reading aircraft situation
* reading/writing COM1/2 settings
* reading/writing transponder
* reading aircraft title
2014-03-11 21:26:15 +01:00
Klaus Basan
0d306861f0 refs #140, removed MACRO DBUS_ENUM_MARSHALLING, changed to template
discussed in https://dev.vatsim-germany.org/issues/140#change-864
2014-03-11 21:08:59 +01:00
Klaus Basan
ffc03e46f5 refs #140 , refs #127 renamed aircraft.cfg and mapping class and tupelized it 2014-03-11 01:30:40 +01:00
Klaus Basan
2911c1d14a refs #127, CAircraftIcao: rename members 2014-03-11 01:28:27 +01:00
Klaus Basan
4db12d888e refs #74, refs#140 renamed CSimulator to CSimulatorInfo and tupelized class
CSimulatorInfo discussed https://dev.vatsim-germany.org/issues/74#note-6
2014-03-11 01:19:57 +01:00
Klaus Basan
94d80f6d20 refs #74 , removed default initializers (https://dev.vatsim-germany.org/issues/74#note-5) . Fixed == 2014-03-10 20:03:41 +01:00
Klaus Basan
53c3c814f8 refs #74 , minor tweak in CValueObject 2014-03-10 20:03:40 +01:00
Klaus Basan
b70ebe4331 refs #74 , sample testing reading the FSX aircraft.cfg entries (for mapping) 2014-03-10 20:03:39 +01:00
Klaus Basan
d2429a4776 refs #74 , free functions (at this time registration of metadata) 2014-03-10 20:03:38 +01:00
Klaus Basan
a4ae1fc626 refs #74 , class for mapping. Still open whether this will be FSX/9/P3D specific, or global. 2014-03-10 20:03:37 +01:00
Klaus Basan
e519942c4a refs #74 , class for FSX aircraft.cfg entries 2014-03-10 20:03:36 +01:00
Klaus Basan
dc54621a90 refs #74 , dummy for Doxygen 2014-03-10 20:03:35 +01:00
Klaus Basan
f3724e7972 refs #74 , simulator class (describing used simulator). Remark: Maybe this will go to BlackMisc someday 2014-03-10 20:03:34 +01:00
Klaus Basan
b78bbc3138 refs #74 , added project BlackSim for simulator related classes 2014-03-10 20:03:33 +01:00
Klaus Basan
8c703d3143 Ignore Qt Creator autosave files 2014-03-10 20:02:10 +01:00
Klaus Basan
0437bf3381 refs #140 , adjust sample for DBus marshalling / unmarshalling in order to test "tupel-ized" classes
* Added further DBus tests
* Crossover from refs #85 , removed dependency from generator adaptor and XML files, as this will not work anymore in the future
* Removed from .pro DBUS_ADAPTORS , DBUS_INTERFACES, QDBUSXML2CPP_INTERFACE_HEADER_FLAGS , QDBUSXML2CPP_ADAPTOR_HEADER_FLAGS
* Added interface, as this will be no longer generated
* Removed samples no longer required, the sample no represents a framework to test DBus marshalling / unmarshalling
2014-03-10 15:07:43 +01:00
Klaus Basan
5ef31069d2 refs #140 , Doxygen comments to avoid warnings 2014-03-10 14:57:29 +01:00
Klaus Basan
34320ad3e1 refs #140, changed CValueObject classes to tupel concept
Remarks: Changes looking like an added file result from the shift of namespace voice -> audio
2014-03-10 14:48:56 +01:00
Klaus Basan
8f6a22e833 refs #140 , macro to enable enums in CValueObject classes for DBus marshalling, and hence to be used woth tupels. 2014-03-10 14:44:29 +01:00
Klaus Basan
dde9710144 Refs #140 , refs #85 Rename namespace voice to audio.
In #85 the voice context will be renamed to audio context, so the CValueObject classes will be renamed to namespace Audio too.
As #140 changes many CValueClasses, this crossover change is done in the same unit of work.
2014-03-10 14:43:06 +01:00
Mathew Sutcliffe
e93ef236af refs #140 doxygen, comment, and include tweaks 2014-03-07 23:15:58 +01:00
Mathew Sutcliffe
7f92b5dbc9 refs #140 to demonstrate the new tuple framework, adapted five typical value classes to use it 2014-03-07 23:15:57 +01:00
Mathew Sutcliffe
fcd3dc09ef refs #140 framework for using std::tuple to reduce repetitive coding in value classes 2014-03-07 23:01:25 +01:00
Klaus Basan
a5183c2fc4 Resolved issue in GUI init overlooked during merge 2014-02-26 14:35:57 +01:00
Klaus Basan
7f68191e0f Fixed resource loading in Unit test and improved check in sample GUI's main 2014-02-26 14:34:17 +01:00
Klaus Basan
1b846f44c8 Fixed LIBS order, as I have run into gcc "undefined reference to" issued 2014-02-26 14:33:15 +01:00
Klaus Basan
5a16052e30 Fixed include in sound generator 2014-02-26 14:27:30 +01:00
Klaus Basan
0fb3836713 refs #146 , minor GUI tweaks as result of testing the features 2014-02-26 04:03:32 +01:00