Back to index

scribus-ng  1.3.4.dfsg+svn20071115
edit1format.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 EDITSTYLE_H
00008 #define EDITSTYLE_H
00009 
00010 #include <qdialog.h>
00011 #include <qbuttongroup.h>
00012 #include <qlabel.h>
00013 #include <qlineedit.h>
00014 #include <qpushbutton.h>
00015 #include <qradiobutton.h>
00016 #include <qspinbox.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qcheckbox.h>
00020 #include <qcombobox.h>
00021 
00022 #include "scribusapi.h"
00023 #include "scribusstructs.h"
00024 #include "mspinbox.h"
00025 #include "fontcombo.h"
00026 #include "colorcombo.h"
00027 #include "alignselect.h"
00028 #include "shadebutton.h"
00029 #include "styles/styleset.h"
00030 
00031 class ScribusDoc;
00032 class StyleSelect;
00033 class Tabruler;
00034 class SampleItem;
00035 class PrefsContext;
00036 
00037 
00040 class SCRIBUS_API EditStyle : public QDialog
00041 {
00042        Q_OBJECT
00043 
00044 public:
00045        EditStyle( QWidget* parent, ParagraphStyle *vor, const StyleSet<ParagraphStyle>& v, bool neu,
00046                   double au, int dEin, ScribusDoc *doc);
00047        ~EditStyle();
00048 
00049        QLabel* TextLabel1;
00050        QLabel* TextLabel1_2_2;
00051        QLabel* TextLabel1_2_3;
00052        QLabel* pixmapLabel3;
00053        QLabel* pixmapLabel3_3;
00054        QLabel* pixmapLabel2;
00055        QLabel* pixmapLabel3_2;
00056        QLabel* pixmapLabel3_20;
00057        QLabel* pixmapLabel3_20_3;
00058        QLabel* pixmapLabel3_19;
00059        QLineEdit* Name;
00060        MSpinBox* fontHScale;
00061        MSpinBox* fontVScale;
00062        MSpinBox* LineSpVal;
00063        MSpinBox* fontBase;
00064        MSpinBox* fontKern;
00065        QPopupMenu* lineSpacingPop;
00066        QToolButton* linespacingButton;
00067        Tabruler* TabList;
00068        MSpinBox* AboveV;
00069        MSpinBox* BelowV;
00070        StyleSelect* EffeS;
00071        AlignSelect* AligS;
00072        QGroupBox* GroupBox10;
00073        QGroupBox* AbstandV;
00074        QGroupBox* GroupFont;
00075        FontComboH* FontC;
00076        MSpinBox* SizeC;
00077        QLabel* TextF2;
00078        QLabel* StrokeIcon;
00079        ColorCombo* TxStroke;
00080        ShadeButton *PM1;
00081        QLabel* FillIcon;
00082        ColorCombo* TxFill;
00083        ShadeButton *PM2;
00084        QGroupBox* DropCaps;
00085        QLabel* CapLabel;
00086        QSpinBox* DropLines;
00087        QLabel* CapLabel2;
00088        MSpinBox* DropDist;
00089        QPushButton* Cancel;
00090        QPushButton* OkButton;
00091        ParagraphStyle *werte;
00092        const StyleSet<ParagraphStyle>& allV;
00093        QString OldName;
00094        bool IsNew;
00095        double AutoVal;
00096        int DocsEin;
00097        PrefsContext* prefs;
00099        QLabel *previewText;
00100        QCheckBox *previewCaption;
00102        QPushButton *previewBgColor;
00104        ScribusDoc *parentDoc;
00105 
00106 private slots:
00107        void toggleLsp(int id);
00108        void Verlassen();
00109        void FontChange();
00110        void ColorChange();
00111 
00113        void togglePreview();
00121        void updatePreview();
00122 
00124        void setPreviewBackground();
00125        
00127        void copyStyleSettings(ParagraphStyle& parstyle);
00128 
00129 protected:
00131        SampleItem *sampleItem;
00132 
00133        QHBoxLayout* Layout17;
00134        QHBoxLayout* layout5;
00135        QHBoxLayout* layout6;
00136        QHBoxLayout* layout7;
00137        QVBoxLayout* layout8;
00138        QHBoxLayout* layout9;
00139        QHBoxLayout* layout9a;
00140        QHBoxLayout* layout9b;
00141        QVBoxLayout* layoutPreview;
00142        QHBoxLayout* layoutPrevSet;
00143        QVBoxLayout* EditStyleLayout;
00144        QVBoxLayout* GroupBox10Layout;
00145        QGridLayout* AbstandVLayout;
00146        QGridLayout* DropCapsLayout;
00147        QVBoxLayout* GroupFontLayout;
00148 };
00149 
00150 #endif // EDITSTYLE_H