Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

layers.h

Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef LAYERPALETTE_H
00008 #define LAYERPALETTE_H
00009 
00010 #include <QList>
00011 
00012 #include "scribusapi.h"
00013 #include "scrpalettebase.h"
00014 #include "scribusstructs.h"
00015 #include "sclayer.h"
00016 
00017 class CheckBox;
00018 class QEvent;
00019 class QHBoxLayout;
00020 class QHeaderView;
00021 class QLabel;
00022 class QPushButton;
00023 class QSpinBox;
00024 class QTableWidget;
00025 class QTableWidgetItem;
00026 class QToolButton;
00027 class QVBoxLayout;
00028 class ScComboBox;
00029 class ScribusDoc;
00030 
00031 class SCRIBUS_API LayerPalette : public ScrPaletteBase
00032 {
00033     Q_OBJECT
00034 
00035 public:
00036     LayerPalette(QWidget* parent);
00037     ~LayerPalette() {};
00038     
00039     
00040     virtual void changeEvent(QEvent *e);
00041 
00042     void setDoc(ScribusDoc* doc);
00043     void rebuildList();
00044     
00045     QTableWidget* Table;    //public for the event filter in scribus.cpp.. TODO
00046 
00047 public slots:
00048     void addLayer();
00049     void dupLayer();
00050     void removeLayer();
00051     void upLayer();
00052     void downLayer();
00053     void changeName(int row, int col);
00054     void visibleLayer();
00055     void printLayer();
00056     void lockLayer();
00057     void flowToggleLayer();
00058     void outlineToggleLayer();
00059     void markLayer();
00060     void changeOpacity();
00061     void changeBlendMode(int blend);
00062     void setActiveLayer(int row);
00063     void ClearInhalt();
00064     void markActiveLayer(int layerNumber=-1);
00065     void languageChange();
00066 
00067 signals:
00068     void LayerChanged();
00069     void LayerActivated(int);
00070 
00071 protected:
00072     ScribusDoc* m_Doc;
00073     QVBoxLayout* LayerPaletteLayout;
00074     QHBoxLayout* Layout1;
00075     QHBoxLayout* layout1;
00076     QLabel* textLabel1;
00077     ScComboBox* blendMode;
00078     QLabel* textLabel2;
00079     QSpinBox* opacitySpinBox;
00080     QHeaderView* Header;
00081     QPushButton* newLayerButton;
00082     QPushButton* duplicateLayerButton;
00083     QPushButton* deleteLayerButton;
00084     QPushButton* raiseLayerButton;
00085     QPushButton* lowerLayerButton;
00086     ScLayers *layers;
00087 };
00088 
00089 #endif // LAYERPALETTE_H
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.