Files
pilotclient/src/blackgui/components/settingsatcstationsinlinecomponent.h

59 lines
1.8 KiB
C++

/* 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. 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_SETTINGSATCSTATIONSINLINECOMPONENT_H
#define BLACKGUI_COMPONENTS_SETTINGSATCSTATIONSINLINECOMPONENT_H
#include "blackgui/settings/atcstationssettings.h"
#include <QFrame>
namespace Ui { class CSettingsAtcStationsInlineComponent; }
namespace BlackGui
{
namespace Components
{
/*!
* How ATC stations will be displayed
*/
class CSettingsAtcStationsInlineComponent : public QFrame
{
Q_OBJECT
public:
//! Constructor
explicit CSettingsAtcStationsInlineComponent(QWidget *parent = nullptr);
//! Destructor
virtual ~CSettingsAtcStationsInlineComponent();
//! Get the settings
Settings::CAtcStationsSettings getSettings() const { return m_atcSettings.get(); }
//! Set count information
void setCounts(int all, int inRange);
signals:
//! Changed value
void changed();
private:
//! Settings have been changed
void onSettingsChanged();
//! Change the settings
void changeSettings();
QScopedPointer<Ui::CSettingsAtcStationsInlineComponent> ui;
BlackMisc::CSetting<BlackGui::Settings::TAtcStationsSettings> m_atcSettings { this, &CSettingsAtcStationsInlineComponent::onSettingsChanged };
};
} // ns
} // ns
#endif // guard