Subversion Repositories Scribus


Rev 2362 | Rev 2508 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


#include <qdialog.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include "scribusstructs.h"
#include "mspinbox.h"
#include "fontcombo.h"
#include "alignselect.h"
#include "shadebutton.h"

class ScribusDoc;
class StyleSelect;
class Tabruler;
class PageItem;

class EditStyle : public QDialog

        EditStyle( QWidget* parent, struct ParagraphStyle *vor, QValueList<ParagraphStyle> v, bool neu, ApplicationPrefs *Prefs,
                   double au, int dEin, ScribusDoc *doc);
        ~EditStyle() {};

        QLabel* TextLabel1;
        QLabel* TextLabel1_2_2;
        QLabel* TextLabel1_2_3;
        QLabel* pixmapLabel3;
        QLabel* pixmapLabel3_3;
        QLabel* pixmapLabel2;
        QLabel* pixmapLabel3_2;
        QLabel* pixmapLabel3_20;
        QLabel* pixmapLabel3_20_3;
        QLabel* pixmapLabel3_19;
        QLineEdit* Name;
        MSpinBox* fontHScale;
        MSpinBox* fontVScale;
        MSpinBox* LineSpVal;
        MSpinBox* fontBase;
        MSpinBox* fontKern;
        QPopupMenu* lineSpacingPop;
        QToolButton* linespacingLabel;
        Tabruler* TabList;
        MSpinBox* AboveV;
        MSpinBox* BelowV;
        StyleSelect* EffeS;
        AlignSelect* AligS;
        QGroupBox* GroupBox10;
        QGroupBox* AbstandV;
        QGroupBox* GroupFont;
        FontCombo* FontC;
        MSpinBox* SizeC;
        QLabel* TextF2;
        QLabel* StrokeIcon;
        QComboBox* TxStroke;
        ShadeButton *PM1;
        QLabel* FillIcon;
        QComboBox* TxFill;
        ShadeButton *PM2;
        QGroupBox* DropCaps;
        QLabel* CapLabel;
        QSpinBox* DropLines;
        QLabel* CapLabel2;
        MSpinBox* DropDist;
        QPushButton* Cancel;
        QPushButton* OkButton;
        struct ParagraphStyle *werte;
        QValueList<ParagraphStyle> allV;
        QString OldName;
        bool IsNew;
        double AutoVal;
        int DocsEin;
        //! Label for holding "style preview" bitmap 12/30/2004 petr vanek
        QLabel *previewText;
        QCheckBox *previewCaption;
        //! sample text for preview
        QString lorem;
        //! sample text frame
        PageItem *previewItem;
        //! Reference to the own ScribusDoc (preferences etc.) 12/30/2004 petr vanek
        ScribusDoc *parentDoc;
        ApplicationPrefs *PrefsData;

private slots:
        void toggleLsp(int id);
        void Verlassen();
        void FontChange();
        void ColorChange();
        /*! \brief Paragraph style preview generator.
        It takes values from the UI form, creates a temporary style.
        This style is appended into global styles list and removed from there
        after finishing. Then is created an item to draw QPixmap with it.
        \author Petr Vanek
        \date 4/7/2005

        void togglePreview();
        void updatePreview();

        QHBoxLayout* Layout17;
        QHBoxLayout* layout5;
        QHBoxLayout* layout6;
        QHBoxLayout* layout7;
        QVBoxLayout* layout8;
        QHBoxLayout* layout9;
        QHBoxLayout* layout9a;
        QHBoxLayout* layout9b;
        QVBoxLayout* layoutPreview;
        QVBoxLayout* EditStyleLayout;
        QVBoxLayout* GroupBox10Layout;
        QGridLayout* AbstandVLayout;
        QGridLayout* DropCapsLayout;
        QVBoxLayout* GroupFontLayout;

#endif // EDITSTYLE_H