Scribus
Open source desktop publishing at your fingertips
BarcodeGenerator Class Reference

Active tasts for BC GUI. It's inherited from BarcodeGeneratorBase() class which is created by uic from designer. Don't change anything in BarcodeGeneratorBase manually! It will be overwritten automatically by uic. More...

#include <barcodegenerator.h>

Inheritance diagram for BarcodeGenerator:
Collaboration diagram for BarcodeGenerator:

Public Member Functions

 BarcodeGenerator (QWidget *parent=0, const char *name=0)
 Create modal BC dialog. More...
 
 ~BarcodeGenerator ()
 Erase the temporary files here.
 

Protected Slots

void paintBarcode ()
 
void updatePreview (QString)
 
void bcFamilyComboChanged ()
 
void bcComboChanged ()
 
void bcComboChanged (int)
 
void bgColorButton_pressed ()
 
void lnColorButton_pressed ()
 
void txtColorButton_pressed ()
 
void codeEdit_textChanged (const QString &s)
 
void resetButton_clicked ()
 
void okButton_pressed ()
 
void cancelButton_pressed ()
 

Protected Member Functions

void paintColorSample (QLabel *l, const ScColor &c)
 Create color preview. Used for Color box feedback. More...
 
bool codeEdit_check (const QString &s)
 Perform BarcodeCheckType checks here. More...
 
bool optionsEdit_check (const QString &s)
 
void updateOptions ()
 
void updateOptionsTextFromUI ()
 
void updateUIFromOptionsText ()
 

Protected Attributes

Ui::BarcodeGeneratorBase ui
 GUI namespace content. See designer.
 
BarcodeMap map
 BC/BC type mapping. QMap keys are used as BC names.
 
QTimer * paintBarcodeTimer
 
QList< QString > encoderlist
 List of available barcode encoders.
 
QHash< QString, QString > resdescs
 Descriptions of each encoder.
 
QHash< QString, QString > resreqs
 Dependancies of each encoder.
 
QHash< QString, QString > resexams
 Example data input for each encoder.
 
QHash< QString, QString > resexops
 Example options input for each encoder.
 
QHash< QString, QString > resrndrs
 Renderers for each encoder.
 
QHash< QString, QString > resbodys
 PS body of each encoder.
 
QHash< QString, QString > resvers
 Symbol Versions of each encoder.
 
QHash< QString, QString > resvlbl
 Label for the versions field.
 
QHash< QString, QString > resecls
 Error correction levels of each encoder.
 
QHash< QString, bool > resincludetextAvail
 includetext option available for each encoder.
 
QHash< QString, bool > resguardwhitespaceAvail
 guardwhitespace option available for each encoder.
 
QHash< QString, bool > resincludecheckAvail
 includecheck option available for each encoder.
 
QHash< QString, bool > resincludecheckintextAvail
 includecheckintext option available for each encoder.
 
QHash< QString, bool > resparseAvail
 parse option available for each encoder.
 
QHash< QString, bool > resparsefncAvail
 parsefnc option available for each encoder.
 
QList< QString > familyList
 List of barcode families.
 
QHash< QString, QStringList > familyItems
 Family to item hash.
 
ScColor lnColor
 Color of the BC lines.
 
ScColor txtColor
 Color of the BC font.
 
ScColor bgColor
 Background color of the BC.
 
QColor guiColor
 

Detailed Description

Active tasts for BC GUI. It's inherited from BarcodeGeneratorBase() class which is created by uic from designer. Don't change anything in BarcodeGeneratorBase manually! It will be overwritten automatically by uic.

Author
Petr Vanek petr@.nosp@m.yarp.nosp@m.en.cz

Constructor & Destructor Documentation

BarcodeGenerator::BarcodeGenerator ( QWidget *  parent = 0,
const char *  name = 0 
)

Create modal BC dialog.

Parameters
parentParent of the dialog.
namename od the QObject to debug

Member Function Documentation

bool BarcodeGenerator::codeEdit_check ( const QString &  s)
protected

Perform BarcodeCheckType checks here.

Parameters
snew string
void BarcodeGenerator::paintColorSample ( QLabel *  l,
const ScColor c 
)
protected

Create color preview. Used for Color box feedback.

Parameters
lA pointer to the sample QLabel
cA color to fill

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