Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
cwdialog.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
8
#ifndef CWDIALOG_H
9
#define CWDIALOG_H
10
11
#include "ui_cwdialog.h"
12
#include "colorwheelwidget.h"
13
#include "prefscontext.h"
14
15
16
class
QSpacerItem;
17
class
QComboBox;
18
class
QPushButton;
19
class
QSpinBox;
20
class
QSlider;
21
class
ColorListBox
;
22
class
ScribusDoc
;
23
class
ScColor
;
24
25
31
class
CWDialog :
public
QDialog, Ui::CWDialog
32
{
33
Q_OBJECT
34
public
:
35
CWDialog(QWidget* parent = 0,
ScribusDoc
* doc = 0,
const
char
* name = 0,
bool
modal =
false
);
36
~CWDialog();
37
private
:
39
PrefsContext
* prefs;
41
ScribusDoc
* m_Doc;
42
46
void
setPreview();
47
53
QColor computeDefect(QColor c);
54
57
void
fillColorList();
58
63
void
setupColorComponents();
64
67
void
setupRGBComponent(
ScColor
col);
68
71
void
setupCMYKComponent(
ScColor
col);
72
76
void
setupHSVComponent(
ScColor
col);
77
79
void
updateNamedLabels();
80
84
void
connectSlots(
bool
conn=
true
);
85
94
void
processColors(
int
index,
bool
updateSpins=
true
);
95
97
QString getHexHsv(
ScColor
c);
98
99
private
slots:
100
void
colorspaceTab_currentChanged(
int
);
101
void
angleSpin_valueChanged(
int
);
102
void
colorWheel_clicked(
int
,
const
QPoint &);
103
void
typeCombo_activated(
int
);
104
void
documentColorList_currentChanged(QListWidgetItem *);
105
void
defectCombo_activated(
int
);
106
void
addButton_clicked();
107
void
replaceButton_clicked();
108
void
cancelButton_clicked();
109
void
colorList_currentChanged(QListWidgetItem *);
110
111
void
cSpin_valueChanged(
int
);
112
void
mSpin_valueChanged(
int
);
113
void
ySpin_valueChanged(
int
);
114
void
kSpin_valueChanged(
int
);
115
void
rSpin_valueChanged(
int
);
116
void
gSpin_valueChanged(
int
);
117
void
bSpin_valueChanged(
int
);
118
void
hSpin_valueChanged(
int
);
119
void
sSpin_valueChanged(
int
);
120
void
vSpin_valueChanged(
int
);
121
};
122
123
#endif // CWDIALOG_H
ScColor
Definition:
sccolor.h:51
ColorListBox
Very nice list box with color names and samples. It's inherited from QListBox with all its methods an...
Definition:
colorlistbox.h:67
ScribusDoc
the Document Class
Definition:
scribusdoc.h:90
PrefsContext
Definition:
prefscontext.h:40
scribus
plugins
colorwheel
cwdialog.h
Generated on Tue Sep 29 2015 09:15:01 for Scribus by
1.8.9.1