mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 14:00:34 +05:00
rnc:
- connected mouseRelease event to a slot in GEOMGUI - modified translations in feature detection dialog
This commit is contained in:
parent
9818567cc6
commit
8aab8f5cb5
@ -76,6 +76,15 @@ bool GEOMGUI::OnMouseMove( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_V
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
// class : GEOMGUI::OnMouseMove
|
||||
// purpose : Mouse move event processing
|
||||
//=================================================================================
|
||||
bool GEOMGUI::OnMouseRelease( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
// class : GEOMGUI::OnKeyPress
|
||||
// purpose : Key press event processing
|
||||
|
@ -54,6 +54,7 @@ public :
|
||||
|
||||
virtual bool OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
|
||||
virtual bool OnMouseMove( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
|
||||
virtual bool OnMouseRelease( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
|
||||
virtual bool OnKeyPress( QKeyEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
|
||||
|
||||
virtual void activate( SUIT_Desktop* parent );
|
||||
|
@ -4598,9 +4598,13 @@ Number of sketch points too small</translation>
|
||||
<source>GEOM_DETECT_ZONE</source>
|
||||
<translation>Select a detection zone (default is whole picture)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_PICTURE</source>
|
||||
<translation>Picture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_COLOR_FILTER</source>
|
||||
<translation>Select the color of the zone you want to find the frontier of</translation>
|
||||
<translation>Filtering sample</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_VIEW</source>
|
||||
|
@ -597,6 +597,18 @@ void GeometryGUI::OnMouseMove( SUIT_ViewWindow* w, QMouseEvent* e )
|
||||
lib->OnMouseMove( e, application()->desktop(), w );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
// function : GeometryGUI::OnMouseRelease()
|
||||
// purpose : Manages mouse release events [static]
|
||||
//=================================================================================
|
||||
void GeometryGUI::OnMouseRelease( SUIT_ViewWindow* w, QMouseEvent* e )
|
||||
{
|
||||
if ( !application() )
|
||||
return;
|
||||
foreach ( GEOMGUI* lib, myGUIMap )
|
||||
lib->OnMouseRelease( e, application()->desktop(), w );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
// function : GeometryGUI::OnMousePress()
|
||||
// purpose : Manage mouse press events [static]
|
||||
@ -1441,6 +1453,8 @@ void GeometryGUI::onViewManagerAdded( SUIT_ViewManager* vm )
|
||||
this, SLOT( OnMousePress( SUIT_ViewWindow*, QMouseEvent* ) ) );
|
||||
connect( vm, SIGNAL( mouseMove ( SUIT_ViewWindow*, QMouseEvent* ) ),
|
||||
this, SLOT( OnMouseMove( SUIT_ViewWindow*, QMouseEvent* ) ) );
|
||||
connect( vm, SIGNAL( mouseRelease ( SUIT_ViewWindow*, QMouseEvent* ) ),
|
||||
this, SLOT( OnMouseRelease( SUIT_ViewWindow*, QMouseEvent* ) ) );
|
||||
|
||||
LightApp_SelectionMgr* sm = getApp()->selectionMgr();
|
||||
myOCCSelectors.append( new GEOMGUI_OCCSelector( ((OCCViewer_ViewManager*)vm)->getOCCViewer(), sm ) );
|
||||
|
@ -154,6 +154,7 @@ public slots:
|
||||
virtual void OnKeyPress ( SUIT_ViewWindow*, QKeyEvent* );
|
||||
virtual void OnMousePress( SUIT_ViewWindow*, QMouseEvent* );
|
||||
virtual void OnMouseMove ( SUIT_ViewWindow*, QMouseEvent* );
|
||||
virtual void OnMouseRelease ( SUIT_ViewWindow*, QMouseEvent* );
|
||||
|
||||
protected slots:
|
||||
virtual void onViewManagerAdded( SUIT_ViewManager* );
|
||||
|
Loading…
Reference in New Issue
Block a user