blob: f131f887bc7566096700ce731ada1bd26dc854f9 (
plain)
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
|
/*
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 LAYERPALETTE_H
#define LAYERPALETTE_H
#include <QList>
#include "scribusapi.h"
#include "scrpalettebase.h"
#include "scribusstructs.h"
#include "sclayer.h"
class CheckBox;
class QEvent;
class QHBoxLayout;
class QHeaderView;
class QLabel;
class QPushButton;
class QSpinBox;
class QTableWidget;
class QTableWidgetItem;
class QToolButton;
class QVBoxLayout;
class ScComboBox;
class ScribusDoc;
class SCRIBUS_API LayerPalette : public ScrPaletteBase
{
Q_OBJECT
public:
LayerPalette(QWidget* parent);
~LayerPalette() {};
virtual void changeEvent(QEvent *e);
void setDoc(ScribusDoc* doc);
void rebuildList();
QTableWidget* Table; //public for the event filter in scribus.cpp.. TODO
public slots:
void addLayer();
void dupLayer();
void removeLayer();
void upLayer();
void downLayer();
void changeName(int row, int col);
void visibleLayer();
void printLayer();
void lockLayer();
void flowToggleLayer();
void outlineToggleLayer();
void toggleAllfromHeader(int index);
void markLayer();
void changeOpacity();
void changeBlendMode(int blend);
void setActiveLayer(int row, int col);
void ClearInhalt();
void markActiveLayer(int layerNumber=-1);
void languageChange();
signals:
void LayerChanged();
void LayerActivated(int);
protected:
ScribusDoc* m_Doc;
QVBoxLayout* LayerPaletteLayout;
QHBoxLayout* Layout1;
QHBoxLayout* layout1;
QLabel* textLabel1;
ScComboBox* blendMode;
QLabel* textLabel2;
QSpinBox* opacitySpinBox;
QHeaderView* Header;
QPushButton* newLayerButton;
QPushButton* duplicateLayerButton;
QPushButton* deleteLayerButton;
QPushButton* raiseLayerButton;
QPushButton* lowerLayerButton;
ScLayers *layers;
};
#endif // LAYERPALETTE_H
|