mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Ref T125, own component for XSwiftBus settings. This component can be used in the installation and plugin UI.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
12db652ccf
commit
c6f3a7033d
48
src/blackgui/components/settingsxswiftbuscomponent.h
Normal file
48
src/blackgui/components/settingsxswiftbuscomponent.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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_SETTINGSXSWIFTBUSCOMPONENT_H
|
||||
#define BLACKGUI_COMPONENTS_SETTINGSXSWIFTBUSCOMPONENT_H
|
||||
|
||||
#include "blackmisc/simulation/settings/xswiftbussettings.h"
|
||||
#include "blackmisc/settingscache.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CSettingsXSwiftBusComponent; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
* XSwiftBus setup
|
||||
*/
|
||||
class BLACKGUI_EXPORT CSettingsXSwiftBusComponent : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSettingsXSwiftBusComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Dtor
|
||||
virtual ~CSettingsXSwiftBusComponent();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CSettingsXSwiftBusComponent> ui;
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TXSwiftBusServer> m_xSwiftBusServerSetting { this };
|
||||
|
||||
void saveServer(const QString &dBusAddress);
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user