mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
refs #933, UI for MCX setup
This commit is contained in:
committed by
Mathew Sutcliffe
parent
8eb9a8b217
commit
45f0cea083
50
src/blackgui/components/modelconverterxsetupcomponent.h
Normal file
50
src/blackgui/components/modelconverterxsetupcomponent.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/* Copyright (C) 2017
|
||||
* 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_MODELCONVERTERXSETUPCOMPONENT_H
|
||||
#define BLACKGUI_COMPONENTS_MODELCONVERTERXSETUPCOMPONENT_H
|
||||
|
||||
#include "blackmisc/simulation/modelconverterx.h"
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui { class CModelConverterXSetupComponent; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/**
|
||||
* Setup to start ModelConverterX
|
||||
*/
|
||||
class CModelConverterXSetupComponent : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Ctor
|
||||
explicit CModelConverterXSetupComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Dtor
|
||||
virtual ~CModelConverterXSetupComponent();
|
||||
|
||||
private:
|
||||
//! File dialog
|
||||
void selectBinary();
|
||||
|
||||
//! Save the settings
|
||||
void saveSettings();
|
||||
|
||||
QScopedPointer<Ui::CModelConverterXSetupComponent> ui;
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::TModelConverterXBinary> m_setting { this };
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user