14 using namespace swift::misc::network;
15 using namespace swift::misc::simulation;
17 namespace swift::simplugin::common
23 :
ISimulator(info, ownAircraftProvider, renderedAircraftProvider, clientProvider, parent)
30 void CSimulatorPluginCommon::deleteInterpolationDisplay()
32 if (m_interpolationDisplayDialog)
37 m_interpolationDisplayDialog =
nullptr;
43 void CSimulatorPluginCommon::showInterpolationDisplay()
45 if (!m_interpolationDisplayDialog)
47 QWidget *parentWidget =
sGui ? CGuiApplication::mainApplicationWidget() : nullptr;
49 m_interpolationDisplayDialog = dialog;
50 m_interpolationDisplayDialog->setModal(
false);
53 if (m_interpolationDisplayDialog) { m_interpolationDisplayDialog->show(); }
61 this->showInterpolationDisplay();
69 this->deleteInterpolationDisplay();
75 this->deleteInterpolationDisplay();
76 return ISimulator::disconnectFrom();
81 if (CSimpleCommandParser::registered(
"swift::simplugin::common::CSimulatorPluginCommon")) {
return; }
82 CSimpleCommandParser::registerCommand({
".drv intdisplay",
"interpolation display" });
Interface to a simulator.
CInterpolationLogDisplay as dialog.
Utility methods for simple line parsing used with the command line.
bool matchesPart(int index, const QString &toMatch, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const
Matches given part.
Direct in memory access to client (network client) data.
Describing a simulator plugin.
Direct threadsafe in memory access to own aircraft.
Direct thread safe in memory access to remote aircraft.
static void registerHelp()
Register help.
bool disconnectFrom()
Disconnect from simulator.
~CSimulatorPluginCommon()
Destructor.
void unload()
Driver will be unloaded.
bool parseDetails(const swift::misc::CSimpleCommandParser &parser)
SWIFT_GUI_EXPORT swift::gui::CGuiApplication * sGui
Single instance of GUI application object.
Backend services of the swift project, like dealing with the network or the simulators.
High level reusable GUI components.
Free functions in swift::misc.