26 #ifndef PAINTMANAGER_H
27 #define PAINTMANAGER_H
28 #include "ui_paintmanagerbase.h"
29 #include "colorsetmanager.h"
31 #include "scribusapi.h"
32 #include "scribusdoc.h"
34 #include "vgradient.h"
35 #include "scpattern.h"
46 QString getColorSetName();
54 QString selectedColorName();
56 void keyPressEvent(QKeyEvent *k);
61 QHash<QString, VGradient> dialogGradients;
62 QMap<QString,QString> replaceMap;
63 QMap<QString,QString> origNames;
64 QStringList origGradients;
66 QMap<QString,QString> replaceColorMap;
69 bool hasImportedColors;
70 QHash<QString, ScPattern> dialogPatterns;
71 QMap<QString,QString> replaceMapPatterns;
72 QMap<QString,QString> origNamesPatterns;
73 QStringList origPatterns;
76 void slotRightClick(QPoint p);
77 void selEditColor(QTreeWidgetItem *it);
78 void itemSelectionChanged();
79 void itemSelected(QTreeWidgetItem* it);
82 void duplicateColorItem();
83 void removeColorItem();
84 void removeUnusedColorItem();
85 void importColorItems();
86 void loadDefaults(QTreeWidgetItem* item);
89 QTreeWidgetItem* updatePatternList(QString addedName =
"");
90 QTreeWidgetItem* updateGradientList(QString addedName =
"");
91 QTreeWidgetItem* updateColorList(QString addedName =
"");
93 bool isMandatoryColor(QString colorName);
94 void loadPatternDir();
95 void loadVectors(QString data);
96 void updateGradientColors(QString newName, QString oldName);
97 void loadGimpFormat(QString fileName);
98 void addGimpColor(QString &colorName,
double r,
double g,
double b);
99 void loadScribusFormat(QString fileName);
100 QStringList getUsedPatternsHelper(QString pattern, QStringList &results);
101 void doSaveDefaults(QString name,
bool changed =
false);
106 QTreeWidgetItem *colorItems;
107 QTreeWidgetItem *gradientItems;
108 QTreeWidgetItem *patternItems;
109 QTreeWidgetItem *systemSwatches;
110 QTreeWidgetItem *userSwatches;
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
Definition: paintmanager.h:37
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
QStringList customColSet
Custom user's color set.
Definition: paintmanager.h:68
Definition: colorsetmanager.h:27