Back to index

scribus-ng  1.3.4.dfsg+svn20071115
multiline.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef MULTILINE_H
00008 #define MULTILINE_H
00009 
00010 #include <qdialog.h>
00011 #include <qvariant.h>
00012 #include <qpushbutton.h>
00013 #include <qlabel.h>
00014 #include <qlistbox.h>
00015 #include <qgroupbox.h>
00016 #include <qcombobox.h>
00017 #include <qspinbox.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include <qpixmap.h>
00022 #include <qlineedit.h>
00023 
00024 #include "scribusapi.h"
00025 #include "scribusstructs.h"
00026 
00027 #include "linecombo.h"
00028 #include "mspinbox.h"
00029 
00030 class ScribusDoc;
00031 
00032 class SCRIBUS_API MultiLine : public QDialog
00033 {
00034        Q_OBJECT
00035 
00036 public:
00037        MultiLine( QWidget* parent, ScribusDoc* doc, multiLine ml, QString nam, QMap<QString,multiLine> *Sty);
00038        void updatePreview();
00039        QColor calcFarbe(const QString& name, int shade);
00040        void updateSList();
00041        void reSort();
00042        void RebuildList();
00043        ~MultiLine() {};
00044 
00045        QLineEdit* SName;
00046        QLabel* Preview;
00047        QPushButton* AddStyle;
00048        QPushButton* RemoveStyle;
00049        QListBox* Styles;
00050        QGroupBox* Properties;
00051        LineCombo* Dashes;
00052        QComboBox* LineEnds;
00053        QComboBox* LineJoin;
00054        QLabel* WidthText;
00055        MSpinBox* LWidth;
00056        QComboBox* Color;
00057        QSpinBox* Shade;
00058        QPushButton* OK;
00059        QPushButton* Cancel;
00060        multiLine TempVorl;
00061        int CurLin;
00062        ScribusDoc* Docu;
00063        QMap<QString,multiLine> *TempStyles;
00064        QString GivenName;
00065 
00066 public slots:
00067        void NewName();
00068        void DelSubLine();
00069        void NewSubLine();
00070        void NewLJoin();
00071        void NewLEnd();
00072        void NewLSty();
00073        void NewLColor();
00074        void NewLWidth();
00075        void NewLShade();
00076        void slotEditStyle( int i);
00077 
00078 protected:
00079        QVBoxLayout* MultiLineLayout;
00080        QHBoxLayout* layout2;
00081        QVBoxLayout* PropertiesLayout;
00082        QHBoxLayout* layout1;
00083        QHBoxLayout* layout3;
00084        QHBoxLayout* layout4;
00085 };
00086 
00087 #endif // MULTILINE_H