| 1 | #ifndef PREFERENCESDIALOG_OPENMSX_H |
| 2 | #define PREFERENCESDIALOG_OPENMSX_H |
| 3 | |
| 4 | #include "ui_PreferencesDialog.h" |
| 5 | #include <QDialog> |
| 6 | |
| 7 | class PreferencesDialog : public QDialog, private Ui::PreferencesDialog |
| 8 | { |
| 9 | Q_OBJECT |
| 10 | public: |
| 11 | PreferencesDialog(QWidget* parent = nullptr); |
| 12 | |
| 13 | private: |
| 14 | void initConfig(); |
| 15 | void initFontList(); |
| 16 | void setFontPreviewColor(const QColor& c); |
| 17 | |
| 18 | void fontSelectionChange(int row); |
| 19 | void fontTypeChanged(bool state); |
| 20 | void fontSelectCustom(); |
| 21 | void fontSelectColor(); |
| 22 | |
| 23 | void autoReloadSymbols(int state); |
| 24 | void preserveLostSymbols(int state); |
| 25 | void preserveBreakpointSymbol(int state); |
| 26 | |
| 27 | private: |
| 28 | bool updating; |
| 29 | }; |
| 30 | |
| 31 | #endif // PREFERENCESDIALOG_OPENMSX_H |