]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Merge remote-tracking branch 'origin/BR_IMPROVEMENTS' into BR_v14_rc
authorasl <asl@opencascade.com>
Wed, 20 May 2015 13:55:09 +0000 (16:55 +0300)
committerasl <asl@opencascade.com>
Wed, 20 May 2015 13:55:09 +0000 (16:55 +0300)
Conflicts:
src/HYDROGUI/HYDROGUI_ImportImageOp.cxx
src/HYDROGUI/HYDROGUI_Operation.cxx

35 files changed:
1  2 
src/HYDROData/HYDROData_Bathymetry.cxx
src/HYDROData/HYDROData_Bathymetry.h
src/HYDROData/HYDROData_Entity.h
src/HYDROGUI/CMakeLists.txt
src/HYDROGUI/HYDROGUI_CalculationOp.cxx
src/HYDROGUI/HYDROGUI_CalculationOp.h
src/HYDROGUI/HYDROGUI_ChannelOp.cxx
src/HYDROGUI/HYDROGUI_DataModel.cxx
src/HYDROGUI/HYDROGUI_ImmersibleZoneOp.cxx
src/HYDROGUI/HYDROGUI_ImportBathymetryOp.cxx
src/HYDROGUI/HYDROGUI_ImportImageOp.cxx
src/HYDROGUI/HYDROGUI_ImportImageOp.h
src/HYDROGUI/HYDROGUI_InputPanel.cxx
src/HYDROGUI/HYDROGUI_InputPanel.h
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_Module.h
src/HYDROGUI/HYDROGUI_Operation.cxx
src/HYDROGUI/HYDROGUI_Operation.h
src/HYDROGUI/HYDROGUI_Poly3DOp.cxx
src/HYDROGUI/HYDROGUI_PolylineOp.cxx
src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.cxx
src/HYDROGUI/HYDROGUI_ProfileOp.cxx
src/HYDROGUI/HYDROGUI_PrsImage.cxx
src/HYDROGUI/HYDROGUI_PrsImage.h
src/HYDROGUI/HYDROGUI_RiverBottomOp.cxx
src/HYDROGUI/HYDROGUI_Shape.cxx
src/HYDROGUI/HYDROGUI_StreamOp.cxx
src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx
src/HYDROGUI/HYDROGUI_TwoImagesOp.cxx
src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx
src/HYDROGUI/HYDROGUI_ZLevelsDlg.h
src/HYDROGUI/HYDROGUI_ZLevelsOp.cxx
src/HYDROGUI/HYDROGUI_ZLevelsOp.h
src/HYDROGUI/resources/HYDROGUI_images.ts
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 6d661e9a59191a78da913ef19e6759224277d71d,a7f9e98c904944e390638bda0bec3a0b3a823cae..a3d2c72e040aaed1a8d230cd4604687abf75e997
@@@ -502,15 -507,10 +505,18 @@@ bool HYDROGUI_ImportImageOp::processApp
  
    anImageObj->Update();
  
-   theUpdateFlags = UF_Model | UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced;
+   theUpdateFlags = UF_Model;
+   if ( isApplyAndClose() )
+     theUpdateFlags |= UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced;
 +
 +  if( SetNextFile() )
 +  {
 +    theErrorMsg = "";
 +    commitDocOperation(); // to save the modifications in the data model
 +    return false;         // and to continue the operation
 +  }
 +
    return true;
  }
  
Simple merge
Simple merge
Simple merge
index caad11e4d6d5b2cf692ad0c0bb8ede470373dc49,3c752c2996aa99ce20d71eaaae911d8d1504efb2..1ed020f82b10f099d5e7a64f5dd4d48ca568bdd7
@@@ -700,23 -710,48 +706,60 @@@ void HYDROGUI_Module::contextMenuPopup
  
    if( isRoot )
      theMenu->addAction( action( EditLocalCSId ) );
 +
 +  if( anIsObjectBrowser && anOwners.size()==1 )
 +  {
 +    Handle( HYDROData_Object ) anObject = Handle( HYDROData_Object )::DownCast( aSeq.First() );
 +    if( !anObject.IsNull() )
 +    {
 +      theMenu->addSeparator();
 +      theMenu->addAction( action( SubmersibleId ) );
 +      action( SubmersibleId )->setCheckable( true );
 +      action( SubmersibleId )->setChecked( anObject->IsSubmersible() );
 +    }
 +  }
  }
  
+ void HYDROGUI_Module::createPreferences()
+ {
+   int genTab = addPreference( tr( "PREF_TAB_GENERAL" ) );
+   int CursorGroup = addPreference( tr( "PREF_GROUP_CURSOR" ), genTab );
+   int typeOfCursor = addPreference( tr( "PREF_TYPE_OF_CURSOR" ), CursorGroup,
+                                     LightApp_Preferences::Selector, "preferences", "type_of_cursor" );
+   // Set property cursor type
+   QList<QVariant> aCursorTypeIndicesList;
+   QList<QVariant> aCursorTypeIconsList;
+   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+   for ( int i = CT_ArrowCursor; i < CT_User; i++ ) {
+     QString icoFile = QString( "ICON_CURSOR_%1" ).arg( i+1 );
+     QPixmap pixmap = resMgr->loadPixmap( "HYDRO", tr( qPrintable( icoFile ) ) );
+     aCursorTypeIndicesList << i;
+     aCursorTypeIconsList << pixmap;
+   }
+   setPreferenceProperty( typeOfCursor, "indexes", aCursorTypeIndicesList );
+   setPreferenceProperty( typeOfCursor, "icons",   aCursorTypeIconsList );
+   int viewerGroup = addPreference( tr( "PREF_GROUP_VIEWER" ), genTab );
+   addPreference( tr( "PREF_VIEWER_AUTO_FITALL" ), viewerGroup,
+                  LightApp_Preferences::Bool, "HYDRO", "auto_fit_all" );
+ }
+ QCursor HYDROGUI_Module::getPrefEditCursor() const
+ {
+   int aCursorType = SUIT_Session::session()->resourceMgr()->integerValue("preferences", "type_of_cursor", (int)CT_CrossCursor );
+   if ( aCursorType >= Qt::BlankCursor)
+     aCursorType++;
+   QCursor aCursor = QCursor( Qt::CursorShape(aCursorType) );
+   return aCursor;
+ }
  void HYDROGUI_Module::update( const int flags )
  {
-   if( !isUpdateEnabled() )
+   if ( !isUpdateEnabled() )
      return;
  
    QApplication::setOverrideCursor( Qt::WaitCursor );
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge