aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/ColorDialog.h
blob: 2cddd7cf85f2496ac9a4f18a7bac4a85260240fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
bgstack15