Subversion Repositories Scribus

Rev

Rev 1448 | Rev 1697 | 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>
7
 
1525 cbradney 8
#include "scrpalettebase.h"
9
 
766 cbradney 10
class QPushButton;
11
class QLayout;
12
class QToolTip;
13
class QPixmap;
14
class QCheckBox;
15
class QHeader;
16
 
356 Franz 17
class LayerTable : public QTable
18
{
19
        Q_OBJECT
20
 
21
public:
22
        LayerTable(QWidget* parent);
23
        ~LayerTable() {};
1525 cbradney 24
        //void keyPressEvent(QKeyEvent *k);
356 Franz 25
 
359 Franz 26
protected:
27
        virtual void endEdit ( int row, int col, bool accept, bool replace );
28
 
356 Franz 29
signals:
1525 cbradney 30
        //void ToggleAllPalettes();
31
        //void Schliessen();
359 Franz 32
        void updtName(int);
356 Franz 33
};
34
 
1525 cbradney 35
class LayerPalette : public ScrPaletteBase
358 Franz 36
{
37
        Q_OBJECT
3 paul 38
 
39
public:
358 Franz 40
        LayerPalette(QWidget* parent);
41
        ~LayerPalette() {};
3 paul 42
 
358 Franz 43
        QTable* Table;
168 Franz 44
        QHeader* Header;
358 Franz 45
        QPushButton* NewLayer;
46
        QPushButton* DeleteLayer;
47
        QPushButton* RaiseLayer;
48
        QPushButton* LowerLayer;
168 Franz 49
        QValueList<Layer> *layers;
1525 cbradney 50
        //void closeEvent(QCloseEvent *ce);
358 Franz 51
        void setLayers(QValueList<Layer> *layin, int *act);
168 Franz 52
        void rebuildList();
358 Franz 53
        QPtrList<QCheckBox> FlagsPrint;
54
        QPtrList<QCheckBox> FlagsSicht;
168 Franz 55
        int *Activ;
3 paul 56
 
57
public slots:
359 Franz 58
        void updateName(int r);
168 Franz 59
        void addLayer();
60
        void removeLayer();
61
        void upLayer();
62
        void downLayer();
63
        void changeName(int row, int col);
64
        void visibleLayer();
65
        void printLayer();
66
        void setActiveLayer(int row);
67
        void ClearInhalt();
68
        void MarkActiveLayer(int l);
3 paul 69
 
70
signals:
216 Franz 71
        void LayerRemoved(int, bool);
168 Franz 72
        void LayerChanged();
73
        void LayerActivated(int);
1525 cbradney 74
        //void Schliessen();
3 paul 75
 
76
protected:
358 Franz 77
        QVBoxLayout* LayerPaletteLayout;
78
        QHBoxLayout* Layout1;
1448 cbradney 79
 
80
protected slots:
1525 cbradney 81
        //virtual void reject();
3 paul 82
};
83
 
84
#endif // LAYERPALETTE_H