OpenMW
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
apps
opencs
view
widget
coloreditor.hpp
Go to the documentation of this file.
1
#ifndef CSV_WIDGET_COLOREDITOR_HPP
2
#define CSV_WIDGET_COLOREDITOR_HPP
3
4
#include <QPushButton>
5
6
class
QColor;
7
class
QPoint;
8
class
QSize;
9
10
namespace
CSVWidget
11
{
12
class
ColorPickerPopup;
13
14
class
ColorEditor
:
public
QPushButton
15
{
16
Q_OBJECT
17
18
QColor
mColor
;
19
ColorPickerPopup
*
mColorPicker
;
20
bool
mPopupOnStart
;
21
22
QPoint
calculatePopupPosition
();
23
24
public
:
25
ColorEditor
(
const
QColor &
color
,
QWidget
*parent = 0,
bool
popupOnStart =
false
);
26
27
QColor
color
()
const
;
28
void
setColor
(
const
QColor &
color
);
29
30
protected
:
31
virtual
void
paintEvent
(QPaintEvent *event);
32
virtual
void
showEvent
(QShowEvent *event);
33
34
private
slots:
35
void
showPicker
();
36
void
pickerHid
();
37
void
pickerColorChanged
(
const
QColor &
color
);
38
39
signals
:
40
void
pickingFinished
();
41
};
42
}
43
44
#endif
CSVWidget::ColorEditor::ColorEditor
ColorEditor(const QColor &color, QWidget *parent=0, bool popupOnStart=false)
Definition:
coloreditor.cpp:13
signals
static const struct @2 signals[]
CSVWidget::ColorEditor::pickingFinished
void pickingFinished()
CSVWidget::ColorEditor::mColor
QColor mColor
Definition:
coloreditor.hpp:18
QWidget
CSVWidget::ColorEditor::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition:
coloreditor.cpp:25
CSVWidget::ColorEditor::mPopupOnStart
bool mPopupOnStart
Definition:
coloreditor.hpp:20
CSVWidget::ColorEditor::calculatePopupPosition
QPoint calculatePopupPosition()
Definition:
coloreditor.cpp:86
CSVWidget::ColorEditor::mColorPicker
ColorPickerPopup * mColorPicker
Definition:
coloreditor.hpp:19
CSVWidget::ColorPickerPopup
Definition:
colorpickerpopup.hpp:10
CSVWidget::ColorEditor::pickerHid
void pickerHid()
Definition:
coloreditor.cpp:74
CSVWidget::ColorEditor
Definition:
coloreditor.hpp:14
CSVWidget::ColorEditor::showEvent
virtual void showEvent(QShowEvent *event)
Definition:
coloreditor.cpp:40
CSVWidget::ColorEditor::pickerColorChanged
void pickerColorChanged(const QColor &color)
Definition:
coloreditor.cpp:80
CSVWidget::ColorEditor::color
QColor color() const
Definition:
coloreditor.cpp:51
CSVWidget::ColorEditor::setColor
void setColor(const QColor &color)
Definition:
coloreditor.cpp:56
CSVWidget::ColorEditor::showPicker
void showPicker()
Definition:
coloreditor.cpp:62
Generated on Tue Jan 24 2017 02:05:49 for OpenMW by
1.8.6