Subversion Repositories Scribus

Rev

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

Rev Author Line No. Line
3 paul 1
#ifndef LAYERPALETTE_H
2
#define LAYERPALETTE_H
3
 
4
#include <qtable.h>
5
#include <qptrlist.h>
6
#include <qvaluelist.h>
2948 cbradney 7
#include <qcheckbox.h>
3 paul 8
 
2969 craig 9
#include "scribusapi.h"
1525 cbradney 10
#include "scrpalettebase.h"
11
 
766 cbradney 12
class QPushButton;
13
class QLayout;
14
class QToolTip;
15
class QPixmap;
16
class QHeader;
17
 
2937 cbradney 18
 
2969 craig 19
class SCRIBUS_API LayerTable : public QTable
356 Franz 20
{
21
        Q_OBJECT
22
 
23
public:
24
        LayerTable(QWidget* parent);
25
        ~LayerTable() {};
26
 
359 Franz 27
protected:
28
        virtual void endEdit ( int row, int col, bool accept, bool replace );
29
 
356 Franz 30
signals:
359 Franz 31
        void updtName(int);
356 Franz 32
};
33
 
2969 craig 34
class SCRIBUS_API LayerPalette : public ScrPaletteBase
358 Franz 35
{
36
        Q_OBJECT
3 paul 37
 
38
public:
358 Franz 39
        LayerPalette(QWidget* parent);
40
        ~LayerPalette() {};
3 paul 41
 
2937 cbradney 42
        void setLayers(QValueList<Layer> *layin, int act);
168 Franz 43
        void rebuildList();
2937 cbradney 44
 
45
        QTable* Table;  //public for the event filter in scribus.cpp.. TODO
3 paul 46
 
47
public slots:
359 Franz 48
        void updateName(int r);
168 Franz 49
        void addLayer();
50
        void removeLayer();
51
        void upLayer();
52
        void downLayer();
53
        void changeName(int row, int col);
54
        void visibleLayer();
55
        void printLayer();
56
        void setActiveLayer(int row);
57
        void ClearInhalt();
2937 cbradney 58
        void markActiveLayer(int layerNumber=-1);
2190 cbradney 59
        void languageChange();
3 paul 60
 
61
signals:
168 Franz 62
        void LayerChanged();
63
        void LayerActivated(int);
3 paul 64
 
65
protected:
358 Franz 66
        QVBoxLayout* LayerPaletteLayout;
67
        QHBoxLayout* Layout1;
2937 cbradney 68
        QHeader* Header;
69
        QPushButton* newLayerButton;
70
        QPushButton* deleteLayerButton;
71
        QPushButton* raiseLayerButton;
72
        QPushButton* lowerLayerButton;
73
        QPtrList<QCheckBox> flagsPrintable;
74
        QPtrList<QCheckBox> flagsVisible;
75
        QValueList<Layer> *layers;
3 paul 76
};
77
 
78
#endif // LAYERPALETTE_H