mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-13 04:27:26 +05:00
Fix bug 10955: Collisions with 'Ctrl+I' and 'Ctrl+M' hot keys.
This commit is contained in:
parent
e666568f33
commit
e99c8a4fdd
@ -732,8 +732,8 @@ void GeometryGUI::createGeomAction( const int id, const QString& po_id, const QS
|
|||||||
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
// function : GeometryGUI::Deactivate()
|
// function : GeometryGUI::initialize()
|
||||||
// purpose : Called when GEOM module is deactivated [ static ]
|
// purpose : Called when GEOM module is created
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
void GeometryGUI::initialize( CAM_Application* app )
|
void GeometryGUI::initialize( CAM_Application* app )
|
||||||
{
|
{
|
||||||
@ -1105,8 +1105,8 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
// function : GeometryGUI::Deactivate()
|
// function : GeometryGUI::activateModule()
|
||||||
// purpose : Called when GEOM module is deactivated [ static ]
|
// purpose : Called when GEOM module is activated
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
bool GeometryGUI::activateModule( SUIT_Study* study )
|
bool GeometryGUI::activateModule( SUIT_Study* study )
|
||||||
{
|
{
|
||||||
@ -1124,6 +1124,12 @@ bool GeometryGUI::activateModule( SUIT_Study* study )
|
|||||||
connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
|
connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
|
||||||
this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
|
this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
|
||||||
|
|
||||||
|
// Reset actions accelerator keys
|
||||||
|
//action(111)->setAccel(QKeySequence(CTRL + Key_I)); // Import
|
||||||
|
//action(121)->setAccel(QKeySequence(CTRL + Key_E)); // Export
|
||||||
|
action(111)->setEnabled(true); // Import
|
||||||
|
action(121)->setEnabled(true); // Export
|
||||||
|
|
||||||
GUIMap::Iterator it;
|
GUIMap::Iterator it;
|
||||||
for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
|
for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
|
||||||
it.data()->activate( application()->desktop() );
|
it.data()->activate( application()->desktop() );
|
||||||
@ -1153,8 +1159,8 @@ bool GeometryGUI::activateModule( SUIT_Study* study )
|
|||||||
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
// function : GeometryGUI::Deactivate()
|
// function : GeometryGUI::deactivateModule()
|
||||||
// purpose : Called when GEOM module is deactivated [ static ]
|
// purpose : Called when GEOM module is deactivated
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
bool GeometryGUI::deactivateModule( SUIT_Study* study )
|
bool GeometryGUI::deactivateModule( SUIT_Study* study )
|
||||||
{
|
{
|
||||||
@ -1170,6 +1176,12 @@ bool GeometryGUI::deactivateModule( SUIT_Study* study )
|
|||||||
for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
|
for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
|
||||||
it.data()->deactivate();
|
it.data()->deactivate();
|
||||||
|
|
||||||
|
// Unset actions accelerator keys
|
||||||
|
//action(111)->setAccel(QKeySequence()); // Import
|
||||||
|
//action(121)->setAccel(QKeySequence()); // Export
|
||||||
|
action(111)->setEnabled(false); // Import
|
||||||
|
action(121)->setEnabled(false); // Export
|
||||||
|
|
||||||
myOCCSelectors.clear();
|
myOCCSelectors.clear();
|
||||||
getApp()->selectionMgr()->setEnabled( true, OCCViewer_Viewer::Type() );
|
getApp()->selectionMgr()->setEnabled( true, OCCViewer_Viewer::Type() );
|
||||||
|
|
||||||
@ -1491,7 +1503,7 @@ void GeometryGUI::BuildPresentation( const Handle(SALOME_InteractiveObject)& io,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
// function : setCommandsEnabled()
|
// function : onWindowActivated()
|
||||||
// purpose : update menu items' status - disable non-OCC-viewer-compatible actions
|
// purpose : update menu items' status - disable non-OCC-viewer-compatible actions
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
void GeometryGUI::onWindowActivated( SUIT_ViewWindow* win )
|
void GeometryGUI::onWindowActivated( SUIT_ViewWindow* win )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user