From: imn Date: Tue, 9 Jun 2015 15:20:17 +0000 (+0300) Subject: 0023084: [CEA 1431] To choose in the preferences of the type Paravis trace Paraview X-Git-Tag: V7_7_0a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bcb71aecf816276894dc125d74c483bb220a020f;p=modules%2Fparavis.git 0023084: [CEA 1431] To choose in the preferences of the type Paravis trace Paraview --- diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index a2c63548..0eca4e9c 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -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 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 ); } /*! diff --git a/src/PVGUI/resources/PARAVIS_msg_en.ts b/src/PVGUI/resources/PARAVIS_msg_en.ts index d9beb5bd..06c2f164 100644 --- a/src/PVGUI/resources/PARAVIS_msg_en.ts +++ b/src/PVGUI/resources/PARAVIS_msg_en.ts @@ -1173,6 +1173,22 @@ PREF_NO_EXT_PVSERVER Do not use external PVServer (Warning: scripts running outside SALOME's GUI will be unusable!) + + PREF_TRACE_TYPE_LBL + Select which properties to save in trace + + + PREF_TRACE_TYPE_0 + All properties + + + PREF_TRACE_TYPE_1 + Any modified properties + + + PREF_TRACE_TYPE_2 + Only user modified properties + PREF_SHOW_COLOR_LEGEND Show Color Legend diff --git a/src/PVGUI/resources/PARAVIS_msg_fr.ts b/src/PVGUI/resources/PARAVIS_msg_fr.ts index 825bfdf0..ea61e3f0 100644 --- a/src/PVGUI/resources/PARAVIS_msg_fr.ts +++ b/src/PVGUI/resources/PARAVIS_msg_fr.ts @@ -1177,6 +1177,22 @@ PREF_NO_EXT_PVSERVER Ne pas utiliser le PVServer externe (Attention: les scripts lancés en dehors de la GUI SALOME seront inutilisables !) + + PREF_TRACE_TYPE_LBL + Select which properties to save in trace + + + PREF_TRACE_TYPE_0 + All properties + + + PREF_TRACE_TYPE_1 + Any modified properties + + + PREF_TRACE_TYPE_2 + Only user modified properties + TIT_PVISSETTINGS Options de ParaVis diff --git a/src/PVGUI/resources/PARAVIS_msg_ja.ts b/src/PVGUI/resources/PARAVIS_msg_ja.ts index 75c2ca08..6eb05744 100644 --- a/src/PVGUI/resources/PARAVIS_msg_ja.ts +++ b/src/PVGUI/resources/PARAVIS_msg_ja.ts @@ -1173,6 +1173,22 @@ PREF_NO_EXT_PVSERVER 外部PVサーバを使用できません。(警告: SALOMEのGUIの外側で実行されたスクリプトは使用できません。) + + PREF_TRACE_TYPE_LBL + Select which properties to save in trace + + + PREF_TRACE_TYPE_0 + All properties + + + PREF_TRACE_TYPE_1 + Any modified properties + + + PREF_TRACE_TYPE_2 + Only user modified properties + PREF_SHOW_COLOR_LEGEND 色の凡例を表示します。