00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef LAYERDIALOG_H
00030 #define LAYERDIALOG_H
00031
00032 #include "MultiLayer.h"
00033
00034 class QGroupBox;
00035 class QPushButton;
00036 class QSpinBox;
00037 class QCheckBox;
00038 class QComboBox;
00039
00041 class LayerDialog : public QDialog
00042 {
00043 Q_OBJECT
00044
00045 public:
00046 LayerDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
00047 void setMultiLayer(MultiLayer *g);
00048
00049 protected slots:
00050 void accept();
00051 void update();
00052 void enableLayoutOptions(bool ok);
00053 void swapLayers();
00054
00055 private:
00056 MultiLayer *multi_layer;
00057
00058 QPushButton* buttonOk;
00059 QPushButton* buttonCancel;
00060 QPushButton* buttonApply;
00061 QPushButton* buttonSwapLayers;
00062 QGroupBox *GroupCanvasSize, *GroupGrid;
00063 QSpinBox *boxX, *boxY, *boxColsGap, *boxRowsGap;
00064 QSpinBox *boxRightSpace, *boxLeftSpace, *boxTopSpace, *boxBottomSpace;
00065 QSpinBox *boxCanvasWidth, *boxCanvasHeight, *layersBox;
00066 QSpinBox *boxLayerDest, *boxLayerSrc;
00067 QCheckBox *fitBox;
00068 QComboBox *alignHorBox, *alignVertBox;
00069 };
00070
00071 #endif