30 #include <QPushButton>
31 #include <QToolButton>
32 #include "scribusapi.h"
33 #include "gradienteditor.h"
34 #include "scribusdoc.h"
35 #include "ui/scrpalettebase.h"
36 #include "ui_transparencypalette.h"
37 #include "ui/gradientvectordialog.h"
38 #include "ui/patternpropsdialog.h"
51 class SCRIBUS_API
Tpalette :
public QWidget, Ui::transparencyPalette
64 void hideSelectionButtons();
65 void updateFromItem();
67 void updateColorList();
70 void setGradients(QHash<QString, VGradient> *docGradients);
71 void setPatterns(QHash<QString, ScPattern> *docPatterns);
74 void handleUpdateRequest(
int);
76 void editLineSelectorButton();
77 void editFillSelectorButton();
78 void slotGrad(
int nr);
79 void slotGradType(
int type);
80 void setNamedGradient(
const QString &name);
81 void switchGradientMode();
82 void switchPatternMode();
83 void editGradientVector();
84 void setActiveGradDia(
bool active);
85 void hideEditedPatterns(QStringList names);
86 void selectPattern(QListWidgetItem *c);
87 void setActPattern(QString pattern,
double scaleX,
double scaleY,
double offsetX,
double offsetY,
double rotation,
double skewX,
double skewY,
bool mirrorX,
bool mirrorY);
88 void changePatternProps();
89 void setSpecialGradient(
double x1,
double y1,
double x2,
double y2,
double fx,
double fy,
double sg,
double sk);
90 void setActTrans(
double,
double);
91 void setActBlend(
int,
int);
92 void slotTransS(
double val);
93 void slotTransF(
double val);
94 void unitChange(
double,
double,
int unitIndex);
97 void NewTrans(
double);
98 void NewTransS(
double);
101 void gradientChanged();
103 void NewGradient(
int);
104 void NewSpecial(
double,
double,
double,
double,
double,
double,
double,
double,
double,
double);
105 void NewPattern(QString);
106 void NewPatternProps(
double,
double,
double,
double,
double,
double,
double,
bool,
bool);
110 QPointer<ScribusDoc> currentDoc;
114 QHash<QString, ScPattern> *patternList;
115 QHash<QString, VGradient> *gradientList;
116 double m_Pattern_scaleX;
117 double m_Pattern_scaleY;
118 double m_Pattern_offsetX;
119 double m_Pattern_offsetY;
120 double m_Pattern_rotation;
121 double m_Pattern_skewX;
122 double m_Pattern_skewY;
123 bool m_Pattern_mirrorX;
124 bool m_Pattern_mirrorY;
126 void connectSignals();
127 void disconnectSignals();
130 void updateGradientList();
131 void updatePatternList();
Definition: propertiespalette_group.h:20
Very nice list box with color names and samples. It's inherited from QListBox with all its methods an...
Definition: colorlistbox.h:67
Definition: scpattern.h:36
Definition: sccolor.h:155
The ScComboBox widget always uses a listbox instead of a popup, independent of any QStyle...
Definition: sccombobox.h:26
the Document Class
Definition: scribusdoc.h:90
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: transparencypalette.h:51
Definition: propertiespalette.h:51
Definition: gradientvectordialog.h:40
Definition: pageitem.h:92