QElectroTech
0.70
|
#include <elementtextpattern.h>
Public Member Functions | |
ImportElementTextPattern (Element *elmt) | |
Private Member Functions | |
QString | getName (const QStringList &list, bool *ok, bool *erase) const |
ImportElementTextPattern::getName Open a dialog to let user select a conf. More... | |
QWidget * | parentWidget () const |
void | apply (QString name, bool erase=false) const |
ImportElementTextPattern::apply Apply the user choice. More... | |
Private Attributes | |
Element * | m_element = nullptr |
Definition at line 42 of file elementtextpattern.h.
ImportElementTextPattern::ImportElementTextPattern | ( | Element * | elmt | ) |
Definition at line 127 of file elementtextpattern.cpp.
References apply(), QETApp::configDir(), getName(), QET::QetMessageBox::information(), parentWidget(), and QET::Icons::tr.
|
private |
ImportElementTextPattern::apply Apply the user choice.
name | : the name of the selected pattern |
erase | : erase the existing texts and groups of element. |
Definition at line 193 of file elementtextpattern.cpp.
References QETApp::configDir(), QetGraphicsItem::diagram(), Element::dynamicTextItems(), QET::findInDomElement(), DynamicElementTextItem::fromXml(), m_element, DiagramContent::m_element_texts, Element::textGroups(), QET::Icons::tr, and Diagram::undoStack().
Referenced by ImportElementTextPattern().
|
private |
ImportElementTextPattern::getName Open a dialog to let user select a conf.
ok |
Definition at line 167 of file elementtextpattern.cpp.
References ImportElementTextPatternDialog::getItem(), parentWidget(), and QET::Icons::tr.
Referenced by ImportElementTextPattern().
|
private |
Definition at line 177 of file elementtextpattern.cpp.
References m_element.
Referenced by getName(), and ImportElementTextPattern().
|
private |
Definition at line 53 of file elementtextpattern.h.
Referenced by apply(), and parentWidget().