#include <intersect_circles_dialog.h>
Public Slots | |
virtual void | ChosenObject (quint32 id, const SceneObject &type) Q_DECL_OVERRIDE |
void | PointChanged () |
void | DeployCircle1RadiusTextEdit () |
void | DeployCircle2RadiusTextEdit () |
void | Circle1RadiusChanged () |
void | Circle2RadiusChanged () |
void | FXCircle1Radius () |
void | FXCircle2Radius () |
void | EvalCircle1Radius () |
void | EvalCircle2Radius () |
Public Slots inherited from DialogTool | |
virtual void | ChosenObject (quint32 id, const SceneObject &type) |
ChosenObject gets id and type of selected object. Save right data and ignore wrong. More... | |
virtual void | SelectedObject (bool selected, quint32 object, quint32 tool) |
void | NamePointChanged () |
NamePointChanged check name of point. More... | |
virtual void | DialogAccepted () |
DialogAccepted save data and emit signal about closed dialog. More... | |
virtual void | DialogApply () |
DialogApply save data and emit signal DialogApplied. More... | |
virtual void | DialogRejected () |
DialogRejected emit signal dialog rejected. More... | |
void | FormulaChanged () |
formula check formula More... | |
void | FormulaChangedPlainText () |
FormulaChangedPlainText check formula (plain text editor editor) More... | |
void | ArrowUp () |
ArrowUp set angle value 90 degree. More... | |
void | ArrowDown () |
ArrowDown set angle value 270 degree. More... | |
void | ArrowLeft () |
ArrowLeft set angle value 180 degree. More... | |
void | ArrowRight () |
ArrowRight set angle value 0 degree. More... | |
void | ArrowLeftUp () |
ArrowLeftUp set angle value 135 degree. More... | |
void | ArrowLeftDown () |
ArrowLeftDown set angle value 225 degree. More... | |
void | ArrowRightUp () |
ArrowRightUp set angle value 45 degree. More... | |
void | ArrowRightDown () |
ArrowRightDown set angle value 315 degree. More... | |
virtual void | EvalFormula () |
EvalFormula evaluate formula. More... | |
virtual void | PointNameChanged () |
Public Member Functions | |
IntersectCirclesDialog (const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr) | |
virtual | ~IntersectCirclesDialog () Q_DECL_OVERRIDE |
void | SetPointName (const QString &value) |
quint32 | GetFirstCircleCenterId () const |
void | SetFirstCircleCenterId (const quint32 &value) |
quint32 | GetSecondCircleCenterId () const |
void | SetSecondCircleCenterId (const quint32 &value) |
QString | GetFirstCircleRadius () const |
void | SetFirstCircleRadius (const QString &value) |
QString | GetSecondCircleRadius () const |
void | SetSecondCircleRadius (const QString &value) |
CrossCirclesPoint | GetCrossCirclesPoint () const |
void | setCirclesCrossPoint (const CrossCirclesPoint &p) |
Public Member Functions inherited from DialogTool | |
DialogTool (const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr) | |
DialogTool create dialog. More... | |
virtual | ~DialogTool () Q_DECL_OVERRIDE |
VAbstractTool * | GetAssociatedTool () |
void | SetAssociatedTool (VAbstractTool *tool) |
virtual void | ShowDialog (bool click) |
virtual void | Build (const Tool &type) |
virtual void | SetPiecesList (const QVector< quint32 > &list) |
quint32 | GetToolId () const |
void | SetToolId (const quint32 &value) |
QString | getPointName () const |
Protected Member Functions | |
virtual void | ShowVisualization () Q_DECL_OVERRIDE |
virtual void | SaveData () Q_DECL_OVERRIDE |
SaveData Put dialog data in local variables. More... | |
virtual void | closeEvent (QCloseEvent *event) Q_DECL_OVERRIDE |
closeEvent handle when dialog cloded More... | |
virtual void | CheckState () Q_DECL_FINAL |
CheckState enable, when all is correct, or disable, when something wrong, button ok. More... | |
Protected Member Functions inherited from DialogTool | |
virtual void | keyPressEvent (QKeyEvent *event) Q_DECL_OVERRIDE |
virtual void | showEvent (QShowEvent *event) Q_DECL_OVERRIDE |
showEvent handle when window show More... | |
void | FillComboBoxPiecesList (QComboBox *box, const QVector< quint32 > &list) |
void | FillComboBoxPoints (QComboBox *box, FillComboBox rule=FillComboBox::Whole, const quint32 &ch1=NULL_ID, const quint32 &ch2=NULL_ID) const |
FillComboBoxPoints fill comboBox list of points. More... | |
void | FillComboBoxArcs (QComboBox *box, FillComboBox rule=FillComboBox::Whole, const quint32 &ch1=NULL_ID, const quint32 &ch2=NULL_ID) const |
void | FillComboBoxSplines (QComboBox *box) const |
void | FillComboBoxSplinesPath (QComboBox *box) const |
void | FillComboBoxCurves (QComboBox *box) const |
void | FillComboBoxTypeLine (QComboBox *box, const QMap< QString, QIcon > &stylesPics) const |
FillComboBoxTypeLine fill comboBox list of type lines. More... | |
void | FillComboBoxLineColors (QComboBox *box) const |
void | FillComboBoxCrossCirclesPoints (QComboBox *box) const |
void | FillComboBoxVCrossCurvesPoint (QComboBox *box) const |
void | FillComboBoxHCrossCurvesPoint (QComboBox *box) const |
QString | GetComboBoxCurrentData (const QComboBox *box, const QString &def) const |
void | ChangeCurrentData (QComboBox *box, const QVariant &value) const |
ChangeCurrentData select item in combobox by id. More... | |
void | ValFormulaChanged (bool &flag, QLineEdit *edit, QTimer *timer, const QString &postfix=QString()) |
ValFormulaChanged handle change formula. More... | |
void | ValFormulaChanged (bool &flag, QPlainTextEdit *edit, QTimer *timer, const QString &postfix=QString()) |
qreal | Eval (const QString &text, bool &flag, QLabel *label, const QString &postfix, bool checkZero=true, bool checkLessThanZero=false) |
Eval evaluate formula and show result. More... | |
qreal | normalize (const qreal value, const qreal start, const qreal end) |
void | setCurrentPointId (QComboBox *box, const quint32 &value, FillComboBox rule=FillComboBox::NoChildren, const quint32 &ch1=NULL_ID, const quint32 &ch2=NULL_ID) const |
void | setCurrentSplineId (QComboBox *box, const quint32 &value) const |
setCurrentSplineId set current spline id in combobox More... | |
void | setCurrentArcId (QComboBox *box, const quint32 &value, FillComboBox rule=FillComboBox::NoChildren, const quint32 &ch1=NULL_ID, const quint32 &ch2=NULL_ID) const |
setCurrentArcId More... | |
void | setCurrentSplinePathId (QComboBox *box, const quint32 &value) const |
setCurrentSplinePathId set current splinePath id in combobox More... | |
void | setCurrentCurveId (QComboBox *box, const quint32 &value) const |
quint32 | getCurrentObjectId (QComboBox *box) const |
getCurrentPointId return current point id stored in combobox More... | |
template<typename T > | |
T | getCurrentCrossPoint (QComboBox *box) const |
bool | SetObject (const quint32 &id, QComboBox *box, const QString &toolTip) |
void | DeployFormula (QPlainTextEdit *formula, QPushButton *buttonGrowLength, int formulaBaseHeight) |
template<typename T > | |
void | initializeOkCancelApply (T *ui) |
initializeOkCancelApply initialize OK / Cancel and Apply buttons More... | |
template<typename T > | |
void | initializeOkCancel (T *ui) |
initializeOkCancel initialize OK and Cancel buttons More... | |
template<typename T > | |
void | initializeFormulaUi (T *ui) |
initializeFormulaUi initialize ui object for the formula field More... | |
template<typename T > | |
void | AddVisualization () |
template<typename T > | |
QVector< T > | GetListInternals (const QListWidget *list) const |
void | ChangeColor (QWidget *widget, const QColor &color) |
void | MoveCursorToEnd (QPlainTextEdit *plainTextEdit) const |
virtual bool | eventFilter (QObject *object, QEvent *event) Q_DECL_OVERRIDE |
quint32 | DNumber (const QString &baseName) const |
NodeInfo | getNodeInfo (const VPieceNode &node, bool showNotch=false) const |
void | newNodeItem (QListWidget *listWidget, const VPieceNode &node, bool nodeExcluded=true, bool isDuplicate=false) |
void | initializeNodeAngles (QComboBox *box) |
Private Attributes | |
Ui::IntersectCirclesDialog * | ui |
bool | flagCircle1Radius |
bool | flagCircle2Radius |
QTimer * | timerCircle1Radius |
QTimer * | timerCircle2Radius |
QString | circle1Radius |
QString | circle2Radius |
int | formulaBaseHeightCircle1Radius |
int | formulaBaseHeightCircle2Radius |
Additional Inherited Members | |
Signals inherited from DialogTool | |
void | DialogClosed (int result) |
DialogClosed signal dialog closed. More... | |
void | DialogApplied () |
DialogApplied emit signal dialog apply changes. More... | |
void | ToolTip (const QString &toolTip) |
ToolTip emit tooltipe for tool. More... | |
Static Public Member Functions inherited from DialogTool | |
static void | moveListRowTop (QListWidget *list) |
static void | moveListRowUp (QListWidget *list) |
static void | moveListRowDown (QListWidget *list) |
static void | moveListRowBottom (QListWidget *list) |
Static Protected Member Functions inherited from DialogTool | |
static int | FindNotExcludedNodeDown (QListWidget *listWidget, int candidate) |
static int | FindNotExcludedNodeUp (QListWidget *listWidget, int candidate) |
static bool | isFirstPointSameAsLast (QListWidget *listWidget) |
static bool | doublePointsExist (QListWidget *listWidget) |
static bool | isEachPointNameUnique (QListWidget *listWidget) |
static QString | DialogWarningIcon () |
static QFont | NodeFont (bool nodeExcluded) |
Protected Attributes inherited from DialogTool | |
const VContainer * | data |
data container with data More... | |
bool | isInitialized |
isInitialized true if window is initialized More... | |
bool | flagName |
flagName true if name is correct More... | |
bool | flagFormula |
flagFormula true if formula correct More... | |
bool | flagError |
flagError use this flag if for you do not enought More... | |
QTimer * | timerFormula |
timerFormula timer for check formula More... | |
QPushButton * | ok_Button |
ok_Button button ok More... | |
QPushButton * | apply_Button |
apply_Button button apply More... | |
QDoubleSpinBox * | spinBoxAngle |
spinBoxAngle spinbox for angle More... | |
QPlainTextEdit * | plainTextEditFormula |
plainTextEditFormula formula More... | |
QLabel * | labelResultCalculation |
labelResultCalculation label with result of calculation More... | |
QLabel * | labelEditNamePoint |
labelEditNamePoint label used when need show wrong name of point More... | |
QLabel * | labelEditFormula |
labelEditFormula label used when need show wrong formula More... | |
const QColor | okColor |
const QColor | errorColor |
VAbstractTool * | associatedTool |
associatedTool vdrawtool associated with opened dialog. More... | |
quint32 | toolId |
bool | prepare |
prepare show if we prepare. Show dialog after finish working with visual part of tool More... | |
QString | pointName |
pointName name of point More... | |
qint32 | number |
number number of handled objects More... | |
QPointer< Visualization > | vis |
Definition at line 50 of file intersect_circles_dialog.h.
IntersectCirclesDialog::IntersectCirclesDialog | ( | const VContainer * | data, |
const quint32 & | toolId, | ||
QWidget * | parent = nullptr |
||
) |
Definition at line 57 of file intersect_circles_dialog.cpp.
References CheckState(), Circle1RadiusChanged(), Circle2RadiusChanged(), DialogTool::data, DeployCircle1RadiusTextEdit(), DeployCircle2RadiusTextEdit(), EvalCircle1Radius(), EvalCircle2Radius(), DialogTool::FillComboBoxCrossCirclesPoints(), DialogTool::FillComboBoxPoints(), formulaBaseHeightCircle1Radius, formulaBaseHeightCircle2Radius, FXCircle1Radius(), FXCircle2Radius(), DialogTool::initializeOkCancelApply(), DialogTool::labelEditNamePoint, DialogTool::NamePointChanged(), NewLabel, DialogTool::plainTextEditFormula, PointChanged(), qApp, timerCircle1Radius, timerCircle2Radius, ui, and DialogTool::vis.
|
virtual |
Definition at line 129 of file intersect_circles_dialog.cpp.
References ui.
|
protectedvirtual |
CheckState enable, when all is correct, or disable, when something wrong, button ok.
Reimplemented from DialogTool.
Definition at line 435 of file intersect_circles_dialog.cpp.
References DialogTool::apply_Button, flagCircle1Radius, flagCircle2Radius, DialogTool::flagError, DialogTool::flagFormula, DialogTool::flagName, DialogTool::ok_Button, and SCASSERT.
Referenced by EvalCircle1Radius(), EvalCircle2Radius(), IntersectCirclesDialog(), and PointChanged().
|
virtualslot |
Definition at line 244 of file intersect_circles_dialog.cpp.
References DialogTool::getCurrentObjectId(), DialogTool::number, Point, DialogTool::prepare, IntersectCirclesVisual::RefreshGeometry(), SCASSERT, DialogTool::SetObject(), IntersectCirclesVisual::setObject2Id(), ui, DialogTool::vis, and IntersectCirclesVisual::VisualMode().
|
slot |
Definition at line 315 of file intersect_circles_dialog.cpp.
References flagCircle1Radius, DialogTool::labelEditFormula, DialogTool::labelResultCalculation, qApp, timerCircle1Radius, ui, UnitsToStr(), and DialogTool::ValFormulaChanged().
Referenced by IntersectCirclesDialog().
|
slot |
Definition at line 324 of file intersect_circles_dialog.cpp.
References flagCircle2Radius, DialogTool::labelEditFormula, DialogTool::labelResultCalculation, qApp, timerCircle2Radius, ui, UnitsToStr(), and DialogTool::ValFormulaChanged().
Referenced by IntersectCirclesDialog().
|
protectedvirtual |
closeEvent handle when dialog cloded
event | event |
Reimplemented from DialogTool.
Definition at line 427 of file intersect_circles_dialog.cpp.
References DialogTool::closeEvent(), and ui.
|
slot |
Definition at line 303 of file intersect_circles_dialog.cpp.
References DialogTool::DeployFormula(), formulaBaseHeightCircle1Radius, and ui.
Referenced by IntersectCirclesDialog(), and SetFirstCircleRadius().
|
slot |
Definition at line 309 of file intersect_circles_dialog.cpp.
References DialogTool::DeployFormula(), formulaBaseHeightCircle2Radius, and ui.
Referenced by IntersectCirclesDialog(), and SetSecondCircleRadius().
|
slot |
Definition at line 361 of file intersect_circles_dialog.cpp.
References DialogTool::ChangeColor(), CheckState(), DialogTool::Eval(), flagCircle1Radius, flagCircle2Radius, DialogTool::labelEditFormula, qApp, ui, and UnitsToStr().
Referenced by IntersectCirclesDialog().
|
slot |
Definition at line 380 of file intersect_circles_dialog.cpp.
References DialogTool::ChangeColor(), CheckState(), DialogTool::Eval(), flagCircle2Radius, DialogTool::labelEditFormula, qApp, ui, and UnitsToStr().
Referenced by IntersectCirclesDialog().
|
slot |
Definition at line 333 of file intersect_circles_dialog.cpp.
References DialogTool::data, GetFirstCircleRadius(), EditFormulaDialog::GetFormula(), qApp, SetFirstCircleRadius(), EditFormulaDialog::SetFormula(), EditFormulaDialog::setPostfix(), DialogTool::toolId, and UnitsToStr().
Referenced by IntersectCirclesDialog().
|
slot |
Definition at line 347 of file intersect_circles_dialog.cpp.
References DialogTool::data, EditFormulaDialog::GetFormula(), GetSecondCircleRadius(), qApp, EditFormulaDialog::SetFormula(), EditFormulaDialog::setPostfix(), SetSecondCircleRadius(), DialogTool::toolId, and UnitsToStr().
Referenced by IntersectCirclesDialog().
CrossCirclesPoint IntersectCirclesDialog::GetCrossCirclesPoint | ( | ) | const |
Definition at line 224 of file intersect_circles_dialog.cpp.
References ui.
Referenced by SaveData().
quint32 IntersectCirclesDialog::GetFirstCircleCenterId | ( | ) | const |
Definition at line 142 of file intersect_circles_dialog.cpp.
References DialogTool::getCurrentObjectId(), and ui.
Referenced by SaveData().
QString IntersectCirclesDialog::GetFirstCircleRadius | ( | ) | const |
Definition at line 174 of file intersect_circles_dialog.cpp.
Referenced by FXCircle1Radius().
quint32 IntersectCirclesDialog::GetSecondCircleCenterId | ( | ) | const |
Definition at line 158 of file intersect_circles_dialog.cpp.
References DialogTool::getCurrentObjectId(), and ui.
Referenced by SaveData().
QString IntersectCirclesDialog::GetSecondCircleRadius | ( | ) | const |
Definition at line 199 of file intersect_circles_dialog.cpp.
Referenced by FXCircle2Radius().
|
slot |
Definition at line 284 of file intersect_circles_dialog.cpp.
References DialogTool::ChangeColor(), CheckState(), DialogTool::errorColor, DialogTool::flagError, DialogTool::getCurrentObjectId(), DialogTool::okColor, and ui.
Referenced by IntersectCirclesDialog().
|
protectedvirtual |
SaveData Put dialog data in local variables.
Reimplemented from DialogTool.
Definition at line 405 of file intersect_circles_dialog.cpp.
References GetCrossCirclesPoint(), GetFirstCircleCenterId(), GetSecondCircleCenterId(), DialogTool::pointName, IntersectCirclesVisual::RefreshGeometry(), SCASSERT, IntersectCirclesVisual::setC1Radius(), IntersectCirclesVisual::setC2Radius(), IntersectCirclesVisual::setCrossPoint(), Visualization::setObject1Id(), IntersectCirclesVisual::setObject2Id(), ui, and DialogTool::vis.
void IntersectCirclesDialog::setCirclesCrossPoint | ( | const CrossCirclesPoint & | p | ) |
Definition at line 230 of file intersect_circles_dialog.cpp.
References SCASSERT, IntersectCirclesVisual::setCrossPoint(), ui, and DialogTool::vis.
void IntersectCirclesDialog::SetFirstCircleCenterId | ( | const quint32 & | value | ) |
Definition at line 148 of file intersect_circles_dialog.cpp.
References SCASSERT, DialogTool::setCurrentPointId(), Visualization::setObject1Id(), ui, and DialogTool::vis.
void IntersectCirclesDialog::SetFirstCircleRadius | ( | const QString & | value | ) |
Definition at line 181 of file intersect_circles_dialog.cpp.
References DeployCircle1RadiusTextEdit(), DialogTool::MoveCursorToEnd(), qApp, SCASSERT, IntersectCirclesVisual::setC1Radius(), ui, and DialogTool::vis.
Referenced by FXCircle1Radius().
void IntersectCirclesDialog::SetPointName | ( | const QString & | value | ) |
Definition at line 135 of file intersect_circles_dialog.cpp.
References DialogTool::pointName, and ui.
void IntersectCirclesDialog::SetSecondCircleCenterId | ( | const quint32 & | value | ) |
Definition at line 164 of file intersect_circles_dialog.cpp.
References SCASSERT, DialogTool::setCurrentPointId(), IntersectCirclesVisual::setObject2Id(), ui, and DialogTool::vis.
void IntersectCirclesDialog::SetSecondCircleRadius | ( | const QString & | value | ) |
Definition at line 206 of file intersect_circles_dialog.cpp.
References DeployCircle2RadiusTextEdit(), DialogTool::MoveCursorToEnd(), qApp, SCASSERT, IntersectCirclesVisual::setC2Radius(), ui, and DialogTool::vis.
Referenced by FXCircle2Radius().
|
protectedvirtual |
Reimplemented from DialogTool.
Definition at line 399 of file intersect_circles_dialog.cpp.
|
private |
Definition at line 111 of file intersect_circles_dialog.h.
|
private |
Definition at line 112 of file intersect_circles_dialog.h.
|
private |
Definition at line 105 of file intersect_circles_dialog.h.
Referenced by CheckState(), Circle1RadiusChanged(), and EvalCircle1Radius().
|
private |
Definition at line 106 of file intersect_circles_dialog.h.
Referenced by CheckState(), Circle2RadiusChanged(), EvalCircle1Radius(), and EvalCircle2Radius().
|
private |
Definition at line 114 of file intersect_circles_dialog.h.
Referenced by DeployCircle1RadiusTextEdit(), and IntersectCirclesDialog().
|
private |
Definition at line 115 of file intersect_circles_dialog.h.
Referenced by DeployCircle2RadiusTextEdit(), and IntersectCirclesDialog().
|
private |
Definition at line 108 of file intersect_circles_dialog.h.
Referenced by Circle1RadiusChanged(), and IntersectCirclesDialog().
|
private |
Definition at line 109 of file intersect_circles_dialog.h.
Referenced by Circle2RadiusChanged(), and IntersectCirclesDialog().
|
private |
Definition at line 103 of file intersect_circles_dialog.h.
Referenced by ChosenObject(), Circle1RadiusChanged(), Circle2RadiusChanged(), closeEvent(), DeployCircle1RadiusTextEdit(), DeployCircle2RadiusTextEdit(), EvalCircle1Radius(), EvalCircle2Radius(), GetCrossCirclesPoint(), GetFirstCircleCenterId(), GetFirstCircleRadius(), GetSecondCircleCenterId(), GetSecondCircleRadius(), IntersectCirclesDialog(), PointChanged(), SaveData(), setCirclesCrossPoint(), SetFirstCircleCenterId(), SetFirstCircleRadius(), SetPointName(), SetSecondCircleCenterId(), SetSecondCircleRadius(), and ~IntersectCirclesDialog().