2019-05-01 16:15:33 +00:00
|
|
|
#ifndef COLORTHEMEEDITDIALOG_H
|
2019-05-19 21:21:42 +00:00
|
|
|
#define COLORTHEMEEDITDIALOG_H
|
2019-05-01 16:15:33 +00:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class DisassemblyWidget;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ColorThemeEditDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ColorThemeEditDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ColorThemeEditDialog(QWidget *parent = nullptr);
|
|
|
|
~ColorThemeEditDialog() override;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept() override;
|
|
|
|
void reject() override;
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void keyPressEvent(QKeyEvent *event) override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
/**
|
|
|
|
* @brief Sets @a newColor color for current option.
|
|
|
|
* @param newColor
|
|
|
|
* New color for current color option.
|
|
|
|
*/
|
|
|
|
void colorOptionChanged(const QColor &newColor);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Changes current theme to edit.
|
|
|
|
* @param newTheme
|
|
|
|
* Name of new theme.
|
|
|
|
*/
|
|
|
|
void editThemeChanged(const QString &newTheme);
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool themeWasEdited(const QString &theme) const;
|
|
|
|
|
|
|
|
private:
|
2019-06-12 17:46:07 +00:00
|
|
|
QList<QString> showAlphaOptions;
|
2019-05-01 16:15:33 +00:00
|
|
|
Ui::ColorThemeEditDialog *ui;
|
|
|
|
QSignalBlocker configSignalBlocker;
|
|
|
|
DisassemblyWidget *previewDisasmWidget;
|
|
|
|
QString colorTheme;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COLORTHEMEEDITDIALOG_H
|