aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/ColorDialog.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-25 13:08:12 -0400
committerKen Moore <moorekou@gmail.com>2016-04-25 13:08:12 -0400
commited5ecf7ea7a482b4649e66ecb35fbc60af680684 (patch)
treeacc0fa17d228259e847f55c678db9fb0a9b50f0c /src-qt5/desktop-utils/lumina-textedit/ColorDialog.h
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.gz
lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.bz2
lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.zip
Rearrange the Lumina source tree quite a bit:
Now the utilites are arranged by category (core, core-utils, desktop-utils), so all the -utils may be excluded by a package system (or turned into separate packages) as needed.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/ColorDialog.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/ColorDialog.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/ColorDialog.h b/src-qt5/desktop-utils/lumina-textedit/ColorDialog.h
new file mode 100644
index 00000000..2cddd7cf
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-textedit/ColorDialog.h
@@ -0,0 +1,48 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2015, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_PLAIN_TEXT_EDITOR_COLOR_DIALOG_H
+#define _LUMINA_PLAIN_TEXT_EDITOR_COLOR_DIALOG_H
+
+#include <QDialog>
+#include <QSettings>
+#include <QWidget>
+#include <QCloseEvent>
+
+namespace Ui{
+ class ColorDialog;
+};
+
+class ColorDialog : public QDialog{
+ Q_OBJECT
+private:
+ Ui::ColorDialog *ui;
+ QSettings *settings;
+
+public:
+ ColorDialog(QSettings *set, QWidget *parent);
+ ~ColorDialog(){}
+
+ void LoadColors();
+
+public slots:
+ void updateIcons();
+
+private slots:
+ void saveColors();
+ void changeColor();
+
+signals:
+ void colorsChanged();
+
+protected:
+ void closeEvent(QCloseEvent*){
+ //Make sure this window never actually closes until the app is finished
+ this->hide();
+ }
+};
+
+#endif \ No newline at end of file
bgstack15