![]() |
Scribus
Open source desktop publishing at your fingertips
|
#include <smcellstylewidget.h>
Public Member Functions | |
SMCellStyleWidget (QWidget *parent=0) | |
Constructor. | |
~SMCellStyleWidget () | |
Destructor. | |
virtual void | changeEvent (QEvent *e) |
void | show (CellStyle *cellStyle, QList< CellStyle > &cellStyles, const QString &defaultLanguage, int unitIndex) |
void | show (QList< CellStyle * > &cellStyles, QList< CellStyle > &cellStylesAll, const QString &defaultLanguage, int unitIndex) |
void | languageChange () |
void | fillFillColorCombo (ColorList &colors) |
void | showColors (const QList< CellStyle * > &cellStyles) |
Widget for editing cell style attributes.
NOTE: Many attributes unsupported.
void SMCellStyleWidget::fillFillColorCombo | ( | ColorList & | colors | ) |
Populates the fill color combo with the given color list.
colors | list of colors to populate the combo with. |
void SMCellStyleWidget::languageChange | ( | ) |
This function is called when the language is changed.
void SMCellStyleWidget::show | ( | CellStyle * | cellStyle, |
QList< CellStyle > & | cellStyles, | ||
const QString & | defaultLanguage, | ||
int | unitIndex | ||
) |
Shows attributes for a single cell style.
cellStyle | cell style for which attributes should be shown. |
cellStyles | list of all cell styles. |
defaultLanguage | default language. |
unitIndex | index of currently used unit. |
void SMCellStyleWidget::show | ( | QList< CellStyle * > & | cellStyles, |
QList< CellStyle > & | cellStylesAll, | ||
const QString & | defaultLanguage, | ||
int | unitIndex | ||
) |
Shows attributes for multiple cell styles.
TODO: Implement actual support for multiple styles.
cellStyles | list of cell styles for which attributes should be shown. |
cellStylesAll | list of all cell styles. |
defaultLanguage | default language. |
unitIndex | index of currently used unit. |