Files
pilotclient/src/blackgui/views/flightplandialog.h
2020-01-07 19:57:23 +00:00

53 lines
1.4 KiB
C++

/* 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