Scribus
Open source desktop publishing at your fingertips
dcolor.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 #ifndef DELCOLOR_H
8 #define DELCOLOR_H
9 
10 class QLabel;
11 class QPushbutton;
12 class ColorCombo;
13 class QVBoxLayout;
14 class QHBoxLayout;
15 class QGridLayout;
16 
17 #include <QDialog>
18 #include "scribusapi.h"
19 #include "sccolor.h"
20 
21 class SCRIBUS_API DelColor : public QDialog
22 {
23  Q_OBJECT
24 
25 public:
26  DelColor(QWidget* parent, ColorList colorList, QString colorName, bool haveDoc );
27  ~DelColor() {};
28  const QString getReplacementColor();
29 
30 private:
31  QLabel* deleteLabel;
32  QLabel* colorToDelLabel;
33  QLabel* replaceLabel;
34  QPushButton* okButton;
35  QPushButton* cancelButton;
36  ColorCombo* replacementColData;
37  QVBoxLayout* dialogLayout;
38  QGridLayout* delColorLayout;
39  QHBoxLayout* okCancelLayout;
40  QString replacementColor;
41  ColorList cList;
42 
43 private slots:
44  virtual void ReplaceColor(int);
45 };
46 
47 #endif // DELCOLOR_H
Definition: dcolor.h:21
The ColorCombo widget is a combo box for displaying list of colors.
Definition: colorcombo.h:33
Definition: sccolor.h:155