/usr/include/scribus/propertiespalette.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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 | /*
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.
*/
#ifndef MPALETTE_H
#define MPALETTE_H
#include <QListWidgetItem>
#include <QLineEdit>
class QButtonGroup;
class QCheckBox;
class QCloseEvent;
class QComboBox;
class QEvent;
class QEvent;
class QFocusEvent;
class QFrame;
class QGridLayout;
class QGroupBox;
class QHBoxLayout;
class QLabel;
class QMenu;
class QPushButton;
class QRadioButton;
class QSpinBox;
class QStackedWidget;
class QStackedWidget;
class QToolBox;
class QVBoxLayout;
class QWidget;
#include "scribusapi.h"
#include "scrpalettebase.h"
#include "scrspinbox.h"
#include "pageitem.h"
#include "page.h"
#include "linkbutton.h"
#include "linecombo.h"
#include "spalette.h"
#include "fontcombo.h"
#include "colorcombo.h"
#include "alignselect.h"
#include "shadebutton.h"
#include "sclistboxpixmap.h"
#include "scguardedptr.h"
#include "sctreewidget.h"
class StyleSelect;
class ScribusDoc;
class Cpalette;
class Autoforms;
class ArrowChooser;
class ScComboBox;
class ScribusMainWindow;
class UserActionSniffer;
class DashEditor;
class Selection;
class BasePointWidget;
struct SCRIBUS_API LineFormatValue
{
multiLine m_Line;
ScGuardedPtr<ScribusDoc> m_doc;
QString m_name;
LineFormatValue();
LineFormatValue( const multiLine& line, ScribusDoc* doc, const QString name );
LineFormatValue(const LineFormatValue& other);
LineFormatValue& operator= (const LineFormatValue& other);
};
Q_DECLARE_METATYPE(LineFormatValue);
class SCRIBUS_API LineFormatItem : public QListWidgetItem
{
enum {
LineFormatUserType = UserType + 2
} usrtyp;
public:
LineFormatItem( ScribusDoc* doc, const multiLine& line, const QString& name ) : QListWidgetItem(NULL, LineFormatUserType)
{
setText(name);
setData(Qt::UserRole, QVariant::fromValue(LineFormatValue(line, doc, name)));
};
LineFormatItem( ) : QListWidgetItem(NULL, LineFormatUserType)
{
setText("");
setData(Qt::UserRole, QVariant::fromValue(LineFormatValue()));
};
LineFormatItem * clone () const { return new LineFormatItem(*this); }
};
class SCRIBUS_API LineFormatItemDelegate : public ScListBoxPixmap<37, 37>
{
public:
LineFormatItemDelegate() : ScListBoxPixmap<37, 37>() {}
virtual int rtti() const { return 148523874; }
virtual QString text(const QVariant&) const;
virtual void redraw(const QVariant&) const;
};
class SCRIBUS_API NameWidget : public QLineEdit
{
Q_OBJECT
public:
NameWidget(QWidget* parent);
~NameWidget() {};
signals:
void Leaved();
protected:
virtual void focusOutEvent(QFocusEvent *);
};
class SCRIBUS_API PropertiesPalette : public ScrPaletteBase
{
Q_OBJECT
public:
PropertiesPalette(QWidget* parent);
~PropertiesPalette() {};
virtual void changeEvent(QEvent *e);
virtual void closeEvent(QCloseEvent *closeEvent);
void updateColorSpecialGradient();
const VGradient getFillGradient();
void updateColorList();
void setGradientEditMode(bool);
void updateCmsList();
void setTextFlowMode(PageItem::TextFlowMode mode);
void ShowCMS();
/*! \brief fills the langs combobox in language specific order
\author 10/07/2004 - Petr Vanek - rewritten to fix #1185.
Uses sortQStringList from utils.cpp - STL!
\param langMap a structure with languages/hyphs*/
void fillLangCombo(QMap<QString,QString> langMap);
/** @brief Returns true if there is a user action going on at the moment of call. */
bool userActionOn(); // not yet implemented!!! This is needed badly.
// When user releases the mouse button or arrow key, changes must be checked
// and if in ScribusView a groupTransaction has been started it must be also
// commmited
Cpalette *Cpal;
Autoforms* SCustom;
Autoforms* SCustom2;
ParaStyleComboBox *paraStyleCombo;
CharStyleComboBox *charStyleCombo;
FontComboH* Fonts;
ArrowChooser* startArrow;
ArrowChooser* endArrow;
BasePointWidget* RotationGroup;
/* QRadioButton* TopLeft;
QRadioButton* TopRight;
QRadioButton* Center;
QRadioButton* BottomLeft;
QRadioButton* BottomRight; */
QGroupBox* textFlowOptions;
QGroupBox* textFlowOptions2;
QButtonGroup* textFlowOptionsB;
QButtonGroup* textFlowOptionsB2;
DashEditor* dashEditor;
public slots:
void setMainWindow(ScribusMainWindow *mw);
void languageChange();
void setDoc(ScribusDoc *d);
void unsetDoc();
void unsetItem();
// void setCurrentItem(PageItem *);
void setMultipleSelection(bool);
void NewSel(int nr);
void SetCurItem(PageItem *i);
void unitChange();
void setLevel(uint l);
void setXY(double x, double y);
void setBH(double x, double y);
void setR(double r);
void setRR(double r);
void setCols(int r, double g);
// void setLspMode(QAction *);
void setLineSpacingMode(int id);
void setLsp(double r);
void setupLineSpacingSpinbox(int mode, double value);
void setSize(double s);
void setFontFace(const QString&);
void setExtra(double e);
void setTextToFrameDistances(double left, double top, double bottom, double right);
void ChangeScaling();
void setScaleAndOffset(double scx, double scy, double x, double y);
void setLineWidth(double s);
void setLIvalue(Qt::PenStyle p, Qt::PenCapStyle pc, Qt::PenJoinStyle pj);
void setFlop(FirstLineOffsetPolicy);
/// update TB values:
void updateStyle(const ParagraphStyle& newCurrent);
void setStil(int s);
void setAli(int e);
void setParStyle(const QString& name);
void setCharStyle(const QString& name);
void setOpticalMargins();
void resetOpticalMargins();
void updateOpticalMargins(const ParagraphStyle& pStyle);
void setMinWordTracking();
void setNormWordTracking();
void setMinGlyphExtension();
void setMaxGlyphExtension();
void setShadowOffs(double x, double y);
void setUnderline(double p, double w);
void newUnderline();
void setStrike(double p, double w);
void newStrike();
void setOutlineW(double x);
void newOutlineW();
void setTScale(double e);
void NewTScale();
void NewTScaleV();
void NewTBase();
void setTScaleV(double e);
void setTBase(double e);
void SetLineFormats(ScribusDoc *dd);
void SetSTline(QListWidgetItem *c);
void NewTFont(QString);
void newTxtFill();
void newTxtStroke();
void setActShade();
void setActFarben(QString p, QString b, double shp, double shb);
void ManageTabs();
void setLocked(bool);
void setSizeLocked(bool);
void setPrintingEnabled(bool);
void setFlippedH(bool);
void setFlippedV(bool);
void endEdit2();
private slots:
void SelTab(int t);
void NewX();
void NewY();
void NewW();
void NewH();
void setRotation();
void NewCornerRadius();
void NewLineSpacing();
void HandleGapSwitch();
void NewCols();
void NewGap();
void NewSize();
void NewTracking();
void handleFlipH();
void handleFlipV();
void NewPage();
void ToggleKette();
void HChange();
void VChange();
void ToggleKetteD();
void HChangeD();
void VChangeD();
void NewLocalXY();
void NewLocalSC();
void NewLocalDpi();
void NewLineWidth();
void NewLineStyle();
void NewLineJoin();
void NewLineEnd();
void NewLineMode();
void NewAlignment(int a);
void setTypeStyle(int s);
void newShadowOffs();
void DoLower();
void DoRaise();
void DoFront();
void DoBack();
void NewRotMode(int m);
void DoFlow();
void MakeIrre(int f, int c, qreal *vals);
void NewTDist();
void NewSpGradient(double x1, double y1, double x2, double y2);
void toggleGradientEdit();
void DoRevert();
void doClearCStyle();
void doClearPStyle();
void handleShapeEdit();
void handleShapeEdit2();
void handleImageEffects();
void handleExtImgProperties();
void handleLock();
void handleLockSize();
void handlePrint();
void handlePathType();
void handlePathFlip();
void handlePathLine();
void handlePathDist();
void handlePathOffs();
void handleFillRule();
void handleOverprint();
void ChangeProfile(const QString& prn);
void ChangeIntent();
void NewName();
void NewLanguage();
void HandleTLines();
void setStartArrow(int id);
void setEndArrow(int id);
void setGroupTransparency(int trans);
void setGroupBlending(int blend);
void doGrouping();
void dashChange();
void flop(int);
protected slots:
//virtual void reject();
void spinboxStartUserAction();
void spinboxFinishUserAction();
void updateSpinBoxConstants();
signals:
void DocChanged();
void NewEffects(int);
void NewFont(const QString&);
void UpdtGui(int);
protected:
ScribusMainWindow *m_ScMW;
QVBoxLayout* MpalLayout;
QVBoxLayout* pageLayout;
QVBoxLayout* pageLayout_2;
// QVBoxLayout* pageLayout_2a;
// QVBoxLayout* pageLayout_2b;
QVBoxLayout* pageLayout_2c;
QVBoxLayout* pageLayout_3;
QVBoxLayout* pageLayout_4;
QVBoxLayout* pageLayout_5;
QVBoxLayout* pageLayout_5a;
QVBoxLayout* pageLayout_5b;
QVBoxLayout* pageLayout_6;
QVBoxLayout* OverPLayout;
QVBoxLayout* TLineLayout;
QHBoxLayout* layout60;
QGridLayout* Layout44;
QHBoxLayout* Layout13;
// QGridLayout* Layout12;
QHBoxLayout* layout47;
QVBoxLayout* layout46;
QGridLayout* layout41;
QGridLayout* layout41a;
QGridLayout* layout41c;
QHBoxLayout* Layout1;
QHBoxLayout* Layout1AL;
QGridLayout* layout43;
QVBoxLayout* Layout24;
QHBoxLayout* Layout18;
QGridLayout* Layout12_2;
QGridLayout* imagePageNumberSelector;
QHBoxLayout* NameGroupLayout;
QGridLayout* GeoGroupLayout;
QGridLayout* LayerGroupLayout;
QHBoxLayout* ShapeGroupLayout;
QGridLayout* DistanceLayout;
QGridLayout* DistanceLayout2;
QVBoxLayout* DistanceLayout3;
QGridLayout* GroupBox3aLayout;
QVBoxLayout* GroupBoxCMLayout;
QVBoxLayout* textFlowOptionsLayout;
QVBoxLayout* textFlowOptionsLayout2;
QHBoxLayout* layout23;
QHBoxLayout* layout24;
QVBoxLayout* page_group_layout;
QHBoxLayout* ShapeGroupLayout2;
QGridLayout* Layout1t;
QHBoxLayout* wordTrackingHLayout;
QHBoxLayout* glyphExtensionHLayout;
QGridLayout* flopLayout;
QVBoxLayout* OptMarginsLayout;
NameWidget* NameEdit;
QWidget* page;
QWidget* page_2;
QWidget* page_2a;
// QWidget* page_2b;
QWidget* page_2c;
QWidget* page_3;
QWidget* page_4;
QWidget* page_5;
QWidget* page_5a;
QWidget* page_5b;
QWidget* page_6;
QWidget* page_group;
QLabel* xposLabel;
QLabel* widthLabel;
QLabel* yposLabel;
QLabel* heightLabel;
QLabel* rotationLabel;
QLabel* basepointLabel;
QLabel* LevelTxt;
QLabel* SRect;
QLabel* SRect2;
QLabel* rndcornersLabel;
QLabel* startoffsetLabel;
QLabel* distfromcurveLabel;
QLabel* pathTextTypeLabel;
QLabel* topLabel;
QLabel* columnsLabel;
QLabel* bottomLabel;
QLabel* leftLabel;
QLabel* rightLabel;
QLabel* trackingLabel;
QLabel* fontsizeLabel;
QLabel* lineSpacingLabel;
QLabel* yscaleLabel;
QLabel* xscaleLabel;
QLabel* xposImgLabel;
QLabel* yposImgLabel;
QLabel* linewidthLabel;
QLabel* endingsLabel;
QLabel* linetypeLabel;
QLabel* StrokeIcon;
QLabel* ShadeTxt2;
QLabel* ShadeTxt1;
QLabel* FillIcon;
QLabel* paraStyleLabel;
QLabel* charStyleLabel;
QLabel* langLabel;
QLabel* LineModeT;
QLabel* TextCms1;
QLabel* TextCms2;
QLabel* edgesLabel;
QLabel* ChBaseTxt;
QLabel* ScaleTxt;
QLabel* ScaleTxtV;
QLabel* imagePageNumberLabel;
QLabel* imgDPIXLabel;
QLabel* imgDPIYLabel;
QLabel* startArrowText;
QLabel* endArrowText;
QLabel* TransTxt;
QLabel* TransTxt2;
QLabel* wordTrackingLabel;
QLabel* minWordTrackingLabel;
QLabel* normWordTrackingLabel;
QLabel* glyphExtensionLabel;
QLabel* minGlyphExtensionLabel;
QLabel* maxGlyphExtensionLabel;
// LabelButton* colgapLabel;
ScComboBox* colgapLabel;
StyleSelect* SeStyle;
AlignSelect* GroupAlign;
LinkButton* keepImageWHRatioButton;
LinkButton* keepFrameWHRatioButton;
LinkButton* keepImageDPIRatioButton;
LineCombo* LStyle;
ShadeButton *PM1;
ShadeButton *PM2;
PageItem *CurItem;
bool HaveDoc;
bool HaveItem;
ScribusDoc *doc;
double m_unitRatio;
int m_unitIndex;
bool LMode;
double RoVal;
QGroupBox* ShapeGroup;
QGroupBox* ShapeGroup2;
QGroupBox* Distance3;
QGroupBox* OverP;
QToolButton* TabsButton;
QToolButton* Zup;
QToolButton* ZDown;
QToolButton* ZTop;
QToolButton* ZBottom;
QToolBox* TabStack;
QStackedWidget* TabStack2;
QStackedWidget* TabStack3;
QGroupBox* NameGroup;
QGroupBox* GeoGroup;
QGroupBox* LayerGroup;
QFrame* GroupBoxCM;
QGroupBox* TLines;
QGroupBox* GroupBox3a;
QGroupBox* TransGroup;
QToolButton* textFlowDisabled;
QToolButton* textFlowUsesFrameShape;
QToolButton* textFlowUsesBoundingBox;
QToolButton* textFlowUsesContourLine;
QToolButton* textFlowUsesImageClipping;
QToolButton* textFlowDisabled2;
QToolButton* textFlowUsesFrameShape2;
QToolButton* textFlowUsesBoundingBox2;
QToolButton* textFlowUsesContourLine2;
QToolButton* textFlowUsesImageClipping2;
QCheckBox* Aspect;
QCheckBox* flippedPathText;
QCheckBox* showcurveCheckBox;
QCheckBox* TopLine;
QCheckBox* LeftLine;
QCheckBox* RightLine;
QCheckBox* BottomLine;
ScComboBox* pathTextType;
QComboBox* langCombo;
QComboBox* InputP;
QComboBox* MonitorI;
QComboBox* LineMode;
QComboBox* lineSpacingModeCombo;
ColorCombo* TxStroke;
QComboBox* LJoinStyle;
QComboBox* LEndStyle;
ColorCombo* TxFill;
ScComboBox* blendMode;
// QComboBox *optMarginCombo;
QRadioButton *optMarginRadioNone;
QRadioButton *optMarginRadioBoth;
QRadioButton *optMarginRadioLeft;
QRadioButton *optMarginRadioRight;
QPushButton *optMarginResetButton;
QListWidget* StyledLine;
ScrSpinBox* Width;
ScrSpinBox* Xpos;
ScrSpinBox* Ypos;
ScrSpinBox* Height;
ScrSpinBox* Rotation;
ScrSpinBox* RoundRect;
ScrSpinBox* dGap;
ScrSpinBox* DTop;
ScrSpinBox* DBottom;
ScrSpinBox* DLeft;
ScrSpinBox* DRight;
ScrSpinBox* Dist;
ScrSpinBox* LineW;
ScrSpinBox* Size;
ScrSpinBox* LineSp;
ScrSpinBox* Extra;
ScrSpinBox* imageYOffsetSpinBox;
ScrSpinBox* imageXOffsetSpinBox;
ScrSpinBox* imageYScaleSpinBox;
ScrSpinBox* imageXScaleSpinBox;
ScrSpinBox* imgDpiX;
ScrSpinBox* imgDpiY;
ScrSpinBox* LSize;
ScrSpinBox* ChScale;
ScrSpinBox* ChScaleV;
ScrSpinBox* ChBase;
ScrSpinBox* minWordTrackingSpinBox;
ScrSpinBox* normWordTrackingSpinBox;
ScrSpinBox* minGlyphExtSpinBox;
ScrSpinBox* maxGlyphExtSpinBox;
QSpinBox* imagePageNumber;
QSpinBox* DCol;
QSpinBox* TransSpin;
QRadioButton* FreeScale;
QRadioButton* FrameScale;
QRadioButton* EvenOdd;
QRadioButton* NonZero;
QRadioButton* KnockOut;
QRadioButton* Overprint;
QRadioButton* flopRealHeight;
QRadioButton* flopFontAscent;
QRadioButton* flopLineSpacing;
QButtonGroup* flopGroup;
// QFrame* Line1;
// QFrame* Line2;
// QFrame* Line4;
// QFrame* Line5;
QFrame* Frame4;
QMenu* lineSpacingPop;
// QToolButton* linespacingButton;
QToolButton* DoGroup;
QToolButton* DoUnGroup;
QToolButton* FlipH;
QToolButton* FlipV;
QToolButton* Locked;
QToolButton* NoPrint;
QToolButton* NoResize;
QToolButton* Revert;
QToolButton* charStyleClear;
QToolButton* paraStyleClear;
QToolButton* EditShape;
QToolButton* EditShape2;
QToolButton* EditEffects;
QToolButton* EditPSDProps;
ScTreeWidget* TextTree;
QFrame* colorWidgets;
QTreeWidgetItem* colorWidgetsItem;
QFrame* advancedWidgets;
QTreeWidgetItem* advancedWidgetsItem;
QFrame* styleWidgets;
QTreeWidgetItem* styleWidgetsItem;
QFrame* flopBox;
QTreeWidgetItem* flopItem;
QFrame* Distance;
QTreeWidgetItem* DistanceItem;
QFrame* Distance2;
QTreeWidgetItem* Distance2Item;
QFrame* OptMargins;
QTreeWidgetItem* OptMarginsItem;
bool _userActionOn;
UserActionSniffer *userActionSniffer;
void installSniffer(ScrSpinBox *spinBox);
int idXYZItem;
int idShapeItem;
int idTextItem;
int idImageItem;
int idLineItem;
int idColorsItem;
int idGroupItem;
Selection* tmpSelection;
};
class SCRIBUS_API UserActionSniffer : public QObject
{
Q_OBJECT
public:
UserActionSniffer( QObject* parent );
protected:
bool eventFilter( QObject *o, QEvent *e );
signals:
void actionStart();
void actionEnd();
};
#endif
|