12 #ifndef COLORSETMANAGER_H
13 #define COLORSETMANAGER_H
15 #include "scribusapi.h"
17 #include "scribusdoc.h"
18 #include "vgradient.h"
19 #include "scpattern.h"
22 #include <QStringList>
23 #include <QTreeWidget>
34 void findPaletteLocations();
35 void searchDir(QString path, QMap<QString, QString> &pList, QTreeWidgetItem* parent = NULL);
36 void findPalettes(QTreeWidgetItem* parent = NULL);
37 void findUserPalettes(QTreeWidgetItem* parent = NULL);
38 QStringList paletteNames();
39 QStringList userPaletteNames();
41 QString paletteFileFromName(
const QString& paletteName);
42 QString userPaletteFileFromName(
const QString& paletteName);
43 bool paletteLocationLocked(
const QString& palettePath);
44 bool checkPaletteFormat(
const QString& paletteFileName);
45 bool loadPalette(
const QString& paletteFileName,
ScribusDoc *doc,
ColorList &colors, QHash<QString,VGradient> &gradients, QHash<QString, ScPattern> &patterns,
bool merge);
48 QStringList paletteLocations;
49 QMap<QString, QString> palettes;
50 QMap<QString, QString> userPalettes;
51 QMap<QString, bool> paletteLocationLocks;
Definition: prefsstructs.h:453
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
Definition: colorsetmanager.h:27