Scribus
Open source desktop publishing at your fingertips
patternpropsdialog.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8  patternpropsdialog.h - description
9  -------------------
10  begin : Thu Nov 19 2009
11  copyright : (C) 2009 by Franz Schmid
12  email : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #ifndef PATTERNPROPSDIALOG_H
25 #define PATTERNPROPSDIALOG_H
26 
27 #include <QDialog>
28 #include <QLayout>
29 #include <QGroupBox>
30 #include <QLabel>
31 #include <QToolButton>
32 #include <QPushButton>
33 #include <QEvent>
34 #include "scribusapi.h"
35 #include "scrspinbox.h"
36 #include "linkbutton.h"
37 
38 class SCRIBUS_API PatternPropsDialog : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
43  PatternPropsDialog(QWidget* parent, int unitIndex, bool isStroke);
44  ~PatternPropsDialog() {};
45  virtual void changeEvent(QEvent *e);
46  ScrSpinBox* spinXoffset;
47  ScrSpinBox* spinYoffset;
48  ScrSpinBox* spinXscaling;
49  ScrSpinBox* spinYscaling;
50  ScrSpinBox* spinAngle;
51  ScrSpinBox* spinXSkew;
52  ScrSpinBox* spinYSkew;
53  ScrSpinBox* spinSpacing;
54  QToolButton* FlipH;
55  QToolButton* FlipV;
56  LinkButton* keepScaleRatio;
57  bool forStroke;
58 
59 public slots:
60  void languageChange();
61  void changePatternProps();
62  void ToggleKette();
63  void HChange();
64  void VChange();
65 
66 signals:
67  void NewPatternProps(double, double, double, double, double, double, double, bool, bool);
68  void NewPatternPropsS(double, double, double, double, double, double, double, double, bool, bool);
69 
70 protected:
71  QGroupBox* groupOffset;
72  QLabel* textLabel1;
73  QLabel* textLabel2;
74  QGroupBox* groupScale;
75  QLabel* textLabel5;
76  QLabel* textLabel6;
77  QGroupBox* groupRotation;
78  QLabel* textLabel7;
79  QGroupBox* groupSkew;
80  QLabel* textLabel8;
81  QLabel* textLabel9;
82  QLabel* textLabel15;
83  QGroupBox* groupSpace;
84  QLabel* textLabel20;
85  QVBoxLayout* frame3Layout;
86  QHBoxLayout* groupOffsetLayout;
87  QGridLayout* groupScaleLayout;
88  QGridLayout* groupSkewLayout;
89  QHBoxLayout* groupRotationLayout;
90  QHBoxLayout* groupSpaceLayout;
91  QPushButton* buttonOk;
92  QHBoxLayout* buttonLayout;
93  QHBoxLayout* groupFlipLayout;
94 };
95 #endif
Definition: patternpropsdialog.h:38
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21