mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
/* 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. 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_SETTINGSFONTDIALOG_H
|
|
#define BLACKGUI_COMPONENTS_SETTINGSFONTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QFont>
|
|
#include <QStringList>
|
|
|
|
namespace Ui { class CSettingsFontDialog; }
|
|
namespace BlackGui
|
|
{
|
|
namespace Components
|
|
{
|
|
/*!
|
|
* Dialog to edit fonts
|
|
* \see BlackMisc::Components::CSettingsFontComponent
|
|
*/
|
|
class CSettingsFontDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CSettingsFontDialog(QWidget *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~CSettingsFontDialog() override;
|
|
|
|
//! Get stylesheet
|
|
const QString &getQss() const;
|
|
|
|
//! Set the current font
|
|
void setFont(const QFont &font);
|
|
|
|
//! Get font
|
|
QFont getFont() const;
|
|
|
|
//! Family, size and style
|
|
QStringList getFamilySizeStyle() const;
|
|
|
|
//! With color selection
|
|
void setWithColorSelection(bool withColor);
|
|
|
|
private:
|
|
QScopedPointer<Ui::CSettingsFontDialog> ui;
|
|
};
|
|
} // ns
|
|
} // ns
|
|
#endif // guard
|