Subversion Repositories Scribus

Rev

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