ColorCombo Class Reference
The ColorCombo widget is a combo box for displaying list of colors. More...
#include <colorcombo.h>

Public Types | |
| enum | PixmapType { smallPixmaps, widePixmaps, fancyPixmaps } |
Public Member Functions | |
| ColorCombo (QWidget *parent=0) | |
| ColorCombo (bool rw, QWidget *parent=0) | |
| QString | currentColor () const |
| void | updateBox (ColorList &list, ColorCombo::PixmapType pixType, bool insertNone=true) |
| void | insertItems (ColorList &list, ColorCombo::PixmapType type) |
| void | insertSmallItem (const ScColor &col, ScribusDoc *doc, const QString &colName) |
| void | insertWideItem (const ScColor &col, ScribusDoc *doc, const QString &colName) |
| void | insertFancyItem (const ScColor &col, ScribusDoc *doc, const QString &colName) |
Detailed Description
The ColorCombo widget is a combo box for displaying list of colors.Definition at line 32 of file colorcombo.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
| ColorCombo::ColorCombo | ( | QWidget * | parent = 0 |
) |
Definition at line 20 of file colorcombo.cpp.
| ColorCombo::ColorCombo | ( | bool | rw, | |
| QWidget * | parent = 0 | |||
| ) |
Definition at line 32 of file colorcombo.cpp.
Member Function Documentation
| QString ColorCombo::currentColor | ( | ) | const |
Definition at line 45 of file colorcombo.cpp.
Referenced by PropertiesPalette::newTxtFill(), and PropertiesPalette::newTxtStroke().
| void ColorCombo::updateBox | ( | ColorList & | list, | |
| ColorCombo::PixmapType | pixType, | |||
| bool | insertNone = true | |||
| ) |
Definition at line 50 of file colorcombo.cpp.
References ColorListBox::fancyPixmap, fancyPixmaps, ColorListBox::insertItems(), ColorListBox::smallPixmap, smallPixmaps, CommonStrings::tr_NoneColor, ColorListBox::widePixmap, and widePixmaps.
Referenced by SearchReplace::SearchReplace(), SToolBColorF::setCurrentDocument(), and PropertiesPalette::updateColorList().
| void ColorCombo::insertItems | ( | ColorList & | list, | |
| ColorCombo::PixmapType | type | |||
| ) |
Definition at line 67 of file colorcombo.cpp.
References ColorListBox::fancyPixmap, fancyPixmaps, ColorListBox::insertItems(), ColorListBox::smallPixmap, smallPixmaps, ColorListBox::widePixmap, and widePixmaps.
Referenced by DelColor::DelColor(), EffectsDialog::EffectsDialog(), and SToolBColorS::setCurrentDocument().
| void ColorCombo::insertSmallItem | ( | const ScColor & | col, | |
| ScribusDoc * | doc, | |||
| const QString & | colName | |||
| ) |
Definition at line 81 of file colorcombo.cpp.
Referenced by Annot::Annot(), and TabTools::restoreDefaults().
| void ColorCombo::insertWideItem | ( | const ScColor & | col, | |
| ScribusDoc * | doc, | |||
| const QString & | colName | |||
| ) |
| void ColorCombo::insertFancyItem | ( | const ScColor & | col, | |
| ScribusDoc * | doc, | |||
| const QString & | colName | |||
| ) |
Definition at line 95 of file colorcombo.cpp.
The documentation for this class was generated from the following files:
