50 lines
1015 B
C++
50 lines
1015 B
C++
#ifndef GCOMPOSE_PREFERENCESDIALOG_H
|
|
#define GCOMPOSE_PREFERENCESDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QCheckBox>
|
|
#include <QComboBox>
|
|
#include <QSpinBox>
|
|
#include <QPushButton>
|
|
#include <map>
|
|
#include <string>
|
|
#include "Settings.h"
|
|
|
|
namespace uLib {
|
|
namespace Qt {
|
|
|
|
class PreferencesDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
explicit PreferencesDialog(QWidget* parent = nullptr);
|
|
|
|
private slots:
|
|
void onAccept();
|
|
|
|
private:
|
|
QCheckBox* m_throttledRendering;
|
|
QComboBox* m_themeCombo;
|
|
std::map<Settings::Dimension, QComboBox*> m_unitCombos;
|
|
|
|
// Font Configuration
|
|
QComboBox* m_fontFamilies;
|
|
QSpinBox* m_fontSize;
|
|
QCheckBox* m_fontBold;
|
|
QCheckBox* m_fontItalic;
|
|
QPushButton* m_fontColorBtn;
|
|
Vector3d m_currentFontColor;
|
|
|
|
// GUI Font Configuration
|
|
QComboBox* m_guiFontFamilies;
|
|
QSpinBox* m_guiFontSize;
|
|
QCheckBox* m_guiFontBold;
|
|
QCheckBox* m_guiFontItalic;
|
|
|
|
void updateFontColorButton();
|
|
};
|
|
|
|
} // namespace Qt
|
|
} // namespace uLib
|
|
|
|
#endif
|