Subversion Repositories Scribus

Rev

Rev 2258 | Rev 2282 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 paul 1
#ifndef EDITSTYLE_H
2
#define EDITSTYLE_H
3
 
4
#include <qdialog.h>
5
#include <qbuttongroup.h>
6
#include <qlabel.h>
7
#include <qlineedit.h>
8
#include <qpushbutton.h>
9
#include <qradiobutton.h>
10
#include <qspinbox.h>
11
#include <qlayout.h>
12
#include <qtooltip.h>
153 Franz 13
#include <qcheckbox.h>
173 Franz 14
#include <qcombobox.h>
838 cbradney 15
#include "scribusstructs.h"
3 paul 16
#include "mspinbox.h"
33 Franz 17
#include "fontcombo.h"
1879 subik 18
#include "alignselect.h"
19
#include "shadebutton.h"
20
 
838 cbradney 21
class ScribusDoc;
710 cbradney 22
class StyleSelect;
280 Franz 23
class Tabruler;
1879 subik 24
class PageItem;
3 paul 25
 
1879 subik 26
 
3 paul 27
class EditStyle : public QDialog
241 Franz 28
{
29
        Q_OBJECT
3 paul 30
 
31
public:
1065 cbradney 32
        EditStyle( QWidget* parent, struct ParagraphStyle *vor, QValueList<ParagraphStyle> v, bool neu, ApplicationPrefs *Prefs,
241 Franz 33
                   double au, int dEin, ScribusDoc *doc);
34
        ~EditStyle() {};
3 paul 35
 
241 Franz 36
        QLabel* TextLabel1;
37
        QLabel* TextLabel3;
38
        QLabel* TextLabel1_2_2;
39
        QLabel* TextLabel1_2_3;
40
        QLineEdit* Name;
41
        MSpinBox* LineSpVal;
280 Franz 42
        Tabruler* TabList;
241 Franz 43
        MSpinBox* AboveV;
44
        MSpinBox* BelowV;
45
        QLabel* EffeLabel;
173 Franz 46
        StyleSelect* EffeS;
241 Franz 47
        QLabel* AligLabel;
173 Franz 48
        AlignSelect* AligS;
241 Franz 49
        QGroupBox* GroupBox10;
50
        QGroupBox* AbstandV;
51
        QGroupBox* GroupFont;
52
        QLabel* TextF1;
53
        FontCombo* FontC;
54
        MSpinBox* SizeC;
55
        QLabel* TextF2;
56
        QLabel* StrokeIcon;
57
        QComboBox* TxStroke;
173 Franz 58
        ShadeButton *PM1;
241 Franz 59
        QLabel* FillIcon;
60
        QComboBox* TxFill;
173 Franz 61
        ShadeButton *PM2;
241 Franz 62
        QCheckBox* DropCaps;
63
        QCheckBox* BaseGrid;
64
        QLabel* CapLabel;
65
        QSpinBox* DropLines;
2219 fschmid 66
        QComboBox* tabFillCombo;
67
        QLabel* tabFillComboT;
241 Franz 68
        QPushButton* Cancel;
69
        QPushButton* OkButton;
1065 cbradney 70
        struct ParagraphStyle *werte;
71
        QValueList<ParagraphStyle> allV;
241 Franz 72
        QString OldName;
73
        bool IsNew;
168 Franz 74
        double AutoVal;
75
        int DocsEin;
1047 subik 76
        //! Label for holding "style preview" bitmap 12/30/2004 petr vanek
77
        QLabel *previewText;
2258 fschmid 78
        QCheckBox *previewCaption;
1879 subik 79
        //! sample text for preview
80
        QString lorem;
81
        //! sample text frame
82
        PageItem *previewItem;
1047 subik 83
        //! Reference to the own ScribusDoc (preferences etc.) 12/30/2004 petr vanek
84
        ScribusDoc *parentDoc;
2263 fschmid 85
        ApplicationPrefs *PrefsData;
3 paul 86
 
87
private slots:
168 Franz 88
        void Verlassen();
89
        void FontChange();
90
        void ManageDrops();
173 Franz 91
        void ColorChange();
1879 subik 92
        /*! \brief Paragraph style preview generator.
93
        It takes values from the UI form, creates a temporary style.
94
        This style is appended into global styles list and removed from there
95
        after finishing. Then is created an item to draw QPixmap with it.
96
        \author Petr Vanek
97
        \date 4/7/2005
98
        */
2258 fschmid 99
        void togglePreview();
1047 subik 100
        void updatePreview();
101
 
3 paul 102
protected:
241 Franz 103
        QHBoxLayout* Layout17;
1613 subik 104
        QVBoxLayout* layoutPreview;
241 Franz 105
        QGridLayout* EditStyleLayout;
280 Franz 106
        QVBoxLayout* GroupBox10Layout;
241 Franz 107
        QGridLayout* AbstandVLayout;
108
        QGridLayout* GroupFontLayout;
3 paul 109
};
110
 
111
#endif // EDITSTYLE_H