mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 19:35:33 +08:00
refs #335, adjusted member init in main window
This commit is contained in:
committed by
Roland Winklmeier
parent
cd7e2f6f72
commit
678cc2e0cc
@@ -39,20 +39,7 @@ using namespace BlackMisc::Hardware;
|
|||||||
MainWindow::MainWindow(GuiModes::WindowMode windowMode, QWidget *parent) :
|
MainWindow::MainWindow(GuiModes::WindowMode windowMode, QWidget *parent) :
|
||||||
QMainWindow(parent, windowMode == GuiModes::WindowFrameless ? (Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) : (Qt::Tool | Qt::WindowStaysOnTopHint)),
|
QMainWindow(parent, windowMode == GuiModes::WindowFrameless ? (Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) : (Qt::Tool | Qt::WindowStaysOnTopHint)),
|
||||||
ui(new Ui::MainWindow),
|
ui(new Ui::MainWindow),
|
||||||
m_compInfoWindow(nullptr),
|
m_windowMode(windowMode)
|
||||||
m_init(false), m_windowMode(windowMode), m_keyboard(nullptr),
|
|
||||||
// contexts and runtime
|
|
||||||
m_coreAvailable(false), m_contextNetworkAvailable(false), m_contextAudioAvailable(false),
|
|
||||||
|
|
||||||
// timers
|
|
||||||
m_timerContextWatchdog(nullptr),
|
|
||||||
m_timerStatusBar(nullptr), m_timerSimulator(nullptr),
|
|
||||||
// context menus
|
|
||||||
m_contextMenuStatusMessageList(nullptr),
|
|
||||||
// cockpit
|
|
||||||
m_inputFocusedWidget(nullptr),
|
|
||||||
// status bar
|
|
||||||
m_statusBarIcon(nullptr), m_statusBarLabel(nullptr)
|
|
||||||
{
|
{
|
||||||
if (windowMode == GuiModes::WindowFrameless)
|
if (windowMode == GuiModes::WindowFrameless)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -84,35 +84,35 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer<Ui::MainWindow> ui;
|
QScopedPointer<Ui::MainWindow> ui;
|
||||||
BlackGui::Components::CInfoWindowComponent *m_compInfoWindow;
|
BlackGui::Components::CInfoWindowComponent *m_compInfoWindow = nullptr; //!< the info window (popup
|
||||||
bool m_init;
|
bool m_init = false;
|
||||||
GuiModes::WindowMode m_windowMode;
|
GuiModes::WindowMode m_windowMode;
|
||||||
BlackInput::IKeyboard *m_keyboard; //!< hotkeys
|
BlackInput::IKeyboard *m_keyboard = nullptr; //!< hotkeys
|
||||||
|
|
||||||
BlackMisc::CLogSubscriber m_logSubscriber { this, &MainWindow::ps_displayStatusMessageInGui };
|
BlackMisc::CLogSubscriber m_logSubscriber { this, &MainWindow::ps_displayStatusMessageInGui };
|
||||||
|
|
||||||
// contexts
|
// contexts
|
||||||
bool m_coreAvailable;
|
bool m_coreAvailable = false;
|
||||||
bool m_contextNetworkAvailable;
|
bool m_contextNetworkAvailable = false;
|
||||||
bool m_contextAudioAvailable;
|
bool m_contextAudioAvailable = false;
|
||||||
BlackMisc::Aviation::CAircraft m_ownAircraft; /*!< own aircraft's state */
|
BlackMisc::Aviation::CAircraft m_ownAircraft; //!< own aircraft's state
|
||||||
QTimer *m_timerContextWatchdog; /*!< core available? */
|
QTimer *m_timerContextWatchdog = nullptr; //!< core available?
|
||||||
QTimer *m_timerStatusBar; /*!< cleaning up status bar */
|
QTimer *m_timerStatusBar = nullptr; //!< cleaning up status bar
|
||||||
QTimer *m_timerSimulator; /*!< update simulator data */
|
QTimer *m_timerSimulator = nullptr; //!< update simulator data
|
||||||
|
|
||||||
// frameless window
|
// frameless window
|
||||||
QPoint m_dragPosition; /*!< position, if moving is handled with frameless window */
|
QPoint m_dragPosition; /*!< position, if moving is handled with frameless window */
|
||||||
|
|
||||||
// context menus
|
// context menus
|
||||||
QMenu *m_contextMenuStatusMessageList; /*!< context menu for status message list */
|
QMenu *m_contextMenuStatusMessageList = nullptr; /*!< context menu for status message list */
|
||||||
|
|
||||||
// cockpit
|
// cockpit
|
||||||
QString m_transponderResetValue; /*!< Temp. storage of XPdr mode to reset, req. until timer allows singleShoot with Lambdas */
|
QString m_transponderResetValue; //!< Temp. storage of XPdr mode to reset, req. until timer allows singleShoot with Lambdas
|
||||||
QWidget *m_inputFocusedWidget; /*!< currently used widget for input, mainly used with cockpit */
|
QWidget *m_inputFocusedWidget = nullptr; //!< currently used widget for input, mainly used with cockpit
|
||||||
|
|
||||||
// status bar
|
// status bar
|
||||||
QLabel *m_statusBarIcon; /*!< status bar icon */
|
QLabel *m_statusBarIcon = nullptr; //!< status bar icon
|
||||||
QLabel *m_statusBarLabel; /*!< status bar label */
|
QLabel *m_statusBarLabel = nullptr; //!< status bar label
|
||||||
|
|
||||||
//! GUI status update
|
//! GUI status update
|
||||||
void updateGuiStatusInformation();
|
void updateGuiStatusInformation();
|
||||||
|
|||||||
Reference in New Issue
Block a user