/
addlayerdialog.h
42 lines (33 loc) · 1.01 KB
/
addlayerdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <QDialog>
#include <QColorDialog>
#include <QToolTip>
#include <QFormLayout>
#include "widgets/linepatternselect.h"
#include "widgets/linewidthselect.h"
#include "widgets/colorselect.h"
#include <cad/meta/layer.h>
#include <cad/meta/metalinewidth.h>
#include <cad/document/document.h>
namespace Ui {
class AddLayerDialog;
}
class AddLayerDialog : public QDialog {
Q_OBJECT
public:
AddLayerDialog(lc::Document_SPtr document, QWidget* parent = 0);
AddLayerDialog(lc::Layer_CSPtr oldLayer, lc::Document_SPtr document, QWidget* parent = 0);
~AddLayerDialog();
signals:
void newLayer(lc::Layer_CSPtr);
void editLayer(lc::Layer_CSPtr oldLayer, lc::Layer_CSPtr newLayer);
private slots:
void accept();
private:
Ui::AddLayerDialog* ui;
lc::Document_SPtr _document;
LinePatternSelect* linePatternSelect;
LineWidthSelect* lineWidthSelect;
ColorSelect* colorSelect;
lc::Layer_CSPtr _oldLayer;
};