refs #799, own component for view update times

* utility function in CTime
* settings class for update times
This commit is contained in:
Klaus Basan
2016-11-09 20:16:21 +01:00
parent 9386741144
commit 438e72555a
9 changed files with 530 additions and 5 deletions

View 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