@ -97,25 +97,25 @@ CSVRender::WorldspaceWidget::WorldspaceWidget (CSMDoc::Document& document, QWidg
CSMPrefs : : get ( ) [ " Tooltips " ] . update ( ) ;
// Shortcuts
mP rimaryEditShortcut = new CSMPrefs : : Shortcut ( " scene-edit-primary " , this ) ;
mShortcutHandler - > addShortcut ( mP rimaryEditShortcut) ;
connect ( mP rimaryEditShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( primaryEdit ( bool ) ) ) ;
CSMPrefs: : Shortcut * p rimaryEditShortcut = new CSMPrefs : : Shortcut ( " scene-edit-primary " , this ) ;
mShortcutHandler - > addShortcut ( p rimaryEditShortcut) ;
connect ( p rimaryEditShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( primaryEdit ( bool ) ) ) ;
mS econdaryEditShortcut = new CSMPrefs : : Shortcut ( " scene-edit-secondary " , this ) ;
mShortcutHandler - > addShortcut ( mS econdaryEditShortcut) ;
connect ( mS econdaryEditShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( secondaryEdit ( bool ) ) ) ;
CSMPrefs: : Shortcut * s econdaryEditShortcut = new CSMPrefs : : Shortcut ( " scene-edit-secondary " , this ) ;
mShortcutHandler - > addShortcut ( s econdaryEditShortcut) ;
connect ( s econdaryEditShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( secondaryEdit ( bool ) ) ) ;
mP rimarySelectShortcut = new CSMPrefs : : Shortcut ( " scene-select-primary " , this ) ;
mShortcutHandler - > addShortcut ( mP rimarySelectShortcut) ;
connect ( mP rimarySelectShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( primarySelect ( bool ) ) ) ;
CSMPrefs: : Shortcut * p rimarySelectShortcut = new CSMPrefs : : Shortcut ( " scene-select-primary " , this ) ;
mShortcutHandler - > addShortcut ( p rimarySelectShortcut) ;
connect ( p rimarySelectShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( primarySelect ( bool ) ) ) ;
mS econdarySelectShortcut = new CSMPrefs : : Shortcut ( " scene-select-secondary " , this ) ;
mShortcutHandler - > addShortcut ( mS econdarySelectShortcut) ;
connect ( mS econdarySelectShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( secondarySelect ( bool ) ) ) ;
CSMPrefs: : Shortcut * s econdarySelectShortcut = new CSMPrefs : : Shortcut ( " scene-select-secondary " , this ) ;
mShortcutHandler - > addShortcut ( s econdarySelectShortcut) ;
connect ( s econdarySelectShortcut, SIGNAL ( activated ( bool ) ) , this , SLOT ( secondarySelect ( bool ) ) ) ;
mA bortShortcut = new CSMPrefs : : Shortcut ( " scene-edit-abort " , this ) ;
mShortcutHandler - > addShortcut ( mA bortShortcut) ;
connect ( mSecondaryEdi tShortcut, SIGNAL ( activated ( ) ) , this , SLOT ( abortDrag ( ) ) ) ;
CSMPrefs: : Shortcut * a bortShortcut = new CSMPrefs : : Shortcut ( " scene-edit-abort " , this ) ;
mShortcutHandler - > addShortcut ( a bortShortcut) ;
connect ( abor tShortcut, SIGNAL ( activated ( ) ) , this , SLOT ( abortDrag ( ) ) ) ;
}
CSVRender : : WorldspaceWidget : : ~ WorldspaceWidget ( )
@ -670,7 +670,7 @@ void CSVRender::WorldspaceWidget::wheelEvent (QWheelEvent *event)
SceneWidget : : wheelEvent ( event ) ;
}
void CSVRender : : WorldspaceWidget : : handle MouseClick ( const WorldspaceHitResult & hit , InteractionType type , bool shift )
void CSVRender : : WorldspaceWidget : : handle InteractionPress ( const WorldspaceHitResult & hit , InteractionType type )
{
EditMode & editMode = dynamic_cast < CSVRender : : EditMode & > ( * mEditMode - > getCurrent ( ) ) ;
@ -729,7 +729,7 @@ void CSVRender::WorldspaceWidget::handleInteraction(InteractionType type, bool a
else
{
WorldspaceHitResult hit = mousePick ( mapFromGlobal ( QCursor : : pos ( ) ) , getInteractionMask ( ) ) ;
handle MouseClick( hit , type , fals e) ;
handle InteractionPress( hit , typ e) ;
}
}
}