Source-highlight Qt Library
Main Page
Related Pages
Classes
Files
File List
MainColorForm.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 MAINCOLORFORM_H
7
#define MAINCOLORFORM_H
8
9
#include <QtGui/QWidget>
10
#include <QColor>
11
12
namespace
Ui {
13
class
MainColorForm;
14
}
15
16
namespace
srchiliteqt {
17
22
class
MainColorForm
:
public
QWidget {
23
Q_OBJECT
24
Q_DISABLE_COPY(
MainColorForm
)
25
public
:
26
explicit
MainColorForm
(QWidget *parent = 0);
27
virtual
~
MainColorForm
();
28
33
void
setColor
(
const
QColor &color);
34
39
void
setBackgroundColor
(
const
QColor &color);
40
44
const
QColor &
getColor
()
const
{
45
return
foreground;
46
}
47
51
const
QColor &
getBackgroundColor
()
const
{
52
return
background;
53
}
54
55
protected
:
56
virtual
void
changeEvent(QEvent *e);
57
58
private
:
59
Ui::MainColorForm
*m_ui;
60
61
QColor foreground;
62
63
QColor background;
64
65
private
slots:
66
void
selectBackground();
67
void
selectForeground();
68
};
69
70
}
71
72
#endif // MAINCOLORFORM_H
MainColorForm.h
Generated on Sat Aug 25 2012 15:37:49 for Source-highlight Qt Library by
1.8.1.2