|
LibreCAD
|
#include <cadmdichild.h>


Public Slots | |
| void | ctxMenu (const QPoint &pos) |
Signals | |
| void | keyPressed (QKeyEvent *event) |
Public Member Functions | |
| CadMdiChild (QWidget *parent=0) | |
| ~CadMdiChild () | |
| void | newDocument () |
| Create a new document. More... | |
| bool | openFile () |
| Load existing file. More... | |
| void | setDestroyCallback (LuaIntf::LuaRef callback) |
| Give function to call when window is destroyed. More... | |
| void | keyPressEvent (QKeyEvent *event) |
| QWidget * | view () const |
| std::shared_ptr< lc::Document > | document () const |
| lc::UndoManager_SPtr | undoManager () const |
| LCViewer::SnapManager_SPtr | snapManager () const |
| lc::StorageManager_SPtr | storageManager () const |
| LCViewer::LCADViewer * | viewer () const |
| std::shared_ptr< LCViewer::Cursor > | cursor () const |
| lc::Layer_CSPtr | activeLayer () const |
| Get the selected layer. More... | |
| void | setActiveLayer (const lc::Layer_CSPtr &activeLayer) |
| lc::ui::MetaInfoManager_SPtr | metaInfoManager () const |
| Get the MetaInfo manager. More... | |
| LCViewer::TempEntities_SPtr | tempEntities () |
| Get container of temporary entities. More... | |
| std::vector < lc::entity::CADEntity_CSPtr > | selection () |
| Get selected entities. More... | |
| void | saveFile () |
| unsigned int | id () |
| Get window ID. More... | |
| void | setId (unsigned int id) |
| Set window ID. More... | |
| const LCViewer::SnapManagerImpl_SPtr & | getSnapManager () const |
Private Attributes | |
| unsigned int | _id |
| LuaIntf::LuaRef | _destroyCallback |
| std::shared_ptr< lc::Document > | _document |
| lc::UndoManagerImpl_SPtr | _undoManager |
| std::shared_ptr< LCViewer::Grid > | _grid |
| std::shared_ptr < LCViewer::GradientBackground > | _gradientBackground |
| std::shared_ptr< LCViewer::Cursor > | _cursor |
| LCViewer::SnapManagerImpl_SPtr | _snapManager |
| LCViewer::DragManager_SPtr | _dragManager |
| LCViewer::DragPoints_SPtr | _dragPoints |
| lc::StorageManager_SPtr | _storageManager |
| LCViewer::TempEntities_SPtr | _tempEntities |
| lc::Layer_CSPtr | _activeLayer |
| lc::ui::MetaInfoManager_SPtr | _metaInfoManager |
| QScrollBar * | horizontalScrollBar |
| QScrollBar * | verticalScrollBar |
| LCViewer::LCADViewer * | _viewer |
Definition at line 34 of file cadmdichild.h.
|
explicit |
Definition at line 17 of file cadmdichild.cpp.
| CadMdiChild::~CadMdiChild | ( | ) |
Definition at line 67 of file cadmdichild.cpp.
| lc::Layer_CSPtr CadMdiChild::activeLayer | ( | ) | const |
|
slot |
Definition at line 180 of file cadmdichild.cpp.
| std::shared_ptr< LCViewer::Cursor > CadMdiChild::cursor | ( | ) | const |
Definition at line 201 of file cadmdichild.cpp.
| std::shared_ptr< lc::Document > CadMdiChild::document | ( | ) | const |
Definition at line 190 of file cadmdichild.cpp.
| const SnapManagerImpl_SPtr & CadMdiChild::getSnapManager | ( | ) | const |
Definition at line 241 of file cadmdichild.cpp.
| unsigned int CadMdiChild::id | ( | ) |
Get window ID.
Definition at line 205 of file cadmdichild.cpp.
|
signal |
| void CadMdiChild::keyPressEvent | ( | QKeyEvent * | event | ) |
Definition at line 216 of file cadmdichild.cpp.
| lc::ui::MetaInfoManager_SPtr CadMdiChild::metaInfoManager | ( | ) | const |
Get the MetaInfo manager.
Definition at line 237 of file cadmdichild.cpp.
| void CadMdiChild::newDocument | ( | ) |
Create a new document.
Definition at line 74 of file cadmdichild.cpp.
| bool CadMdiChild::openFile | ( | ) |
Load existing file.
| path | Path to file |
Definition at line 117 of file cadmdichild.cpp.
| void CadMdiChild::saveFile | ( | ) |
Definition at line 143 of file cadmdichild.cpp.
| std::vector< lc::entity::CADEntity_CSPtr > CadMdiChild::selection | ( | ) |
Get selected entities.
Definition at line 225 of file cadmdichild.cpp.
| void CadMdiChild::setActiveLayer | ( | const lc::Layer_CSPtr & | activeLayer | ) |
Definition at line 233 of file cadmdichild.cpp.
| void CadMdiChild::setDestroyCallback | ( | LuaIntf::LuaRef | callback | ) |
Give function to call when window is destroyed.
| callback | Lua function |
Definition at line 212 of file cadmdichild.cpp.
| void CadMdiChild::setId | ( | unsigned int | id | ) |
Set window ID.
| id | Window ID This is used by Lua to distinguish the different windows. This function should not be used. |
Definition at line 208 of file cadmdichild.cpp.
| SnapManager_SPtr CadMdiChild::snapManager | ( | ) | const |
Definition at line 186 of file cadmdichild.cpp.
| lc::StorageManager_SPtr CadMdiChild::storageManager | ( | ) | const |
Definition at line 194 of file cadmdichild.cpp.
| LCViewer::TempEntities_SPtr CadMdiChild::tempEntities | ( | ) |
Get container of temporary entities.
Definition at line 221 of file cadmdichild.cpp.
| lc::UndoManager_SPtr CadMdiChild::undoManager | ( | ) | const |
Definition at line 197 of file cadmdichild.cpp.
| QWidget* CadMdiChild::view | ( | ) | const |
|
inline |
Definition at line 73 of file cadmdichild.h.
|
private |
Definition at line 140 of file cadmdichild.h.
|
private |
Definition at line 132 of file cadmdichild.h.
|
private |
Definition at line 125 of file cadmdichild.h.
|
private |
Definition at line 127 of file cadmdichild.h.
|
private |
Definition at line 135 of file cadmdichild.h.
|
private |
Definition at line 136 of file cadmdichild.h.
|
private |
Definition at line 131 of file cadmdichild.h.
|
private |
Definition at line 130 of file cadmdichild.h.
|
private |
Definition at line 123 of file cadmdichild.h.
|
private |
Definition at line 141 of file cadmdichild.h.
|
private |
Definition at line 133 of file cadmdichild.h.
|
private |
Definition at line 137 of file cadmdichild.h.
|
private |
Definition at line 138 of file cadmdichild.h.
|
private |
Definition at line 128 of file cadmdichild.h.
|
private |
Definition at line 146 of file cadmdichild.h.
|
private |
Definition at line 143 of file cadmdichild.h.
|
private |
Definition at line 144 of file cadmdichild.h.