Source-highlight Qt Library
Main Page
Related Pages
Classes
Files
File List
ColorDialog.h
1
/*
2
* Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it
3
* License: See COPYING file that comes with this distribution
4
*/
5
6
#ifndef COLORDIALOG_H
7
#define COLORDIALOG_H
8
9
#include <QtGui/QDialog>
10
#include <QMap>
11
12
#include "MainColorForm.h"
13
#include "Qt4SyntaxHighlighter.h"
14
15
namespace
Ui {
16
class
ColorDialog;
17
}
18
19
namespace
srchiliteqt {
20
21
class
LanguageElemColorForm;
22
44
class
ColorDialog
:
public
QDialog {
45
Q_OBJECT
46
Q_DISABLE_COPY(
ColorDialog
)
47
48
49
srchiliteqt::
Qt4SyntaxHighlighter
*
highlighter
;
50
public:
54
explicit
ColorDialog
(srchiliteqt::
Qt4SyntaxHighlighter
*highlighter_, QWidget *parent = 0);
55
virtual ~
ColorDialog
();
56
61
void
addColorForm
(QWidget *form);
62
69
void
syncFormatters
();
70
71
protected:
72
virtual
void
changeEvent(QEvent *e);
73
74
MainColorForm
*mainColorForm;
75
76
private:
77
Ui::ColorDialog *m_ui;
78
79
QMap<QString,
LanguageElemColorForm
*> colorFormMap;
80
};
81
82
}
83
84
#endif // COLORDIALOG_H
ColorDialog.h
Generated on Sat Aug 25 2012 15:37:49 for Source-highlight Qt Library by
1.8.1.2