mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 20:55:42 +08:00
Ref T764, display flight plan of other aircraft
This commit is contained in:
committed by
Mat Sutcliffe
parent
ceebcc3e1b
commit
10a6b06a59
52
src/blackgui/views/flightplandialog.h
Normal file
52
src/blackgui/views/flightplandialog.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/* Copyright (C) 2019
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
||||
* or distributed except according to the terms contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_VIEWS_FLIGHTPLANDIALOG_H
|
||||
#define BLACKGUI_VIEWS_FLIGHTPLANDIALOG_H
|
||||
|
||||
#include "blackmisc/aviation/callsign.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CFlightPlanDialog; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
//! Flight plan as dialog, also meant for other callsigns
|
||||
class CFlightPlanDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Ctor
|
||||
explicit CFlightPlanDialog(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CFlightPlanDialog() override;
|
||||
|
||||
//! Show a particular callsign flight plan
|
||||
void showFlightPlan(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
private:
|
||||
//! Title
|
||||
void setDialogTitle(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
//! Load FP
|
||||
void loadFp();
|
||||
|
||||
QScopedPointer<Ui::CFlightPlanDialog> ui;
|
||||
};
|
||||
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user