mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T256, added foreign window utility functions
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#define BLACKGUI_FOREIGNWINDOWS_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
|
||||
#include "blackmisc/simulation/simulatorinfo.h"
|
||||
#include <QScopedPointer>
|
||||
|
||||
class QWidget;
|
||||
@@ -26,23 +26,32 @@ namespace BlackGui
|
||||
//! Foreign windows
|
||||
class BLACKGUI_EXPORT CForeignWindows
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! FS9 window
|
||||
static QWindow *getFS9Window();
|
||||
|
||||
//! FSX window
|
||||
static QWindow *getFSXWindow();
|
||||
|
||||
//! P3D window
|
||||
static QWindow *getP3DWindow();
|
||||
|
||||
//! X-Plane window
|
||||
static QWindow *getXPlaneWindow();
|
||||
|
||||
//! First simulator window found
|
||||
static QWindow *getFirstFoundSimulatorWindow();
|
||||
|
||||
//! Simulator window
|
||||
static QWindow *getSimulatorWindow(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
|
||||
//! Set simulator as transient parent for child widget
|
||||
static void setSimulatorAsParent(QWindow *simulatorWindow, QWidget *child);
|
||||
static bool setSimulatorAsParent(QWindow *simulatorWindow, QWidget *child);
|
||||
|
||||
//! Unset the parent
|
||||
static bool unsetSimulatorAsParent(QWidget *child);
|
||||
|
||||
private:
|
||||
|
||||
//! Constructor, use static methods only
|
||||
CForeignWindows() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user