Subversion Repositories Scribus

Rev

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