List of all members |
Public Types |
Public Member Functions |
Protected Member Functions |
Protected Attributes
TechDrawGui::TemplateTextField Class Reference
QGraphicsRectItem-derived class for the text fields in title blocks. More...
#include <TemplateTextField.h>
Public Types | |
| enum | { Type = QGraphicsItem::UserType + 160 } |
Public Member Functions | |
| std::string | fieldName () const |
| Returns the field name that this TemplateTextField represents. More... | |
| TemplateTextField (QGraphicsItem *parent, TechDraw::DrawTemplate *myTmplte, const std::string &myFieldName) | |
| int | type () const |
| virtual | ~TemplateTextField ()=default |
Protected Member Functions | |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| Need this to properly handle mouse release. More... | |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| Trigger the dialog for editing template text. More... | |
Protected Attributes | |
| std::string | fieldNameStr |
| TechDraw::DrawTemplate * | tmplte |
Detailed Description
QGraphicsRectItem-derived class for the text fields in title blocks.
Makes an area on the drawing that's clickable, so appropriate Properties of the template can be modified.
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ TemplateTextField()
| TemplateTextField::TemplateTextField | ( | QGraphicsItem * | parent, |
| TechDraw::DrawTemplate * | myTmplte, | ||
| const std::string & | myFieldName | ||
| ) |
◆ ~TemplateTextField()
|
virtualdefault |
Member Function Documentation
◆ fieldName()
| std::string TechDrawGui::TemplateTextField::fieldName | ( | ) | const |
Returns the field name that this TemplateTextField represents.
◆ mousePressEvent()
|
protectedvirtual |
Need this to properly handle mouse release.
References tmplte.
◆ mouseReleaseEvent()
|
protectedvirtual |
Trigger the dialog for editing template text.
References TechDraw::DrawTemplate::EditableTexts, fieldNameStr, App::PropertyMap::setValue(), and tmplte.
◆ type()
| int TechDrawGui::TemplateTextField::type | ( | ) | const |
Member Data Documentation
◆ fieldNameStr
|
protected |
Referenced by mouseReleaseEvent().
◆ tmplte
|
protected |
Referenced by mousePressEvent(), and mouseReleaseEvent().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/TemplateTextField.h
- src/Mod/TechDraw/Gui/TemplateTextField.cpp
1.8.17