59 #include <QPlainTextEdit>
61 #include <QPushButton>
63 #include <QToolButton>
65 #include "../vpatterndb/vtranslatevars.h"
66 #include "../../visualization/visualization.h"
67 #include "../../visualization/line/vistoolpointofcontact.h"
68 #include "../ifc/xml/vabstractpattern.h"
69 #include "../ifc/xml/vdomdocument.h"
70 #include "../support/edit_formula_dialog.h"
71 #include "../vmisc/vabstractapplication.h"
72 #include "../vmisc/vcommonsettings.h"
73 #include "ui_dialogpointofcontact.h"
85 , formulaBaseHeight(0)
88 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
89 setWindowIcon(QIcon(
":/toolicon/32x32/point_of_contact.png"));
91 ui->lineEditNamePoint->setClearButtonEnabled(
true);
97 ui->plainTextEditFormula->installEventFilter(
this);
159 dialog->setWindowTitle(tr(
"Edit radius"));
162 if (dialog->exec() == QDialog::Accepted)
172 AddVisualization<VisToolPointOfContact>();
199 if (
SetObject(
id,
ui->comboBoxFirstPoint, tr(
"Select second point of line")))
208 if (
SetObject(
id,
ui->comboBoxSecondPoint, tr(
"Select point of center of arc")))
230 this->setModal(
true);
247 radius =
ui->plainTextEditFormula->toPlainText();
248 radius.replace(
"\n",
" ");
263 ui->plainTextEditFormula->blockSignals(
true);
316 radius =
qApp->TrVars()->FormulaToUser(value,
qApp->Settings()->GetOsSeparator());
322 ui->plainTextEditFormula->setPlainText(
radius);
349 return qApp->TrVars()->TryFormulaFromUser(
radius,
qApp->Settings()->GetOsSeparator());
The VContainer class container of all variables.
virtual void VisualMode(const quint32 &pointId)
void setObject1Id(const quint32 &value)
QString UnitsToStr(const Unit &unit, const bool translate)
UnitsToStr translate unit to string.