Set guideline visibility when changing states
markummitchell
4 years ago
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | 30 |
false);
|
|
31 |
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
31 | 33 |
}
|
32 | 34 |
|
33 | 35 |
bool GuidelineStateDeployedConstantRSelectEdit::doPaint () const
|
33 | 33 |
|
34 | 34 |
beginCommon (GuidelineFormat::HOVER_ON,
|
35 | 35 |
false);
|
|
36 |
|
|
37 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
36 | 38 |
|
37 | 39 |
// (Re)connect to timer
|
38 | 40 |
QObject::connect (m_timer, SIGNAL (timeout ()), &context(), SLOT (slotTimeout ()));
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_ON,
|
29 | 29 |
false);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantRSelectEditHover::doPaint () const
|
27 | 27 |
<< " identifier=" << context().guideline().identifier().toLatin1().data();
|
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | |
false);
|
|
30 |
true);
|
31 | 31 |
|
32 | |
context().guideline().setGraphicsItemVisible (false); // Stop hover and painting (doPoint only stops painting)
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
33 | 33 |
}
|
34 | 34 |
|
35 | 35 |
bool GuidelineStateDeployedConstantRUnselectEdit::doPaint () const
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
29 | 29 |
true);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantRUnselectLock::doPaint () const
|
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | 30 |
false);
|
|
31 |
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
31 | 33 |
}
|
32 | 34 |
|
33 | 35 |
bool GuidelineStateDeployedConstantTSelectEdit::doPaint () const
|
33 | 33 |
|
34 | 34 |
beginCommon (GuidelineFormat::HOVER_ON,
|
35 | 35 |
false);
|
|
36 |
|
|
37 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
36 | 38 |
|
37 | 39 |
// (Re)connect to timer
|
38 | 40 |
QObject::connect (m_timer, SIGNAL (timeout ()), &context(), SLOT (slotTimeout ()));
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_ON,
|
29 | 29 |
false);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantTSelectEditHover::doPaint () const
|
27 | 27 |
<< " identifier=" << context().guideline().identifier().toLatin1().data();
|
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | |
false);
|
|
30 |
true);
|
31 | 31 |
|
32 | |
context().guideline().setGraphicsItemVisible (false); // Stop hover and painting (doPoint only stops painting)
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
33 | 33 |
}
|
34 | 34 |
|
35 | 35 |
bool GuidelineStateDeployedConstantTUnselectEdit::doPaint () const
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
29 | 29 |
true);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantTUnselectLock::doPaint () const
|
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | 30 |
false);
|
|
31 |
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
31 | 33 |
}
|
32 | 34 |
|
33 | 35 |
bool GuidelineStateDeployedConstantXSelectEdit::doPaint () const
|
33 | 33 |
|
34 | 34 |
beginCommon (GuidelineFormat::HOVER_ON,
|
35 | 35 |
false);
|
|
36 |
|
|
37 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
36 | 38 |
|
37 | 39 |
// (Re)connect to timer
|
38 | 40 |
QObject::connect (m_timer, SIGNAL (timeout ()), &context(), SLOT (slotTimeout ()));
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_ON,
|
29 | 29 |
false);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantXSelectEditHover::doPaint () const
|
27 | 27 |
<< " identifier=" << context().guideline().identifier().toLatin1().data();
|
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | |
false);
|
|
30 |
true);
|
31 | 31 |
|
32 | |
context().guideline().setGraphicsItemVisible (false); // Stop hover and painting (doPoint only stops painting)
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
33 | 33 |
}
|
34 | 34 |
|
35 | 35 |
bool GuidelineStateDeployedConstantXUnselectEdit::doPaint () const
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
29 | 29 |
true);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantXUnselectLock::doPaint () const
|
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | 30 |
false);
|
|
31 |
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
31 | 33 |
}
|
32 | 34 |
|
33 | 35 |
bool GuidelineStateDeployedConstantYSelectEdit::doPaint () const
|
33 | 33 |
|
34 | 34 |
beginCommon (GuidelineFormat::HOVER_ON,
|
35 | 35 |
false);
|
|
36 |
|
|
37 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
36 | 38 |
|
37 | 39 |
// (Re)connect to timer
|
38 | 40 |
QObject::connect (m_timer, SIGNAL (timeout ()), &context(), SLOT (slotTimeout ()));
|
|
95 | 97 |
{
|
96 | 98 |
return guidelineStateAsString (GUIDELINE_STATE_DEPLOYED_CONSTANT_Y_SELECT_EDIT_APPEARING);
|
97 | 99 |
}
|
98 | |
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_ON,
|
29 | 29 |
false);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantYSelectEditHover::doPaint () const
|
27 | 27 |
<< " identifier=" << context().guideline().identifier().toLatin1().data();
|
28 | 28 |
|
29 | 29 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
30 | |
false);
|
|
30 |
true);
|
31 | 31 |
|
32 | |
context().guideline().setGraphicsItemVisible (false); // Stop hover and painting (doPoint only stops painting)
|
|
32 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
33 | 33 |
}
|
34 | 34 |
|
35 | 35 |
bool GuidelineStateDeployedConstantYUnselectEdit::doPaint () const
|
27 | 27 |
|
28 | 28 |
beginCommon (GuidelineFormat::HOVER_OFF,
|
29 | 29 |
true);
|
|
30 |
|
|
31 |
context().guideline().setGraphicsItemVisible (true); // Stop hover and painting (doPoint only stops painting)
|
30 | 32 |
}
|
31 | 33 |
|
32 | 34 |
bool GuidelineStateDeployedConstantYUnselectLock::doPaint () const
|