Subversion Repositories Scribus

Rev

Rev 11692 | Rev 13551 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 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
*/
3 paul 7
#ifndef LAYERPALETTE_H
8
#define LAYERPALETTE_H
9
 
9803 fschmid 10
#include <QList>
3 paul 11
 
2969 craig 12
#include "scribusapi.h"
1525 cbradney 13
#include "scrpalettebase.h"
8582 jghali 14
#include "scribusstructs.h"
10140 jghali 15
#include "sclayer.h"
1525 cbradney 16
 
10859 cbradney 17
class CheckBox;
18
class QEvent;
9852 fschmid 19
class QHBoxLayout;
10859 cbradney 20
class QHeaderView;
5373 fschmid 21
class QLabel;
9852 fschmid 22
class QPushButton;
10859 cbradney 23
class QSpinBox;
9852 fschmid 24
class QTableWidget;
25
class QTableWidgetItem;
10859 cbradney 26
class QToolButton;
27
class QVBoxLayout;
5375 fschmid 28
class ScComboBox;
5781 cbradney 29
class ScribusDoc;
766 cbradney 30
 
2969 craig 31
class SCRIBUS_API LayerPalette : public ScrPaletteBase
358 Franz 32
{
33
        Q_OBJECT
3 paul 34
 
35
public:
358 Franz 36
        LayerPalette(QWidget* parent);
37
        ~LayerPalette() {};
10859 cbradney 38
 
39
 
40
        virtual void changeEvent(QEvent *e);
3 paul 41
 
5781 cbradney 42
        void setDoc(ScribusDoc* doc);
168 Franz 43
        void rebuildList();
2937 cbradney 44
 
9852 fschmid 45
        QTableWidget* Table;    //public for the event filter in scribus.cpp.. TODO
3 paul 46
 
47
public slots:
168 Franz 48
        void addLayer();
6290 fschmid 49
        void dupLayer();
168 Franz 50
        void removeLayer();
51
        void upLayer();
52
        void downLayer();
53
        void changeName(int row, int col);
54
        void visibleLayer();
55
        void printLayer();
4832 fschmid 56
        void lockLayer();
5359 fschmid 57
        void flowToggleLayer();
5572 fschmid 58
        void outlineToggleLayer();
11692 fschmid 59
        void toggleAllfromHeader(int index);
5572 fschmid 60
        void markLayer();
5373 fschmid 61
        void changeOpacity();
5375 fschmid 62
        void changeBlendMode(int blend);
13023 fschmid 63
        void setActiveLayer(int row, int col);
168 Franz 64
        void ClearInhalt();
2937 cbradney 65
        void markActiveLayer(int layerNumber=-1);
2190 cbradney 66
        void languageChange();
3 paul 67
 
68
signals:
168 Franz 69
        void LayerChanged();
70
        void LayerActivated(int);
3 paul 71
 
72
protected:
5781 cbradney 73
        ScribusDoc* m_Doc;
9852 fschmid 74
        QVBoxLayout* LayerPaletteLayout;
75
        QHBoxLayout* Layout1;
76
        QHBoxLayout* layout1;
5375 fschmid 77
        QLabel* textLabel1;
78
        ScComboBox* blendMode;
5373 fschmid 79
        QLabel* textLabel2;
80
        QSpinBox* opacitySpinBox;
9852 fschmid 81
        QHeaderView* Header;
2937 cbradney 82
        QPushButton* newLayerButton;
6290 fschmid 83
        QPushButton* duplicateLayerButton;
2937 cbradney 84
        QPushButton* deleteLayerButton;
85
        QPushButton* raiseLayerButton;
86
        QPushButton* lowerLayerButton;
10140 jghali 87
        ScLayers *layers;
3 paul 88
};
89
 
90
#endif // LAYERPALETTE_H