Subversion Repositories Scribus

Rev

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