#ifndef LAYERPALETTE_H
#define LAYERPALETTE_H

#include <qdialog.h>
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtable.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qpixmap.h>
#include <qcheckbox.h>
#include <qheader.h>
#include <qptrlist.h>
#include <qvaluelist.h>
#include <scribusdoc.h>

class LayerPalette : public QDialog
{ 
    Q_OBJECT

public:
    LayerPalette(QWidget* parent);
    ~LayerPalette();

    QTable* Table;
		QHeader* Header;
    QPushButton* NewLayer;
    QPushButton* DeleteLayer;
    QPushButton* RaiseLayer;
    QPushButton* LowerLayer;
    QPushButton* CloseB;
		QValueList<Layer> *layers;
    void closeEvent(QCloseEvent *ce);
    void setLayers(QValueList<Layer> *layin, int *act);
		void rebuildList();
    QPtrList<QCheckBox> FlagsPrint;
    QPtrList<QCheckBox> FlagsSicht;
		int *Activ;

public slots:
		void addLayer();
		void removeLayer();
		void upLayer();
		void downLayer();
		void changeName(int row, int col);
		void visibleLayer();
		void printLayer();
		void setActiveLayer(int row);
		void ClearInhalt();
		void MarkActiveLayer(int l);
		void Verlassen();

signals:
		void LayerRemoved(int);
		void LayerChanged();
		void LayerActivated(int);
		void Schliessen();

protected:
    QVBoxLayout* LayerPaletteLayout;
    QHBoxLayout* Layout1;
};

#endif // LAYERPALETTE_H
