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
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 );
<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>
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]
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 ) );
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* );