2 #include <cad/document/document.h>
8 #include <QDoubleSpinBox>
11 #include <cad/meta/dxflinepattern.h>
12 #include <cad/operations/linepatternops.h>
18 #define SAVE_AS_NEW_TEXT "Save as new"
19 #define EDIT_TEXT "Edit"
44 AddLinePatternDialog(lc::Document_SPtr document, lc::DxfLinePatternByValue_CSPtr linePattern, QWidget* parent = 0);
77 Ui::AddLinePatternDialog*
ui;
void on_saveButton_pressed()
Save Save the line pattern in the document and close the dialog.
void onEditButtonPressed()
Edit Replace the original line pattern with the new one and close the dialog.
lc::DxfLinePatternByValue_CSPtr _linePattern
AddLinePatternDialog(lc::Document_SPtr document, QWidget *parent=0)
Create empty dialog.
void on_cancelButton_pressed()
Cancel Close the dialog.
void on_newValueButton_pressed()
Create a new entry for the pattern path.
void generatePreview()
Generate line pattern preview Create a new QPixmap with a preview of the line pattern and add it in t...
lc::DxfLinePatternByValue_CSPtr _oldLinePattern
lc::Document_SPtr _document
Create a dialog with all required fields to create a new line pattern.
Ui::AddLinePatternDialog * ui