Rev 20491 | Rev 23354 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4430 | cbradney | 1 | /* |
2 | For general Scribus (>=1.3.2) copyright and licensing information please refer |
||
3 | to the COPYING file provided with the program. Following this notice may exist |
||
4 | a copyright and/or license notice that predates the release of Scribus 1.3.2 |
||
5 | for which a new license (GPL+exception) is in place. |
||
6 | */ |
||
3 | paul | 7 | #ifndef LAYERPALETTE_H |
8 | #define LAYERPALETTE_H |
||
9 | |||
9803 | fschmid | 10 | #include <QList> |
3 | paul | 11 | |
2969 | craig | 12 | #include "scribusapi.h" |
17017 | fschmid | 13 | #include "ui/scdockpalette.h" |
8582 | jghali | 14 | #include "scribusstructs.h" |
10140 | jghali | 15 | #include "sclayer.h" |
1525 | cbradney | 16 | |
10859 | cbradney | 17 | class CheckBox; |
18 | class QEvent; |
||
9852 | fschmid | 19 | class QHBoxLayout; |
10859 | cbradney | 20 | class QHeaderView; |
5373 | fschmid | 21 | class QLabel; |
9852 | fschmid | 22 | class QPushButton; |
23 | class QTableWidget; |
||
24 | class QTableWidgetItem; |
||
10859 | cbradney | 25 | class QToolButton; |
26 | class QVBoxLayout; |
||
5375 | fschmid | 27 | class ScComboBox; |
17420 | fschmid | 28 | class ScrSpinBox; |
5781 | cbradney | 29 | class ScribusDoc; |
766 | cbradney | 30 | |
17017 | fschmid | 31 | class SCRIBUS_API LayerPalette : public ScDockPalette |
358 | Franz | 32 | { |
33 | Q_OBJECT |
||
3 | paul | 34 | |
35 | public: |
||
358 | Franz | 36 | LayerPalette(QWidget* parent); |
37 | ~LayerPalette() {}; |
||
10859 | cbradney | 38 | |
39 | virtual void changeEvent(QEvent *e); |
||
3 | paul | 40 | |
5781 | cbradney | 41 | void setDoc(ScribusDoc* doc); |
168 | Franz | 42 | void rebuildList(); |
2937 | cbradney | 43 | |
9852 | fschmid | 44 | QTableWidget* Table; //public for the event filter in scribus.cpp.. TODO |
3 | paul | 45 | |
46 | public slots: |
||
168 | Franz | 47 | void addLayer(); |
6290 | fschmid | 48 | void dupLayer(); |
168 | Franz | 49 | void removeLayer(); |
50 | void upLayer(); |
||
51 | void downLayer(); |
||
52 | void changeName(int row, int col); |
||
53 | void visibleLayer(); |
||
54 | void printLayer(); |
||
4832 | fschmid | 55 | void lockLayer(); |
5359 | fschmid | 56 | void flowToggleLayer(); |
5572 | fschmid | 57 | void outlineToggleLayer(); |
17454 | fschmid | 58 | void selectToggleLayer(); |
11692 | fschmid | 59 | void toggleAllfromHeader(int index); |
5572 | fschmid | 60 | void markLayer(); |
5373 | fschmid | 61 | void changeOpacity(); |
5375 | fschmid | 62 | void changeBlendMode(int blend); |
13023 | fschmid | 63 | void setActiveLayer(int row, int col); |
23175 | jghali | 64 | void clearContent(); |
13875 | jghali | 65 | void markActiveLayer(int layerID=-1); |
2190 | cbradney | 66 | void languageChange(); |
3 | paul | 67 | |
68 | signals: |
||
168 | Franz | 69 | void LayerChanged(); |
70 | void LayerActivated(int); |
||
3 | paul | 71 | |
72 | protected: |
||
17017 | fschmid | 73 | QWidget* containerWidget; |
5781 | cbradney | 74 | ScribusDoc* m_Doc; |
9852 | fschmid | 75 | QVBoxLayout* LayerPaletteLayout; |
76 | QHBoxLayout* Layout1; |
||
77 | QHBoxLayout* layout1; |
||
5375 | fschmid | 78 | QLabel* textLabel1; |
79 | ScComboBox* blendMode; |
||
5373 | fschmid | 80 | QLabel* textLabel2; |
17420 | fschmid | 81 | ScrSpinBox* opacitySpinBox; |
9852 | fschmid | 82 | QHeaderView* Header; |
2937 | cbradney | 83 | QPushButton* newLayerButton; |
6290 | fschmid | 84 | QPushButton* duplicateLayerButton; |
2937 | cbradney | 85 | QPushButton* deleteLayerButton; |
86 | QPushButton* raiseLayerButton; |
||
87 | QPushButton* lowerLayerButton; |
||
10140 | jghali | 88 | ScLayers *layers; |
3 | paul | 89 | }; |
90 | |||
91 | #endif // LAYERPALETTE_H |