Commit Graph

107 Commits

Author SHA1 Message Date
Klaus Basan
9f103a35cc Changed Window pointer ui tp QScopedPointer #95
Removed some default constructors from Member initializer list
Made member m_coreRuntime QScopedPointer
2014-01-15 19:33:28 +01:00
Klaus Basan
4c711dad82 Include Order MainWindow 2014-01-15 17:37:31 +01:00
Klaus Basan
f1482558fb New signal / slot syntax
#88

Not all calls can be replaced by new sytnax
(e.g. cannot handle default value arguments)
2014-01-15 17:27:17 +01:00
Mathew Sutcliffe
917e1829d1 reviewed backlog INetwork and CContextNetwork changes from kbatclist
* INetwork setOwnAircraft slots
* ATIS received shimlib callback triggers separate VoiceRoom and LogoffTime signals
* INetwork statusMessage signal emitted in response to shimlib errors
* INetwork::ConnectionStatus added a DisconnectedError value and toString conversion
* INetwork::isConnected method
* Argument in CNetworkVatlib constructor to enable stealth or observer mode
* Update CLI sample, tests, and CContextNetwork accordingly
2014-01-14 23:30:21 +00:00
Klaus Basan
ab2796862e Infowindow, a popup window window showing important messages.
Example: user receives private chat message, while text message
window is hidden.
2014-01-13 01:32:55 +01:00
Klaus Basan
6adfd91dfc New main for GUI, using the new intro window. 2014-01-13 01:25:01 +01:00
Klaus Basan
ccfdee64e0 Initial startup screen, here user can decide
to use DBus or local context, frameless window.
In the future likely more options, e.g. for bootstrapping
(setting the DBus server IP)
2014-01-13 01:20:06 +01:00
Klaus Basan
9ff197ff2c Style sheets for the 3 widgets of the GUI:
Main window, initial start window, and
info window (which is something like a popup showing important messages)
2014-01-13 01:15:20 +01:00
Klaus Basan
b9ad793dd5 New GUI based on Qt style sheets. This is the main window. 2014-01-13 01:09:56 +01:00
Mathew Sutcliffe
60ad43d291 INetwork: removed the five connectionStatus signals and added one signal with an enum argument to replace them.
Requested by Klaus, to ease the implementation of signal consumers.
2014-01-11 17:59:45 +00:00
Mathew Sutcliffe
66e0235193 Fixed sample_blackgui executable was not being copied to the same directory as the other binaries 2014-01-11 17:00:39 +00:00
Mathew Sutcliffe
784d93139b CTextMessage: fromCallsign and toCallsign become sender and recipient (to and from looked like conversion methods)
refs #81
2014-01-10 00:20:22 +00:00
Klaus Basan
d15d0db431 post-voice changes in blackgui from the kbatclist branch
refs #81
2014-01-09 01:16:01 +00:00
Mathew Sutcliffe
b475d7eff1 INetwork builds up the ATIS as it is received, line-by-line, keeping this implementation detail more encapsulated
refs #81
2014-01-09 01:16:01 +00:00
Mathew Sutcliffe
0bad7bb2e8 Contexts' getRuntime method uses static_cast instead of reinterpret_cast.
This required a few changes in include order and forward declarations to fix the real reason why reinterpret_cast was mistakenly used.

refs #81
2014-01-09 01:15:58 +00:00
Klaus Basan
1c1fdabd2e all voice changes from kbatclist branch
refs #81
2014-01-09 01:15:58 +00:00
Klaus Basan
51cbd2a394 all app projects need QT+=network used by the core for downloading ATC bookings
refs #81
2014-01-09 01:15:57 +00:00
Klaus Basan
bb61654a29 style and consistency:
* rename CStatusMessages to CStatusMessageList
* rename NetworkVatlib to CNetworkVatlib
* replace all occurrences of Realname with RealName (correct camel case)
* CSequence method corresponding to CList::append is push_back
* don't compile the qdbuscpp2xml metadata plugin by default
* CAircraftIcao string members always trimmed and capitalized
* added CComSystem::roundTo25KHz
* using epsilon comparison in a couple of places

refs #81
2014-01-09 01:15:56 +00:00
Klaus Basan
0c01da4c8e Minor changes such as parameter warnings, added metatype registration for voice
refs #81
2014-01-08 01:01:26 +00:00
Roland Winklmeier
db4a3c5de4 Refactoring and clean up of voice implementation
refs #36
- Cleanup of library and sample code
- Completed now all signals in voice sample
- Fixed minor bugs with the user list
- TODO: Remove the VATSIM id from the user string

refs #81
2014-01-08 01:01:23 +00:00
Roland Winklmeier
0bae898db8 Added commands to voice sample. Test successfull refs #36 - Added commands to list input and output devices - Fixed some compiler errors on win - Voice confirmed working on windows and linux
Signed-off-by: Roland Winklmeier <roland.m.winklmeier@gmail.com>

refs #81
2014-01-08 01:01:20 +00:00
Roland Winklmeier
45b9f60444 Finalized voice vatlib implementation.
refs #36
- Implemented the rest of the methods
- Added more commands to the voice sample, to login to voice server
- Login successfull. However, no voice yet.

refs #81
2014-01-08 01:01:17 +00:00
Roland Winklmeier
f91525b65b Expanded voice sample to an interactive app
refs #36
- Based on the existing network sample, expanded the voice sample to an interactive app
- Implmenented commands: mic test, squelch test

refs #81
2014-01-08 01:01:10 +00:00
Roland Winklmeier
b511f2ffaa Completed enumeration of audio devices
refs #36
- Cvatlib_Voice_Simple object is created and setup
- enumerates automatically a list of in and output devices.
- both device lists are accessable immediately
- added a sample demonstrating the interface so far

refs #81
2014-01-08 01:01:02 +00:00
Klaus Basan
ab17dabd5b samples and tests for all kbatclist branch changes
refs #81
2014-01-08 01:00:28 +00:00
Mathew Sutcliffe
c77951743e INetwork: refactor request/reply pattern and sending position updates to be more encapsulated
refs #81
2014-01-08 01:00:17 +00:00
Klaus Basan
535ea65a9a start using our value classes as arguments in INetwork signals and slots
refs #81
2014-01-08 00:59:45 +00:00
Klaus Basan
c6da7b0d35 removing unneeded code
refs #81
2014-01-08 00:58:08 +00:00
Klaus Basan
978f3c88e5 style changes and removals of typeid
refs #81
2014-01-08 00:57:43 +00:00
Mathew Sutcliffe
e607121cc4 Updating IContext to our current style and making it less reliant on macros.
Updating code that uses IContext to a more conformant pattern of usage.
2013-10-05 18:12:16 +01:00
Mathew Sutcliffe
5483f71c9b test_blackcore.pro includes externals.pri
removed TODO comments
fixed mistake regarding backslash line continuations
2013-09-21 14:50:01 +01:00
Roland Winklmeier
6092cc7193 refs #60
Added externals.pri looking for the external headers/libraries in 3 steps:
1. Manually set absolut path. Currently commented. Uncomment for local
use.
2. Enviromental variable "VATSIM_EXTERNAL_DIR"
3. default path client/externals.
2013-09-21 15:21:32 +02:00
Mathew Sutcliffe
e12d7fbd7a Had a bit of spare time so tried out the policy design pattern I've been learning about, applying it to PQ converters.
Some interesting results:
* Minor simplification of PQ converters and unit ctors; may not seem like much, but I think it enables possible future simplifications of a similar kind.
* CMeasurementPrefix is gone, no longer needed. Now prefixes are applied at the template stage.
* Apart from that, PQs public API is unchanged.
* Discovered that ft/s^2 conversion factor was wrong: fixed.
2013-09-15 22:01:11 +01:00
Mathew Sutcliffe
a011bb18e6 fixed compile errors caused by inconsistencies between merged branches 2013-08-29 00:02:47 +01:00
Mathew Sutcliffe
20c33bf77c Merge branch 'fsd' 2013-08-28 23:29:10 +01:00
Mathew Sutcliffe
31955f0913 fixed missing space character in fsd sample 2013-08-28 23:26:57 +01:00
Mathew Sutcliffe
dcc4f4aa8d Merge branch 'kbdbusbaseclasses' 2013-08-28 22:49:01 +01:00
Mathew Sutcliffe
74452599bf disambiguate metric tonne (1,000kg) and US ton (2,000lb) 2013-08-22 19:59:41 +01:00
Mathew Sutcliffe
9b239f12aa fixes for MinGW, including adding CONFIG += c++11 in all qmake project files 2013-08-19 18:46:37 +01:00
Mathew Sutcliffe
cec9de5cc5 use enums instead of bools to distinguish true/magnetic headings and tracks and MSL/AGL altitudes 2013-08-19 18:11:54 +01:00
Mathew Sutcliffe
5f267e8245 minor regularization of vectors and matrices 2013-08-19 17:44:33 +01:00
Mathew Sutcliffe
da8ba9aac3 First major wave of PQ refactoring, including but not limited to:
* Default unit is more clearly stated in one place, not restated in many different places, and is not always the SI unit
* Converter strategy pattern in CMeasurementUnit, covering linear, affine, and different kinds of sexagesimal units
* General reorganization of CMeasurementUnit construction and CPhysicalQuantity methods, not removing any behvaiour
* Move duplicated method unitFromSymbol from derived classes into base class CMeasurementUnit
* For DBus, CPhysicalQuantity marshals both in its own unit and in the default unit
2013-08-19 03:05:08 +01:00
Mathew Sutcliffe
a6756f2043 suppress/fix a few more GCC and MSVC warnings and errors 2013-08-14 18:05:12 +01:00
Mathew Sutcliffe
e8b52b33d0 removed CAviationVerticalPositions 2013-08-13 22:23:55 +01:00
Mathew Sutcliffe
e8b412dd25 dbusclient sample: partial fix for compiling with MSVC 2013-08-08 20:46:41 +01:00
Roland Winklmeier
efacac77eb refs #42
- Added DBus handler interface
- Added more complex flow to both samples
- Added custom class to be transfered
2013-08-07 01:32:13 +02:00
Klaus Basan
e6e6dea4cd More DBus tests 2013-08-06 13:56:15 +02:00
Mathew Sutcliffe
56e05b55a9 Normalized handling of leading/trailing whitespace in sample app (refs #22) 2013-08-04 17:49:46 +01:00
gmt2001
d1e35c0b27 refs #22
Fix leading space and trailing LF in real name
Use proper const char* to const char* copy in NetworkVatlib::initiateConnection()
2013-08-04 01:54:03 -04:00
Mathew Sutcliffe
930be03fa6 sample console-based client to demonstrate INetwork interface (refs #22) 2013-07-31 22:02:41 +01:00