mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T265, Ref T430, Ref T473 renamed to CDbModelMappingModifyDialog (as it is a dialog)
This commit is contained in:
committed by
Mat Sutcliffe
parent
4aec50ccfc
commit
ddb26a0ea5
56
src/blackgui/components/dbmodelmappingmodifydialog.h
Normal file
56
src/blackgui/components/dbmodelmappingmodifydialog.h
Normal file
@@ -0,0 +1,56 @@
|
||||
/* Copyright (C) 2016
|
||||
* 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 and at http://www.swift-project.org/license.html. 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_COMPONENTS_DBMODELMAPPINGMODIFYDIALOG_H
|
||||
#define BLACKGUI_COMPONENTS_DBMODELMAPPINGMODIFYDIALOG_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/components/dbmappingcomponentaware.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace BlackMisc { namespace Simulation { class CAircraftModel; } }
|
||||
namespace Ui { class CDbModelMappingModifyDialog; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
* Modify model fields as dialog
|
||||
*/
|
||||
class BLACKGUI_EXPORT CDbModelMappingModifyDialog :
|
||||
public QDialog,
|
||||
public CDbMappingComponentAware
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CDbModelMappingModifyDialog(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CDbModelMappingModifyDialog();
|
||||
|
||||
//! Get the values
|
||||
BlackMisc::CPropertyIndexVariantMap getValues() const;
|
||||
|
||||
//! Set default values
|
||||
void setValue(const BlackMisc::Simulation::CAircraftModel &model);
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CDbModelMappingModifyDialog> ui;
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user