Subversion Repositories Scribus

Rev

Rev 5375 | Rev 5583 | 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
 
10
#include <qtable.h>
11
#include <qptrlist.h>
12
#include <qvaluelist.h>
2948 cbradney 13
#include <qcheckbox.h>
3 paul 14
 
2969 craig 15
#include "scribusapi.h"
1525 cbradney 16
#include "scrpalettebase.h"
17
 
766 cbradney 18
class QPushButton;
19
class QLayout;
20
class QToolTip;
21
class QPixmap;
22
class QHeader;
5373 fschmid 23
class QSpinBox;
24
class QLabel;
5375 fschmid 25
class ScComboBox;
766 cbradney 26
 
2937 cbradney 27
 
2969 craig 28
class SCRIBUS_API LayerTable : public QTable
356 Franz 29
{
30
        Q_OBJECT
31
 
32
public:
33
        LayerTable(QWidget* parent);
34
        ~LayerTable() {};
35
 
359 Franz 36
protected:
37
        virtual void endEdit ( int row, int col, bool accept, bool replace );
38
 
356 Franz 39
signals:
359 Franz 40
        void updtName(int);
356 Franz 41
};
42
 
2969 craig 43
class SCRIBUS_API LayerPalette : public ScrPaletteBase
358 Franz 44
{
45
        Q_OBJECT
3 paul 46
 
47
public:
358 Franz 48
        LayerPalette(QWidget* parent);
49
        ~LayerPalette() {};
3 paul 50
 
2937 cbradney 51
        void setLayers(QValueList<Layer> *layin, int act);
168 Franz 52
        void rebuildList();
2937 cbradney 53
 
54
        QTable* Table;  //public for the event filter in scribus.cpp.. TODO
3 paul 55
 
56
public slots:
359 Franz 57
        void updateName(int r);
168 Franz 58
        void addLayer();
59
        void removeLayer();
60
        void upLayer();
61
        void downLayer();
62
        void changeName(int row, int col);
63
        void visibleLayer();
64
        void printLayer();
4832 fschmid 65
        void lockLayer();
5359 fschmid 66
        void flowToggleLayer();
5572 fschmid 67
        void outlineToggleLayer();
68
        void markLayer();
5373 fschmid 69
        void changeOpacity();
5375 fschmid 70
        void changeBlendMode(int blend);
168 Franz 71
        void setActiveLayer(int row);
72
        void ClearInhalt();
2937 cbradney 73
        void markActiveLayer(int layerNumber=-1);
2190 cbradney 74
        void languageChange();
3 paul 75
 
76
signals:
168 Franz 77
        void LayerChanged();
78
        void LayerActivated(int);
3 paul 79
 
80
protected:
358 Franz 81
        QVBoxLayout* LayerPaletteLayout;
82
        QHBoxLayout* Layout1;
5373 fschmid 83
        QHBoxLayout* layout1;
5375 fschmid 84
        QLabel* textLabel1;
85
        ScComboBox* blendMode;
5373 fschmid 86
        QLabel* textLabel2;
87
        QSpinBox* opacitySpinBox;
2937 cbradney 88
        QHeader* Header;
89
        QPushButton* newLayerButton;
90
        QPushButton* deleteLayerButton;
91
        QPushButton* raiseLayerButton;
92
        QPushButton* lowerLayerButton;
93
        QPtrList<QCheckBox> flagsPrintable;
94
        QPtrList<QCheckBox> flagsVisible;
4832 fschmid 95
        QPtrList<QCheckBox> flagsLocked;
5359 fschmid 96
        QPtrList<QCheckBox> flagsFlow;
5572 fschmid 97
        QPtrList<QCheckBox> flagsOutline;
98
        QPtrList<QPushButton> flagsMarker;
2937 cbradney 99
        QValueList<Layer> *layers;
3 paul 100
};
101
 
102
#endif // LAYERPALETTE_H