57 #include <QPlainTextEdit>
60 #include <QPushButton>
61 #include <QSharedPointer>
63 #include <QToolButton>
66 #include "../vgeometry/vpointf.h"
67 #include "../vpatterndb/vcontainer.h"
68 #include "../vpatterndb/vtranslatevars.h"
69 #include "../vwidgets/vmaingraphicsscene.h"
70 #include "../vwidgets/vabstractmainwindow.h"
71 #include "../../visualization/line/vistoolcurveintersectaxis.h"
72 #include "../../visualization/visualization.h"
73 #include "../ifc/xml/vabstractpattern.h"
74 #include "../support/edit_formula_dialog.h"
75 #include "../vmisc/vabstractapplication.h"
76 #include "../vmisc/vcommonsettings.h"
77 #include "ui_dialogcurveintersectaxis.h"
84 , formulaBaseHeightAngle(0)
85 , m_firstRelease(false)
88 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
89 setWindowIcon(QIcon(
":/toolicon/32x32/curve_intersect_axis.png"));
91 ui->pointName_LineEdit->setClearButtonEnabled(
true);
106 int index =
ui->lineColor_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineColor());
109 ui->lineColor_ComboBox->setCurrentIndex(index);
112 index =
ui->lineWeight_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineWeight());
115 ui->lineWeight_ComboBox->setCurrentIndex(index);
118 index =
ui->lineType_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineType());
121 ui->lineType_ComboBox->setCurrentIndex(index);
177 vis->setLineWeight(value);
275 QLineF line = QLineF(
static_cast<QPointF
>(*point), scene->
getScenePos());
310 if (
SetObject(
id,
ui->curve_ComboBox, tr(
"Select axis point")))
360 dialog->setWindowTitle(tr(
"Edit angle"));
363 if (dialog->exec() == QDialog::Accepted)
373 AddVisualization<VisToolCurveIntersectAxis>();
void SetAngle(const QString &value)
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
virtual void ShowDialog(bool click) Q_DECL_OVERRIDE
Ui::DialogCurveIntersectAxis * ui
void DeployAngleTextEdit()
void setLineColor(const QString &value)
void SetPointName(const QString &value)
QString getLineColor() const
getLineColor get the color of line
virtual void ShowVisualization() Q_DECL_OVERRIDE
virtual ~DialogCurveIntersectAxis() Q_DECL_OVERRIDE
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
DialogCurveIntersectAxis(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
void SetBasePointId(const quint32 &value)
quint32 getCurveId() const
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
quint32 GetBasePointId() const
void setLineType(const QString &value)
QString getLineWeight() const
getLineWeight return weight of the lines
void setCurveId(const quint32 &value)
int formulaBaseHeightAngle
QString getLineType() const
virtual void ShowToolTip(const QString &toolTip)=0
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
The VMainGraphicsScene class main scene.
QPointF getScenePos() const
The VPointF class keep data of point.
void ToolTip(const QString &toolTip)
void setLineWeight(const QString &value)
virtual void VisualMode(const quint32 &pointId)
void setObject1Id(const quint32 &value)
void setLineStyle(const Qt::PenStyle &value)
const QString degreeSymbol
const qreal defPointRadiusPixel
const QString LineTypeSolidLine
Qt::PenStyle lineTypeToPenStyle(const QString &lineType)
LineStyle return pen style for current line style.