2024-03-17 11:18:09 +08:00
|
|
|
#ifndef EDITORFONTDIALOG_H
|
|
|
|
#define EDITORFONTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class EditorFontDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class EditorFontDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2024-03-25 17:40:19 +08:00
|
|
|
explicit EditorFontDialog(bool onlyMonospaceFont, QWidget *parent = nullptr);
|
2024-03-17 11:18:09 +08:00
|
|
|
~EditorFontDialog();
|
|
|
|
|
|
|
|
QString fontFamily() const;
|
|
|
|
void setFontFamily(const QString &fontFamily);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_chkMonoOnly_toggled(bool checked);
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::EditorFontDialog *ui;
|
|
|
|
QString mFontFamily;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EDITORFONTDIALOG_H
|