Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

ColorManager Class Reference

Dialog to manage colors and colorsets. It provides all operations - color creating, deleting, importing etc. There are some predefined color sets for user and it is managed here too. More...

#include <colorm.h>

Collaboration diagram for ColorManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ColorManager (QWidget *parent, ColorList doco, ScribusDoc *doc, QString docColSet, QStringList custColSet)
 ~ColorManager ()
QString getColorSetName ()
 Returns the name of the current/selected color set.

Public Attributes

ColorList EditColors
 A ColorList with all available colors after dialog closing.
ColorList UsedC
 in doc used colors
QMap< QString, QString > replaceMap
 Color to color replacement mapping.
QStringList customColSet
 Custom user's color set.

Protected Attributes

QVBoxLayout * Layout2
QHBoxLayout * layout5
QVBoxLayout * layout3
QVBoxLayout * ColsSetGroupLayout
QVBoxLayout * Layout1
ColorSetManager csm
int customSetStartIndex

Private Slots

void saveDefaults ()
void loadDefaults (const QString &txt)
void importColors ()
 Just note: Farbe is German word for Color...
void deleteColor ()
void deleteUnusedColors ()
void duplicateColor ()
void newColor ()
void editColor ()
void selColor (QListWidgetItem *)
void selEditColor (QListWidgetItem *)
void updateCList ()

Private Member Functions

void updateButtons ()

Private Attributes

ColorListBoxcolorListBox
QGroupBox * ColorsGroup
QGroupBox * ColsSetGroup
QPushButton * importColorsButton
QPushButton * newColorButton
QPushButton * editColorButton
QPushButton * duplicateColorButton
QPushButton * deleteColorButton
QPushButton * deleteUnusedButton
QPushButton * saveButton
QPushButton * cancelButton
QLabel * textLabel1
QPushButton * SaveColSet
QComboBox * LoadColSet
QString sColor
QColor tmpColor
QStringList DontChange
ScribusDocm_Doc


Detailed Description

Dialog to manage colors and colorsets. It provides all operations - color creating, deleting, importing etc. There are some predefined color sets for user and it is managed here too.

Definition at line 33 of file colorm.h.


Constructor & Destructor Documentation

ColorManager::ColorManager ( QWidget *  parent,
ColorList  doco,
ScribusDoc doc,
QString  docColSet,
QStringList  custColSet 
)

ColorManager::~ColorManager (  )  [inline]

Definition at line 39 of file colorm.h.


Member Function Documentation

QString ColorManager::getColorSetName (  ) 

Returns the name of the current/selected color set.

Return values:
QString selected name.

Definition at line 728 of file colorm.cpp.

References LoadColSet.

void ColorManager::updateButtons (  )  [private]

void ColorManager::saveDefaults (  )  [private, slot]

void ColorManager::loadDefaults ( const QString &  txt  )  [private, slot]

void ColorManager::importColors (  )  [private, slot]

void ColorManager::deleteColor (  )  [private, slot]

void ColorManager::deleteUnusedColors (  )  [private, slot]

void ColorManager::duplicateColor (  )  [private, slot]

Definition at line 582 of file colorm.cpp.

References editColor(), EditColors, sColor, tr(), updateButtons(), and updateCList().

Referenced by ColorManager().

void ColorManager::newColor (  )  [private, slot]

void ColorManager::editColor (  )  [private, slot]

void ColorManager::selColor ( QListWidgetItem *  c  )  [private, slot]

void ColorManager::selEditColor ( QListWidgetItem *  c  )  [private, slot]

void ColorManager::updateCList (  )  [private, slot]


Member Data Documentation

in doc used colors

Definition at line 43 of file colorm.h.

Referenced by deleteUnusedColors().

QMap<QString,QString> ColorManager::replaceMap

Color to color replacement mapping.

Definition at line 45 of file colorm.h.

Referenced by ColorManager(), deleteColor(), and editColor().

Custom user's color set.

Definition at line 47 of file colorm.h.

Referenced by ColorManager(), editColor(), newColor(), and saveDefaults().

Definition at line 55 of file colorm.h.

Referenced by ColorManager(), deleteColor(), editColor(), newColor(), updateButtons(), and updateCList().

QGroupBox* ColorManager::ColorsGroup [private]

Definition at line 56 of file colorm.h.

Referenced by ColorManager().

QGroupBox* ColorManager::ColsSetGroup [private]

Definition at line 57 of file colorm.h.

Referenced by ColorManager().

QPushButton* ColorManager::importColorsButton [private]

Definition at line 58 of file colorm.h.

Referenced by ColorManager().

QPushButton* ColorManager::newColorButton [private]

Definition at line 59 of file colorm.h.

Referenced by ColorManager().

QPushButton* ColorManager::editColorButton [private]

Definition at line 60 of file colorm.h.

Referenced by ColorManager(), selColor(), selEditColor(), and updateButtons().

QPushButton* ColorManager::duplicateColorButton [private]

Definition at line 61 of file colorm.h.

Referenced by ColorManager(), selColor(), selEditColor(), and updateButtons().

QPushButton* ColorManager::deleteColorButton [private]

Definition at line 62 of file colorm.h.

Referenced by ColorManager(), selColor(), selEditColor(), and updateButtons().

QPushButton* ColorManager::deleteUnusedButton [private]

Definition at line 63 of file colorm.h.

Referenced by ColorManager().

QPushButton* ColorManager::saveButton [private]

Definition at line 64 of file colorm.h.

Referenced by ColorManager().

QPushButton* ColorManager::cancelButton [private]

Definition at line 65 of file colorm.h.

Referenced by ColorManager().

QLabel* ColorManager::textLabel1 [private]

Definition at line 66 of file colorm.h.

Referenced by ColorManager().

QPushButton* ColorManager::SaveColSet [private]

Definition at line 67 of file colorm.h.

Referenced by ColorManager().

QComboBox* ColorManager::LoadColSet [private]

Definition at line 68 of file colorm.h.

Referenced by ColorManager(), getColorSetName(), loadDefaults(), and saveDefaults().

QString ColorManager::sColor [private]

QColor ColorManager::tmpColor [private]

Definition at line 70 of file colorm.h.

Referenced by editColor(), newColor(), selColor(), selEditColor(), and updateButtons().

QStringList ColorManager::DontChange [private]

Definition at line 71 of file colorm.h.

Definition at line 72 of file colorm.h.

Referenced by ColorManager(), deleteColor(), deleteUnusedColors(), editColor(), and newColor().

QVBoxLayout* ColorManager::Layout2 [protected]

Definition at line 89 of file colorm.h.

Referenced by ColorManager().

QHBoxLayout* ColorManager::layout5 [protected]

Definition at line 90 of file colorm.h.

Referenced by ColorManager().

QVBoxLayout* ColorManager::layout3 [protected]

Definition at line 91 of file colorm.h.

Referenced by ColorManager().

QVBoxLayout* ColorManager::ColsSetGroupLayout [protected]

Definition at line 92 of file colorm.h.

Referenced by ColorManager().

QVBoxLayout* ColorManager::Layout1 [protected]

Definition at line 93 of file colorm.h.

Referenced by ColorManager().

Definition at line 95 of file colorm.h.

Referenced by ColorManager(), and loadDefaults().

Definition at line 96 of file colorm.h.

Referenced by ColorManager(), and loadDefaults().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.