3 #include <cad/document/document.h>
7 #include <cad/meta/dxflinepattern.h>
13 #define BY_BLOCK "ByBlock"
14 #define BY_LAYER "ByLayer"
15 #define NEW_LP "New line pattern"
16 #define MANAGE_LP "Manage line patterns"
34 LinePatternSelect(lc::Document_SPtr document =
nullptr, QWidget* parent = 0,
bool showByLayer =
false,
35 bool showByBlock =
false);
45 bool showByBlock =
false);
51 void setDocument(lc::Document_SPtr document =
nullptr);
81 QIcon
generateQIcon(lc::DxfLinePatternByValue_CSPtr linePattern);
void on_removeLinePatternEvent(const lc::RemoveLinePatternEvent &)
void onLayerChanged(lc::Layer_CSPtr layer)
Event when a new layer is selected.
void setMdiChild(CadMdiChild *mdiChild=nullptr)
Set the window on which line pattern is applied.
void setDocument(lc::Document_SPtr document=nullptr)
Change document.
void onActivated(const QString &text)
LinePatternSelect(lc::Document_SPtr document=nullptr, QWidget *parent=0, bool showByLayer=false, bool showByBlock=false)
Create widget.
void on_replaceLinePatternEvent(const lc::ReplaceLinePatternEvent &)
lc::Document_SPtr _document
lc::ui::MetaInfoManager_SPtr _metaInfoManager
QIcon generateQIcon(lc::DxfLinePatternByValue_CSPtr linePattern)
lc::DxfLinePattern_CSPtr linePattern()
Return selected line pattern.
Dropdown select for DxfLinePatterns.
void on_addLinePatternEvent(const lc::AddLinePatternEvent &)