|
LibreCAD
|
Create a new window which shows a list of line patterns. More...
#include <linepatternmanager.h>


Public Member Functions | |
| LinePatternManager (lc::Document_SPtr document, QWidget *parent=0) | |
| Create window. More... | |
| ~LinePatternManager () | |
| void | setDocument (lc::Document_SPtr document) |
| Set a new document and update the list of line patterns. Document can be set to nullptr to clear the list. More... | |
Private Slots | |
| void | on_editButton_pressed () |
| Create update dialog. This function is called when "Edit" button is pressed. It create a new dialog pre-filled with the line pattern information. More... | |
| void | on_newButton_pressed () |
| Create new line pattern dialog. It create a new dialog to create a line pattern. This function is called when "New" button is pressed. More... | |
| void | on_lpView_doubleClicked (const QModelIndex &index) |
| Create update dialog. It create a new dialog pre-filled with the line pattern information. This function is called when an element of the list is double clicked. More... | |
Private Member Functions | |
| void | updateModel () |
| Refresh line patterns list. More... | |
| void | on_addLinePatternEvent (const lc::AddLinePatternEvent &) |
| void | on_removeLinePatternEvent (const lc::RemoveLinePatternEvent &) |
| void | on_replaceLinePatternEvent (const lc::ReplaceLinePatternEvent &) |
Private Attributes | |
| Ui::LinePatternManager * | ui |
| lc::Document_SPtr | _document |
| LinePatternModel * | _model |
Create a new window which shows a list of line patterns.
Definition at line 17 of file linepatternmanager.h.
| LinePatternManager::LinePatternManager | ( | lc::Document_SPtr | document, |
| QWidget * | parent = 0 |
||
| ) |
Create window.
| document | Document which contains the DXFLinePatterns |
| parent | Parent widget |
Definition at line 4 of file linepatternmanager.cpp.
| LinePatternManager::~LinePatternManager | ( | ) |
Definition at line 20 of file linepatternmanager.cpp.
|
private |
Definition at line 82 of file linepatternmanager.cpp.
|
privateslot |
Create update dialog. This function is called when "Edit" button is pressed. It create a new dialog pre-filled with the line pattern information.
Definition at line 43 of file linepatternmanager.cpp.
|
privateslot |
Create update dialog. It create a new dialog pre-filled with the line pattern information. This function is called when an element of the list is double clicked.
Definition at line 64 of file linepatternmanager.cpp.
|
privateslot |
Create new line pattern dialog. It create a new dialog to create a line pattern. This function is called when "New" button is pressed.
Definition at line 59 of file linepatternmanager.cpp.
|
private |
Definition at line 86 of file linepatternmanager.cpp.
|
private |
Definition at line 90 of file linepatternmanager.cpp.
| void LinePatternManager::setDocument | ( | lc::Document_SPtr | document | ) |
Set a new document and update the list of line patterns. Document can be set to nullptr to clear the list.
| document | Document or nullptr |
Definition at line 25 of file linepatternmanager.cpp.
|
private |
Refresh line patterns list.
Definition at line 78 of file linepatternmanager.cpp.
|
private |
Definition at line 64 of file linepatternmanager.h.
|
private |
Definition at line 65 of file linepatternmanager.h.
|
private |
Definition at line 63 of file linepatternmanager.h.