00001
00002
00003
00004
00005
00006
00007
00008 #ifndef PREFERENCESDIALOG_H
00009 #define PREFERENCESDIALOG_H
00010
00011 #include <QDialog>
00012
00013 #include "ui_preferencesdialog.h"
00014 #include "ui_prefsdatadisplaywidget.h"
00015 #include "ui_prefslnfwidget.h"
00016 #include "ui_prefssqleditorwidget.h"
00017
00018
00019 class PrefsDataDisplayWidget : public QWidget, public Ui::PrefsDataDisplayWidget
00020 {
00021 Q_OBJECT
00022 public:
00023 PrefsDataDisplayWidget(QWidget * parent = 0);
00024 };
00025
00026 class PrefsLNFWidget : public QWidget, public Ui::PrefsLNFWidget
00027 {
00028 Q_OBJECT
00029 public:
00030 PrefsLNFWidget(QWidget * parent = 0);
00031 };
00032
00033 class PrefsSQLEditorWidget : public QWidget, public Ui::PrefsSQLEditorWidget
00034 {
00035 Q_OBJECT
00036 public:
00037 PrefsSQLEditorWidget(QWidget * parent = 0);
00038 };
00039
00040
00047 class PreferencesDialog : public QDialog, public Ui::PreferencesDialog
00048 {
00049 Q_OBJECT
00050
00051 public:
00052 PreferencesDialog(QWidget * parent = 0);
00053 ~PreferencesDialog(){};
00054
00055 bool saveSettings();
00056
00057 private:
00058 PrefsDataDisplayWidget * m_prefsData;
00059 PrefsLNFWidget * m_prefsLNF;
00060 PrefsSQLEditorWidget * m_prefsSQL;
00061
00062
00063 QColor m_syDefaultColor;
00064 QColor m_syKeywordColor;
00065 QColor m_syNumberColor;
00066 QColor m_syStringColor;
00067 QColor m_syCommentColor;
00068
00070 void resetEditorPreview();
00071
00072 private slots:
00073 void restoreDefaults();
00074 void blobBgButton_clicked();
00075 void nullBgButton_clicked();
00076 void activeHighlightButton_clicked();
00077 void shortcutsButton_clicked();
00078
00079 void syDefaultButton_clicked();
00080 void syKeywordButton_clicked();
00081 void syNumberButton_clicked();
00082 void syStringButton_clicked();
00083 void syCommentButton_clicked();
00084
00085 void fontComboBox_activated(int);
00086 void fontSizeSpin_valueChanged(int);
00087 };
00088
00089
00090 #endif