/// Fit all along Z (perpendicular to display)
//virtual void Zfitall() = 0;
+ /// Show highlight for pre-highlighted sub-shape
+ virtual void updateHighlight() {}
+
static Handle(Prs3d_Drawer) DefaultHighlightDrawer;
signals:
bool XGUI_OperationMgr::onKeyReleased(QObject *theObject, QKeyEvent* theEvent)
{
+ bool isAccepted = false;
+
// Let the manager decide what to do with the given key combination.
ModuleBase_Operation* anOperation = currentOperation();
- bool isAccepted = false;
switch (theEvent->key()) {
case Qt::Key_Tab:
case Qt::Key_Backtab:
aContext->HilightNextDetected(aView);
else if ((theEvent->key() == Qt::Key_P))
aContext->HilightPreviousDetected(aView);
+ aViewer->updateHighlight();
+ isAccepted = true;
}
}
}
/// by mouse drugging. If this is impossible thet it has to return False.
virtual bool canDragByMouse() const;
+ virtual void updateHighlight();
+
// Fit all along Z (perpendicular to display)
//virtual void Zfitall();
private:
void displayHighlight();
void eraseHighlight();
- void updateHighlight();
XGUI_Workshop* myWorkshop;
ResultPtr myResult;