Salome HOME
0023084: [CEA 1431] To choose in the preferences of the type Paravis trace Paraview
authorimn <imn@opencascade.com>
Tue, 9 Jun 2015 15:20:17 +0000 (18:20 +0300)
committerimn <imn@opencascade.com>
Tue, 9 Jun 2015 15:20:17 +0000 (18:20 +0300)
src/PVGUI/PVGUI_Module.cxx
src/PVGUI/resources/PARAVIS_msg_en.ts
src/PVGUI/resources/PARAVIS_msg_fr.ts
src/PVGUI/resources/PARAVIS_msg_ja.ts

index a2c635481c51fa16b9da8e03c911f90c37c1f84d..0eca4e9c2827f11af87e31490eca9fb53d484f85 100644 (file)
@@ -707,7 +707,9 @@ void PVGUI_Module::startTrace()
   if ( proxy ) {
     // Set manually the properties entered via the dialog box poping-up when requiring
     // a trace start in PV4.2 (trace options)
-    trace->SetPropertiesToTraceOnCreate( vtkSMTrace::RECORD_USER_MODIFIED_PROPERTIES );
+    SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr();
+    int type = aResourceMgr->integerValue( PARAVIS_MODULE_NAME, "tracestate_type", 2 );
+    trace->SetPropertiesToTraceOnCreate( type );
     trace->SetFullyTraceSupplementalProxies( false );
   }
 }
@@ -889,6 +891,10 @@ void PVGUI_Module::createPreferences()
   int aSaveType = addPreference( tr( "PREF_SAVE_TYPE_LBL" ), aParaVisSettingsTab,
                                  LightApp_Preferences::Selector,
                                  PARAVIS_MODULE_NAME, "savestate_type" );
+
+  int aTraceType = addPreference( tr( "PREF_TRACE_TYPE_LBL" ), aParaVisSettingsTab,
+                                 LightApp_Preferences::Selector,
+                                 PARAVIS_MODULE_NAME, "tracestate_type" );
   QList<QVariant> aIndices;
   QStringList aStrings;
   aIndices << 0 << 1 << 2;
@@ -897,6 +903,13 @@ void PVGUI_Module::createPreferences()
   aStrings << tr("PREF_SAVE_TYPE_2");
   setPreferenceProperty( aSaveType, "strings", aStrings );
   setPreferenceProperty( aSaveType, "indexes", aIndices );
+
+  aStrings.clear();
+  aStrings << tr("PREF_TRACE_TYPE_0");
+  aStrings << tr("PREF_TRACE_TYPE_1");
+  aStrings << tr("PREF_TRACE_TYPE_2");
+  setPreferenceProperty( aTraceType, "strings", aStrings );
+  setPreferenceProperty( aTraceType, "indexes", aIndices );
 }
 
 /*!
index d9beb5bd45df2172a548ccdd1bc2ca945a339c10..06c2f1647b74e75552ea212d561e4a788b1be0d1 100644 (file)
         <source>PREF_NO_EXT_PVSERVER</source>
         <translation>Do not use external PVServer (Warning: scripts running outside SALOME's GUI will be unusable!)</translation>
     </message>
+    <message>
+        <source>PREF_TRACE_TYPE_LBL</source>
+        <translation>Select which properties to save in trace</translation>
+    </message>
+    <message>
+        <source>PREF_TRACE_TYPE_0</source>
+        <translation>All properties</translation>
+    </message>
+    <message>
+        <source>PREF_TRACE_TYPE_1</source>
+        <translation>Any modified properties</translation>
+    </message>
+    <message>
+        <source>PREF_TRACE_TYPE_2</source>
+        <translation>Only user modified properties</translation>
+    </message>
     <message>
         <source>PREF_SHOW_COLOR_LEGEND</source>
         <translation>Show Color Legend</translation>
index 825bfdf090340f1d811d9d1c50bc5261a3c3bc6b..ea61e3f07286083d9cb4fa874aad58f1ca099f5f 100644 (file)
         <source>PREF_NO_EXT_PVSERVER</source>
         <translation>Ne pas utiliser le PVServer externe (Attention: les scripts lancés en dehors de la GUI SALOME seront inutilisables !)</translation>
     </message>
+    <message>
+        <source>PREF_TRACE_TYPE_LBL</source>
+        <translation type="unfinished">Select which properties to save in trace</translation>
+    </message>
+    <message>
+        <source>PREF_TRACE_TYPE_0</source>
+        <translation type="unfinished">All properties</translation>
+    </message>
+    <message>
+        <source>PREF_TRACE_TYPE_1</source>
+        <translation type="unfinished">Any modified properties</translation>
+    </message>
+    <message>
+        <source>PREF_TRACE_TYPE_2</source>
+        <translation type="unfinished">Only user modified properties</translation>
+    </message>
     <message>
         <source>TIT_PVISSETTINGS</source>
         <translation>Options de ParaVis </translation>
index 75c2ca08f3f4367dd701b301a430a333ace72baa..6eb05744176c6d85be525af06211c7d51a1317b9 100644 (file)
       <source>PREF_NO_EXT_PVSERVER</source>
       <translation>外部PVサーバを使用できません。(警告: SALOMEのGUIの外側で実行されたスクリプトは使用できません。)</translation>
     </message>
+    <message>
+      <source>PREF_TRACE_TYPE_LBL</source>
+      <translation type="unfinished">Select which properties to save in trace</translation>
+    </message>
+    <message>
+      <source>PREF_TRACE_TYPE_0</source>
+      <translation type="unfinished">All properties</translation>
+    </message>
+    <message>
+      <source>PREF_TRACE_TYPE_1</source>
+      <translation type="unfinished">Any modified properties</translation>
+    </message>
+    <message>
+      <source>PREF_TRACE_TYPE_2</source>
+      <translation type="unfinished">Only user modified properties</translation>
+    </message>
     <message>
       <source>PREF_SHOW_COLOR_LEGEND</source>
       <translation>色の凡例を表示します。</translation>