mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
refs #799, own component for view update times
* utility function in CTime * settings class for update times
This commit is contained in:
51
src/blackgui/components/settingsviewupdatetimes.h
Normal file
51
src/blackgui/components/settingsviewupdatetimes.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/* 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_SETTINGSVIEWUPDATETIMES_H
|
||||
#define BLACKGUI_COMPONENTS_SETTINGSVIEWUPDATETIMES_H
|
||||
|
||||
#include "blackgui/settings/viewupdatesettings.h"
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui { class CSettingsViewUpdateTimes; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
* Update rates / times
|
||||
*/
|
||||
class CSettingsViewUpdateTimes : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSettingsViewUpdateTimes(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CSettingsViewUpdateTimes();
|
||||
|
||||
private slots:
|
||||
//! Slider changed
|
||||
void ps_sliderChanged();
|
||||
|
||||
//! Settings have been changed
|
||||
void ps_settingsChanged();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CSettingsViewUpdateTimes> ui;
|
||||
BlackMisc::CSetting<BlackGui::Settings::TViewUpdateSettings> m_settings { this, &CSettingsViewUpdateTimes::ps_settingsChanged }; //!< settings changed
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user