Subversion Repositories Scribus

Rev

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