|
LibreCAD
|
Dropdown select for line widths. Line widths are hardcoded in the constructor. More...
#include <linewidthselect.h>


Public Slots | |
| void | onLayerChanged (lc::Layer_CSPtr layer) |
| Event when a new layer is selected. More... | |
Public Member Functions | |
| LineWidthSelect (lc::ui::MetaInfoManager_SPtr metaInfoManager, QWidget *parent=0, bool showByLayer=false, bool showByBlock=false) | |
| Create widget. More... | |
| void | setMetaInfoManager (lc::ui::MetaInfoManager_SPtr metaInfoManager) |
| Set the MetaInfo manager. More... | |
| lc::MetaLineWidth_CSPtr | lineWidth () |
| Return selected line width. More... | |
| void | setWidth (lc::MetaLineWidth_CSPtr lineWidth) |
| Select a new width. More... | |
Private Slots | |
| void | onActivated (const QString &text) |
Private Member Functions | |
| void | createEntries () |
| void | updateMetaInfoManager () |
Private Attributes | |
| lc::ui::MetaInfoManager_SPtr | _metaInfoManager |
| QSize | qIconSize |
| std::map< QString, double > | values |
Dropdown select for line widths. Line widths are hardcoded in the constructor.
Definition at line 19 of file linewidthselect.h.
| LineWidthSelect::LineWidthSelect | ( | lc::ui::MetaInfoManager_SPtr | metaInfoManager, |
| QWidget * | parent = 0, |
||
| bool | showByLayer = false, |
||
| bool | showByBlock = false |
||
| ) |
Create widget.
| parent | Pointer to parent widget |
| showByLayer | Add "ByLayer" option |
| showByBlock | Add "ByBlock" option |
Definition at line 7 of file linewidthselect.cpp.
|
private |
Definition at line 54 of file linewidthselect.cpp.
| lc::MetaLineWidth_CSPtr LineWidthSelect::lineWidth | ( | ) |
Return selected line width.
Definition at line 138 of file linewidthselect.cpp.
|
privateslot |
Definition at line 155 of file linewidthselect.cpp.
|
slot |
Event when a new layer is selected.
| layer | New selected layer This function update the "ByLayer" preview |
Definition at line 65 of file linewidthselect.cpp.
| void LineWidthSelect::setMetaInfoManager | ( | lc::ui::MetaInfoManager_SPtr | metaInfoManager | ) |
Set the MetaInfo manager.
| new | MetaInfoManager or nullptr |
Definition at line 107 of file linewidthselect.cpp.
| void LineWidthSelect::setWidth | ( | lc::MetaLineWidth_CSPtr | lineWidth | ) |
Select a new width.
| width | New LineWidth Does nothing if the width is not present in the values. |
Definition at line 79 of file linewidthselect.cpp.
|
private |
Definition at line 115 of file linewidthselect.cpp.
|
private |
Definition at line 67 of file linewidthselect.h.
|
private |
Definition at line 69 of file linewidthselect.h.
|
private |
Definition at line 71 of file linewidthselect.h.