|
LibreCAD
|
Dropdown select for DxfLinePatterns. More...
#include <linepatternselect.h>


Public Slots | |
| void | onLayerChanged (lc::Layer_CSPtr layer) |
| Event when a new layer is selected. More... | |
Public Member Functions | |
| LinePatternSelect (lc::Document_SPtr document=nullptr, QWidget *parent=0, bool showByLayer=false, bool showByBlock=false) | |
| Create widget. More... | |
| LinePatternSelect (CadMdiChild *mdiChild=nullptr, QWidget *parent=0, bool showByLayer=false, bool showByBlock=false) | |
| Create widget (for drawing) More... | |
| void | setDocument (lc::Document_SPtr document=nullptr) |
| Change document. More... | |
| void | setMdiChild (CadMdiChild *mdiChild=nullptr) |
| Set the window on which line pattern is applied. More... | |
| lc::DxfLinePattern_CSPtr | linePattern () |
| Return selected line pattern. More... | |
Private Slots | |
| void | onActivated (const QString &text) |
Private Member Functions | |
| void | createEntries () |
| QIcon | generateQIcon (lc::DxfLinePatternByValue_CSPtr linePattern) |
| void | on_addLinePatternEvent (const lc::AddLinePatternEvent &) |
| void | on_removeLinePatternEvent (const lc::RemoveLinePatternEvent &) |
| void | on_replaceLinePatternEvent (const lc::ReplaceLinePatternEvent &) |
Private Attributes | |
| QSize | qIconSize |
| bool | _showByLayer |
| bool | _showByBlock |
| lc::Document_SPtr | _document |
| lc::ui::MetaInfoManager_SPtr | _metaInfoManager |
Dropdown select for DxfLinePatterns.
Definition at line 23 of file linepatternselect.h.
| LinePatternSelect::LinePatternSelect | ( | lc::Document_SPtr | document = nullptr, |
| QWidget * | parent = 0, |
||
| bool | showByLayer = false, |
||
| bool | showByBlock = false |
||
| ) |
Create widget.
| document | Document containing the line patterns |
| parent | Pointer to parent widget |
| showByLayer | Add "ByLayer" option |
| showByBlock | Add "ByBlock" option |
Definition at line 6 of file linepatternselect.cpp.
| LinePatternSelect::LinePatternSelect | ( | CadMdiChild * | mdiChild = nullptr, |
| QWidget * | parent = 0, |
||
| bool | showByLayer = false, |
||
| bool | showByBlock = false |
||
| ) |
Create widget (for drawing)
| document | Document containing the line patterns |
| parent | Pointer to parent widget |
| showByLayer | Add "ByLayer" option |
| showByBlock | Add "ByBlock" option |
Definition at line 21 of file linepatternselect.cpp.
|
private |
Definition at line 109 of file linepatternselect.cpp.
|
private |
Definition at line 78 of file linepatternselect.cpp.
| lc::DxfLinePattern_CSPtr LinePatternSelect::linePattern | ( | ) |
Return selected line pattern.
Definition at line 56 of file linepatternselect.cpp.
|
private |
Definition at line 139 of file linepatternselect.cpp.
|
private |
Definition at line 145 of file linepatternselect.cpp.
|
private |
Definition at line 149 of file linepatternselect.cpp.
|
privateslot |
Definition at line 87 of file linepatternselect.cpp.
|
slot |
Event when a new layer is selected.
| layer | New selected layer This function update the "ByLayer" preview |
Definition at line 155 of file linepatternselect.cpp.
| void LinePatternSelect::setDocument | ( | lc::Document_SPtr | document = nullptr | ) |
Change document.
| document | New document |
Definition at line 38 of file linepatternselect.cpp.
| void LinePatternSelect::setMdiChild | ( | CadMdiChild * | mdiChild = nullptr | ) |
Set the window on which line pattern is applied.
| mdiChild | or nullptr |
Definition at line 27 of file linepatternselect.cpp.
|
private |
Definition at line 88 of file linepatternselect.h.
|
private |
Definition at line 89 of file linepatternselect.h.
|
private |
Definition at line 86 of file linepatternselect.h.
|
private |
Definition at line 85 of file linepatternselect.h.
|
private |
Definition at line 83 of file linepatternselect.h.