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 |
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.
TemplateTextField::TemplateTextField | ( | QGraphicsItem * | parent, |
TechDraw::DrawTemplate * | myTmplte, | ||
const std::string & | myFieldName | ||
) |
|
virtualdefault |
std::string TechDrawGui::TemplateTextField::fieldName | ( | ) | const |
Returns the field name that this TemplateTextField represents.
|
protectedvirtual |
Need this to properly handle mouse release.
References tmplte.
|
protectedvirtual |
Trigger the dialog for editing template text.
References TechDraw::DrawTemplate::EditableTexts, fieldNameStr, TechDrawGui::DlgTemplateField::getFieldContent(), TechDrawGui::DlgTemplateField::setFieldContent(), TechDrawGui::DlgTemplateField::setFieldName(), App::PropertyMap::setValue(), and tmplte.
int TechDrawGui::TemplateTextField::type | ( | void | ) | const |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().
|
protected |
Referenced by mouseReleaseEvent().
|
protected |
Referenced by mousePressEvent(), and mouseReleaseEvent().