Subversion Repositories Scribus

Rev

Rev 2362 | Rev 2508 | 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* TextLabel1_2_2;
38
        QLabel* TextLabel1_2_3;
2370 fschmid 39
        QLabel* pixmapLabel3;
40
        QLabel* pixmapLabel3_3;
41
        QLabel* pixmapLabel2;
42
        QLabel* pixmapLabel3_2;
43
        QLabel* pixmapLabel3_20;
44
        QLabel* pixmapLabel3_20_3;
45
        QLabel* pixmapLabel3_19;
241 Franz 46
        QLineEdit* Name;
2370 fschmid 47
        MSpinBox* fontHScale;
48
        MSpinBox* fontVScale;
241 Franz 49
        MSpinBox* LineSpVal;
2370 fschmid 50
        MSpinBox* fontBase;
51
        MSpinBox* fontKern;
52
        QPopupMenu* lineSpacingPop;
53
        QToolButton* linespacingLabel;
280 Franz 54
        Tabruler* TabList;
241 Franz 55
        MSpinBox* AboveV;
56
        MSpinBox* BelowV;
173 Franz 57
        StyleSelect* EffeS;
58
        AlignSelect* AligS;
241 Franz 59
        QGroupBox* GroupBox10;
2370 fschmid 60
        QGroupBox* AbstandV;
241 Franz 61
        QGroupBox* GroupFont;
62
        FontCombo* FontC;
63
        MSpinBox* SizeC;
64
        QLabel* TextF2;
65
        QLabel* StrokeIcon;
66
        QComboBox* TxStroke;
173 Franz 67
        ShadeButton *PM1;
241 Franz 68
        QLabel* FillIcon;
69
        QComboBox* TxFill;
173 Franz 70
        ShadeButton *PM2;
2370 fschmid 71
        QGroupBox* DropCaps;
241 Franz 72
        QLabel* CapLabel;
73
        QSpinBox* DropLines;
2362 fschmid 74
        QLabel* CapLabel2;
75
        MSpinBox* DropDist;
241 Franz 76
        QPushButton* Cancel;
77
        QPushButton* OkButton;
1065 cbradney 78
        struct ParagraphStyle *werte;
79
        QValueList<ParagraphStyle> allV;
241 Franz 80
        QString OldName;
81
        bool IsNew;
168 Franz 82
        double AutoVal;
83
        int DocsEin;
1047 subik 84
        //! Label for holding "style preview" bitmap 12/30/2004 petr vanek
85
        QLabel *previewText;
2258 fschmid 86
        QCheckBox *previewCaption;
1879 subik 87
        //! sample text for preview
88
        QString lorem;
89
        //! sample text frame
90
        PageItem *previewItem;
1047 subik 91
        //! Reference to the own ScribusDoc (preferences etc.) 12/30/2004 petr vanek
92
        ScribusDoc *parentDoc;
2263 fschmid 93
        ApplicationPrefs *PrefsData;
3 paul 94
 
95
private slots:
2370 fschmid 96
        void toggleLsp(int id);
168 Franz 97
        void Verlassen();
98
        void FontChange();
173 Franz 99
        void ColorChange();
1879 subik 100
        /*! \brief Paragraph style preview generator.
101
        It takes values from the UI form, creates a temporary style.
102
        This style is appended into global styles list and removed from there
103
        after finishing. Then is created an item to draw QPixmap with it.
104
        \author Petr Vanek
105
        \date 4/7/2005
106
        */
2258 fschmid 107
        void togglePreview();
1047 subik 108
        void updatePreview();
109
 
3 paul 110
protected:
241 Franz 111
        QHBoxLayout* Layout17;
2370 fschmid 112
        QHBoxLayout* layout5;
113
        QHBoxLayout* layout6;
114
        QHBoxLayout* layout7;
115
        QVBoxLayout* layout8;
116
        QHBoxLayout* layout9;
117
        QHBoxLayout* layout9a;
118
        QHBoxLayout* layout9b;
1613 subik 119
        QVBoxLayout* layoutPreview;
2370 fschmid 120
        QVBoxLayout* EditStyleLayout;
280 Franz 121
        QVBoxLayout* GroupBox10Layout;
241 Franz 122
        QGridLayout* AbstandVLayout;
2370 fschmid 123
        QGridLayout* DropCapsLayout;
124
        QVBoxLayout* GroupFontLayout;
3 paul 125
};
126
 
127
#endif // EDITSTYLE_H