cutter/src/dialogs/preferences/AppearanceOptionsWidget.h
2019-03-16 20:24:28 +01:00

42 lines
894 B
C++

#ifndef AppearanceOptionsWidget_H
#define AppearanceOptionsWidget_H
#include <QDialog>
#include <QPushButton>
#include <memory>
#include "core/Cutter.h"
class PreferencesDialog;
namespace Ui {
class AppearanceOptionsWidget;
}
class AppearanceOptionsWidget : public QDialog
{
Q_OBJECT
public:
explicit AppearanceOptionsWidget(PreferencesDialog *dialog);
~AppearanceOptionsWidget();
private:
std::unique_ptr<Ui::AppearanceOptionsWidget> ui;
private slots:
void updateFontFromConfig();
void updateThemeFromConfig(bool qtThemeChanged = true);
void on_fontSelectionButton_clicked();
void on_themeComboBox_currentIndexChanged(int index);
void on_colorComboBox_currentIndexChanged(int index);
void on_copyButton_clicked();
void on_deleteButton_clicked();
void onLanguageComboBoxCurrentIndexChanged(int index);
};
#endif //ASMOPTIONSDIALOG_H