Scribus
Open source desktop publishing at your fingertips
PaintManagerDialog Class Reference
Inheritance diagram for PaintManagerDialog:
Collaboration diagram for PaintManagerDialog:

Public Member Functions

 PaintManagerDialog (QWidget *parent, QHash< QString, VGradient > *docGradients, ColorList doco, QString docColSet, QHash< QString, ScPattern > *docPatterns, ScribusDoc *doc, ScribusMainWindow *scMW)
 
QString getColorSetName ()
 Returns the name of the current/selected color set. More...
 
ScColor selectedColor ()
 Returns currently selected ScColor. It's used e.g. in BarcodeGenerator plugin.
 
QString selectedColorName ()
 Returns name of the currently selected color. It's used e.g. in BarcodeGenerator plugin.
 
void keyPressEvent (QKeyEvent *k)
 

Public Attributes

ScribusDocm_doc
 
ScribusMainWindowmainWin
 
QHash< QString, VGradientdialogGradients
 
QMap< QString, QString > replaceMap
 
QMap< QString, QString > origNames
 
QStringList origGradients
 
ColorList m_colorList
 
QMap< QString, QString > replaceColorMap
 
QStringList customColSet
 Custom user's color set.
 
bool hasImportedColors
 
QHash< QString, ScPatterndialogPatterns
 
QMap< QString, QString > replaceMapPatterns
 
QMap< QString, QString > origNamesPatterns
 
QStringList origPatterns
 

Protected Member Functions

QTreeWidgetItem * updatePatternList (QString addedName="")
 
QTreeWidgetItem * updateGradientList (QString addedName="")
 
QTreeWidgetItem * updateColorList (QString addedName="")
 
ColorList getGradientColors ()
 
bool isMandatoryColor (QString colorName)
 
void loadPatternDir ()
 
void loadVectors (QString data)
 
void updateGradientColors (QString newName, QString oldName)
 
void loadGimpFormat (QString fileName)
 
void addGimpColor (QString &colorName, double r, double g, double b)
 
void loadScribusFormat (QString fileName)
 
QStringList getUsedPatternsHelper (QString pattern, QStringList &results)
 
void doSaveDefaults (QString name, bool changed=false)
 

Protected Attributes

ColorSetManager csm
 
bool paletteLocked
 
bool modified
 
int sortRule
 
QTreeWidgetItem * colorItems
 
QTreeWidgetItem * gradientItems
 
QTreeWidgetItem * patternItems
 
QTreeWidgetItem * systemSwatches
 
QTreeWidgetItem * userSwatches
 
ColorList inDocUsedColors
 

Member Function Documentation

QString PaintManagerDialog::getColorSetName ( )

Returns the name of the current/selected color set.

Return values
QStringselected name.

The documentation for this class was generated from the following files: