summaryrefslogtreecommitdiff
path: root/qhexedit2/example/optionsdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'qhexedit2/example/optionsdialog.h')
-rw-r--r--qhexedit2/example/optionsdialog.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/qhexedit2/example/optionsdialog.h b/qhexedit2/example/optionsdialog.h
new file mode 100644
index 0000000..6075917
--- /dev/null
+++ b/qhexedit2/example/optionsdialog.h
@@ -0,0 +1,40 @@
+#ifndef OPTIONSDIALOG_H
+#define OPTIONSDIALOG_H
+
+#include <QtCore>
+#include <QDialog>
+
+namespace Ui {
+ class OptionsDialog;
+}
+
+class OptionsDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit OptionsDialog(QWidget *parent = 0);
+ ~OptionsDialog();
+ Ui::OptionsDialog *ui;
+ void show();
+
+public slots:
+ virtual void accept();
+
+private slots:
+ void on_pbHighlightingColor_clicked();
+ void on_pbAddressAreaColor_clicked();
+ void on_pbAddressFontColor_clicked();
+ void on_pbAsciiAreaColor_clicked();
+ void on_pbAsciiFontColor_clicked();
+ void on_pbHexFontColor_clicked();
+ void on_pbSelectionColor_clicked();
+ void on_pbWidgetFont_clicked();
+
+private:
+ void readSettings();
+ void writeSettings();
+ void setColor(QWidget *widget, QColor color);
+};
+
+#endif // OPTIONSDIALOG_H