Klaus Basan
a05fa7494f
Some minor tweaks and fixes
...
* added names to timers
* Some DBus code formatting
* missing GUI element names
2015-04-19 03:00:34 +02:00
Michał Garapich
985a1caecf
refs #396 BlackMisc: nw* goes to network/, hw* goes to hardware/
2015-04-07 19:22:37 +02:00
Klaus Basan
32f60722c8
refs #396 , move subproject BlackSim into BlackMisc::Simulation
...
* removed unused samples / tests
* fixed found Doxygen issues
* removed blacksimfreefunctions, now in BlackMisc::Simulation::registerMetadata()
* samples_vetcor_geo to samples_geo
2015-04-07 19:22:16 +02:00
Roland Winklmeier
78d3350bf3
refs #396 move Blackmisc Aviation classes into subfolder
2015-04-07 18:20:20 +02:00
Michał Garapich
63e48ae332
Remove ISimulator::getSimulatorInfo()
...
To provide maximum flexibility, the simulator info is specified by each
plugin in the JSON metadata file.
* Renamed SCimulatorInfo to CSimulatorPluginInfo
* Removed pre-defined simulator infos (UnspecifiedSim, FSX, etc)
* CContextSimulator keeps track of which plugin is loaded and its info
* QSignalMapper keeps track of which listener emitted the simulatorStared() signal
* CSimulatorPluginInfo contains name, simulator name and description
* TODO: GUI part
* TODO: CTestFsCommon
2015-04-01 01:20:25 +02:00
Michał Garapich
45f48f7594
Listen for X-Plane to start
2015-03-31 23:52:30 +02:00
Klaus Basan
79b3cf3cd3
Misc. imorvements as discussed in RW/KB worksho
...
* preparation for a context menu to send text messages from ATC/aircraft view
* preparation for context menu for fast pos. updates
* reverse ICAO lookup at login screen
* display fast updates / parts in GUI
* moved max- aircraft into settings
* made serverselection own component
2015-03-20 17:11:10 +01:00
Klaus Basan
269c65b578
As of workshop RW/KB, improved / fixed text messages
...
Also refs #351
* messages can be formatted with style sheet
* fixed: removed command from message
* added originator to command line
* msg parsing now in core
* using ITimestampBased for text messages and status messages
* allow to resize rows to content (view base)
* model / views for text messages
* removed old qt stylesheets
2015-03-20 17:10:58 +01:00
Klaus Basan
c47871b813
refs #382 , reviewed audio context handling
...
* only init QDbusServer for P2P
* changed init order of contexts in runtime
* use "fake" signal to call setComVoiceRooms (remote in GUI)
* added slot to change voice room callsign
* used "org.swift" instead of "net.vatim" (just style)
* used const QString for serviceName
* added correct copyright header (just style)
2015-03-20 16:33:51 +01:00
Klaus Basan
fe4613a868
refs #369 , adjusted contexts to use own aircraft provider
...
* removed unused functions / signals
* removed no longer used members / update timers
* Pass provider to contructors
* no direct access to monitor in other contexts
2015-03-20 16:30:40 +01:00
Klaus Basan
a37a176c02
refs #369 , renamed simulator connect functions similar to network context
2015-03-20 16:30:29 +01:00
Klaus Basan
8a43efca92
refs #350 Extra static function registerMetadata, so it can be called explicitly
2014-12-28 22:20:24 +01:00
Klaus Basan
bfced2ad42
refs #358 , more detailed time measurement in runtime class
2014-12-28 22:20:17 +01:00
Klaus Basan
137c310451
refs #349 , adjusted runtime / context to reflect changed
...
* renamed member functions
* removed unused functions and members
2014-12-13 13:17:39 +01:00
Klaus Basan
788078f72a
refs #288 , parseCommand in runtime, which distributes it to the contexts (easier, also for core command line)
2014-11-30 00:56:09 +01:00
Mathew Sutcliffe
a294e8db0f
refs #336 Using the new CLogMessage syntax to log messages.
2014-10-16 17:05:50 +01:00
Klaus Basan
9e23b0a2c0
refs #310 , used empty network context with runtime/context base classes
...
* refactored to member initialization
* adjusted asserts
* adjusted isXXObject methods
* changed create method for ContextNetwork to support empty context
* empty status message used as return value in empty context
2014-10-08 19:11:33 +02:00
Mathew Sutcliffe
aef7135e28
refs #316 Removed old statusMessage signals and sendStatusMessage slots.
2014-10-04 22:16:56 +01:00
Mathew Sutcliffe
b1c74d81e5
refs #316 Removed old logging mechanism in contexts.
2014-10-04 22:16:53 +01:00
Mathew Sutcliffe
5d123f798a
refs #316 Changed blackcore to use CLogMessage to emit messages.
...
Also changed functions which always returned CStatusMessageList containing a single CStatusMessage,
to return CStatusMessage instead for simplicity.
2014-10-04 22:16:43 +01:00
Klaus Basan
2127238ed4
Doxygen, renaming, formatting
...
* Formatting, renaming to current schema
* Minor tweaks
2014-09-09 20:07:27 +02:00
Mathew Sutcliffe
09f0d008cb
refs #283 Simulator context takes responsibility for connecting CAirspaceMonitor signals to ISimulator slots
2014-08-27 00:02:35 +01:00
Mathew Sutcliffe
f311582c28
refs #315 Style
2014-08-19 21:54:23 +01:00
Mathew Sutcliffe
96ca38a3db
refs #315 Removed old/deprecated CRuntime::logSlot, changed contexts to use new CRuntime::logSlot.
...
Network context was already using new CRuntime::logSlot as of commit:81c68058.
2014-08-19 21:37:20 +01:00
Roland Winklmeier
1adfd16ec9
refs #313 Application context acts as com layer between settings and InputManager
2014-08-19 15:29:55 +02:00
Klaus Basan
161aec96a7
Prefix ps_ for some private slots
...
https://dev.vatsim-germany.org/boards/22/topics/1914?r=1920#message-1920
2014-07-11 01:20:45 +02:00
Klaus Basan
d9a1c0cc8c
refs #287 Thread safety, fix "memory access violation"
...
* some improved comments and information
* QMetaObject::invokeMethod in tool.cpp as thread safe invocation
* common base class for threaded readers
* removed event class, using QMetaObject::invoke instead for forcing calls in main event loop
* stop methods for readers, as used for graceful shutdown (preparing for thread safe destruction of objects)
* graceful shutdown for network context
* calls in tool now via inkoke for thread safety (only thread safe methods called directly)
2014-07-11 01:15:18 +02:00
Klaus Basan
8d08417f67
refs #237 , load first plugin if settings do not match, provide a warning if no plugin is loaded
2014-06-28 20:01:53 +02:00
Klaus Basan
88c656ee61
refs #273 , runtime context
...
* added send status message for convenience
* order in graceful shutdown
2014-06-28 18:02:17 +02:00
Klaus Basan
4694c23f87
refs #273 , added support for loading plugin from settings
2014-06-28 18:02:10 +02:00
Mathew Sutcliffe
fede3fc4c7
refs #270 don't call CRuntime::gracefulShutdown from a different thread;
...
connect it to the QCoreApplication::aboutToQuit signal instead
2014-06-25 23:18:10 +01:00
Roland Winklmeier
2e485a324c
Move settings loading into factory method, since read should not be called
...
by DBus proxy.
2014-06-15 20:24:40 +02:00
Roland Winklmeier
14e9e01b90
Fix reading settings with factory created object.
...
Before we had factory methods, the allocated CContextSettings object
was reused. The temporary one can be deleted.
2014-06-15 19:02:46 +02:00
Mathew Sutcliffe
9b27b93de0
refs #246 refactored construction of all remaining contexts into factory methods
2014-06-14 16:52:52 +01:00
Mathew Sutcliffe
a6cd44be8d
refs #246 added ISimulator::aircraftModelChanged signal which can be sent via the contexts to CAirspaceMonitor, which needs the model when sending FSIPI(R) custom packets
2014-06-14 16:52:50 +01:00
Mathew Sutcliffe
cdca7343e4
refs #246 refactored construction of the network context into a factory method
2014-06-14 16:52:46 +01:00
Mathew Sutcliffe
81c6805822
refs #246 refactored isSlotLogForNetworkEnabled conditionals into CRuntime
2014-06-14 16:52:44 +01:00
Mathew Sutcliffe
26c270c9a6
refs #246 passing c++11 brace-initialized QStringList to CRuntime::logSlot
2014-06-14 16:52:44 +01:00
Klaus Basan
dac556c6e9
refs #262 , fix update of aircraft position
...
Described here (3): https://dev.vatsim-germany.org/boards/22/topics/1792?r=1801#message-1801
* Also renamed: setOwnAircraftAvionics -> setOwnCockpit to be consistent
* Removed outdated methods
2014-06-09 14:44:19 +02:00
Klaus Basan
76c2f0a5c4
refs #257 , hooking up simulator and application/network context to display
...
* text messages
* status messages
2014-06-09 14:44:08 +02:00
Klaus Basan
1bb4c3120b
Formatting, comments, minor tweaks, typos, Doxygen
2014-06-09 14:43:31 +02:00
Klaus Basan
1166bcd053
refs #246 , own context for aircraft
2014-06-09 14:43:05 +02:00
Klaus Basan
e0b06e1555
refs #250 , helper methods
...
* in aircraft class to compare COM
* in context / runtime component to check vitality of core
2014-06-09 14:42:37 +02:00
Klaus Basan
6c81a95c65
refs #242 , added signals for own aircraft context
...
* fixed tool in core
* fixed tuntime for signal / slot logging
2014-06-09 14:42:33 +02:00
Klaus Basan
8236617fbc
refs #242 , context object from runtime
2014-06-09 14:42:25 +02:00
Klaus Basan
444aec4c8a
refs #242 , added aircraft context to runtime
2014-06-09 14:42:21 +02:00
Mathew Sutcliffe
9e3c8ff174
fixed missing braces
2014-06-04 21:23:05 +01:00
Roland Winklmeier
68e9cc2c3e
Move IVoice enum registration into static method
...
refs #183
2014-05-04 00:50:08 +02:00
Klaus Basan
b6c45b3f20
Fixes when dealing with refs #223 / https://dev.vatsim-germany.org/boards/22/topics/1691?r=1701#message-1701
...
* Wrong address split ip:port
* Q_ASSERTs
2014-04-28 20:36:00 +02:00
Klaus Basan
9ccf005451
refs #212 , includes for contexts
2014-04-28 20:35:42 +02:00