Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit a5a6f315 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Mechanism added to declare additional hotkeys for the GLViewer.

parent 3d66e9ad
......@@ -2106,6 +2106,7 @@ void GLViewer::keyPressEvent( QKeyEvent *evt )
}
break;
}
default: emit keyPressed( evt );
}
if( !m_SelectionCurrentTool->isSelecting() )
......
......@@ -332,6 +332,7 @@ signals:
void wireframeToggled( const bool wireframeEnabled );
void lightingToggled( const bool lightingEnabled );
void lightTrackingToggled( const bool trackingEnabled );
void keyPressed( QKeyEvent *evt );
/************\
| QT slot(s) |
......
......@@ -233,6 +233,7 @@ void UIMainWindow::init()
connect( ui->actionClone, SIGNAL(triggered()), this, SLOT(cloneSelectedManageables()) );
connect( ui->actionWireframeMode, SIGNAL(triggered()), this, SLOT(toWireframeMode()) );
connect( ui->actionSolidMode, SIGNAL(triggered()), this, SLOT(toSolidMode()) );
connect( m_CurrentViewer, SIGNAL(keyPressed(QKeyEvent*)), this, SLOT(keyPressedInGLViewer(QKeyEvent*)) );
ui->actionSolidMode->setVisible( false );
......
......@@ -93,6 +93,7 @@ public:
virtual void onInitializingApp() {}
virtual void onReleasingApp() {}
virtual void additionalGLViewerHotkeys( QKeyEvent *evt ) {}
inline void declareToolCategory( int id, const QString& name, const QString &icon ) { ToolCategory::declareCategory(id,name,icon); }
......@@ -118,6 +119,7 @@ private:
private slots:
void loadRecent();
void keyPressedInGLViewer( QKeyEvent *evt ) { additionalGLViewerHotkeys( evt ); }
public slots:
void toolExecutionFinished( bool needUpdate );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment