/usr/include/scribus/cpalette.h is in scribus-dev 1.4.6+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | /*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
/***************************************************************************
cpalette.h - description
-------------------
begin : Wed Apr 25 2001
copyright : (C) 2001 by Franz Schmid
email : Franz.Schmid@altmuehlnet.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CPALETTE_H
#define CPALETTE_H
#include <QWidget>
#include <QPointer>
class QComboBox;
class QCheckBox;
class QEvent;
class QFrame;
class QGridLayout;
class QGroupBox;
class QHBoxLayout;
class QLabel;
class QListWidget;
class QListWidgetItem;
class QPixmap;
class QSpacerItem;
class QSpinBox;
class QToolButton;
class QVBoxLayout;
#include "scribusapi.h"
#include "gradienteditor.h"
#include "scribusdoc.h"
#include "scrpalettebase.h"
class PageItem;
class ColorListBox;
class ScrSpinBox;
class ScComboBox;
class ScPattern;
class LinkButton;
/**
*@author Franz Schmid
*/
class SCRIBUS_API GradientVectorDialog : public ScrPaletteBase
{
Q_OBJECT
public:
GradientVectorDialog( QWidget* parent);
~GradientVectorDialog() {};
virtual void changeEvent(QEvent *e);
public slots:
void languageChange();
void setValues(double x1, double y1, double x2, double y2);
void changeSpecial();
void unitChange(int unitIndex);
signals:
void NewSpecial(double, double, double, double);
protected:
QGridLayout* freeGradientLayout;
QLabel* GTextX1;
QLabel* GTextY1;
QLabel* GTextX2;
QLabel* GTextY2;
ScrSpinBox* gY1;
ScrSpinBox* gX2;
ScrSpinBox* gX1;
ScrSpinBox* gY2;
};
class SCRIBUS_API Cpalette : public QWidget
{
Q_OBJECT
friend class PropertiesPalette;
public:
Cpalette(QWidget* parent);
~Cpalette() {};
virtual void changeEvent(QEvent *e);
void setDocument(ScribusDoc* doc);
void setCurrentItem(PageItem* item);
void updateFromItem();
public slots:
void editLineColorSelectorButton();
void editFillColorSelectorButton();
void SetColors(ColorList newColorList);
void updateCList();
void SetPatterns(QMap<QString, ScPattern> *docPatterns);
void selectPattern(QListWidgetItem *c);
void changePatternProps();
void ToggleKette();
void HChange();
void VChange();
void updatePatternList();
void updateBoxS(QString Farbe);
void selectColor(QListWidgetItem *c);
QColor setColor(QString farbe, int shad);
void slotGrad(int nr);
void slotColor(QString n, int s);
void ChooseGrad(int nr);
void setActFarben(QString p, QString b, int shp, int shb);
void setActGradient(int typ);
void setActPattern(QString pattern, double scaleX, double scaleY, double offsetX, double offsetY, double rotation);
void setSpecialGradient(double x1, double y1, double x2, double y2);
void editGradientVector();
void setActiveGradDia(bool active);
void setActShade();
void setActTrans(double, double);
void changeBlendMode(int);
void setActBlend(int, int);
void setGradTrans(double val);
void slotTrans(int val);
void unitChange(double old, double neww, int ein);
void languageChange();
void ToggleColorDisplay();
signals:
void NewPen(QString);
void NewBrush(QString);
void NewPenShade(int);
void NewBrushShade(int);
void NewGradient(int);
void NewPattern(QString);
void NewPatternProps(double, double, double, double, double);
void NewSpecial(double, double, double, double);
void NewTrans(double);
void NewTransS(double);
void NewBlend(int);
void NewBlendS(int);
void modeChanged();
void gradientChanged();
void editGradient();
protected:
QVBoxLayout* Form1Layout;
QHBoxLayout* Layout1;
QGridLayout* Layout1t;
QVBoxLayout* GradLayout;
// QGridLayout* freeGradientLayout;
QPixmap alertIcon;
QPixmap cmykIcon;
QPixmap rgbIcon;
QPixmap spotIcon;
QPixmap regIcon;
ColorListBox *colorListQLBox;
QFrame* patternFrame;
QListWidget *patternBox;
QGroupBox* groupOffset;
QLabel* textLabel1;
ScrSpinBox* spinXoffset;
QLabel* textLabel2;
ScrSpinBox* spinYoffset;
QGroupBox* groupScale;
QLabel* textLabel5;
ScrSpinBox* spinXscaling;
QLabel* textLabel6;
ScrSpinBox* spinYscaling;
LinkButton* keepScaleRatio;
QGroupBox* groupRotation;
QLabel* textLabel7;
ScrSpinBox* spinAngle;
QVBoxLayout* frame3Layout;
QHBoxLayout* groupOffsetLayout;
QGridLayout* groupScaleLayout;
QHBoxLayout* groupRotationLayout;
QToolButton *editLineColorSelector;
QToolButton *editFillColorSelector;
QSpinBox *PM1;
QComboBox* gradientQCombo;
GradientEditor* gradEdit;
GradientVectorDialog* CGradDia;
/* QFrame* freeGradientQFrame;
QLabel* GTextX1;
QLabel* GTextY1;
QLabel* GTextX2;
QLabel* GTextY2;
ScrSpinBox* gY1;
ScrSpinBox* gX2;
ScrSpinBox* gX1;
ScrSpinBox* gY2; */
QToolButton *gradEditButton;
QLabel* TransTxt;
QLabel* TransTxt2;
QLabel* ShadeTxt;
QGroupBox* TransGroup;
QSpinBox* TransSpin;
QPointer<ScribusDoc> currentDoc;
PageItem* currentItem;
ScComboBox* blendMode;
int Mode;
QString sFarbe;
ColorList colorList;
QMap<QString, ScPattern> *patternList;
bool CSichtbar;
QString Color;
int Shade;
QString Color3;
int Shade3;
bool GradientMode;
int currentGradient;
QSpacerItem *selectorQSpacer;
QCheckBox* displayAllColors;
};
#endif
|