Subversion Repositories Scribus

Rev

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