Subversion Repositories Scribus

Rev

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