]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix missing Find data panel cbr/fix_find_data_panel 7/head
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 29 Mar 2023 07:04:54 +0000 (09:04 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 29 Mar 2023 07:04:54 +0000 (09:04 +0200)
Also fix calling from the menu Edit> find data

src/PVGUI/PVGUI_Module_widgets.cxx
src/PVGUI/resources/PARAVIS_msg_en.ts
src/PVGUI/resources/PARAVIS_msg_fr.ts
src/PVGUI/resources/PARAVIS_msg_ja.ts

index 7f65637000c279dc3c479844ffd04d92550dd48b..c8b8f571acfd76ffc90e8709c47d668df5ca9cda 100644 (file)
@@ -64,6 +64,7 @@
 #include <pqCollaborationPanel.h>
 #include <pqMemoryInspectorPanel.h>
 #include <pqColorMapEditor.h>
+#include <pqFindDataWidget.h>
 #include <pqDeleteReaction.h>
 
 #include <vtkPVGeneralSettings.h>
@@ -309,7 +310,20 @@ void PVGUI_Module::setupDockWidgets()
   // Provide access to the color-editor panel for the application.
   pqApplicationCore::instance()->registerManager(
     "COLOR_EDITOR_PANEL", colorMapEditorDock);
-  
+
+  // Find data dock
+  QDockWidget* findDataDock = new QDockWidget(tr( "TTL_FIND_DATA" ), desk);
+  findDataDock->setObjectName("findDataDock");
+  pqFindDataWidget* findDataWidget = new pqFindDataWidget();
+  findDataWidget->setObjectName("findDataWidget");
+  findDataDock->setWidget(findDataWidget);
+  desk->addDockWidget(Qt::RightDockWidgetArea, findDataDock);
+  myDockWidgets[findDataDock] = false; // hidden by default
+
+  // Provide access to the find data panel for the application
+  // (through the menu Edit > Find data).
+  pqApplicationCore::instance()->registerManager("FIND_DATA_PANEL", findDataDock);
+
   // Memory inspector dock
   QDockWidget* memoryInspectorDock = new QDockWidget(tr( "TTL_MEMORY_INSPECTOR" ), desk);
   memoryInspectorDock->setObjectName("memoryInspectorDock");
index 3c7771d97067ca7a01b499e897ac0a1301699884..bdcdf1926016d3a0e10b2af00f56aa774adf8e20 100644 (file)
         <source>TTL_COLOR_MAP_EDITOR</source>
         <translation>Color Map Editor</translation>
     </message>
+    <message>
+        <source>TTL_FIND_DATA</source>
+        <translation>Find Data</translation>
+    </message>
     <message>
         <source>TTL_DISPLAY</source>
         <translation>Display</translation>
index 8501cb3788398163aca4e5d877ccf73c84356847..8214ce3b90d88c6d82e68ce64f8f6e2fb836e9e2 100644 (file)
         <source>TTL_COLOR_MAP_EDITOR</source>
         <translation>Editeur de carte de couleurs</translation>
     </message>
+    <message>
+        <source>TTL_FIND_DATA</source>
+        <translation>Chercher des données</translation>
+    </message>
     <message>
         <source>TTL_DISPLAY</source>
         <translation>Affichage</translation>
index 05a120fa261f3cbbe7c4234de31321fae45a638c..18f0259f478c99268cc1aa30629d0712f2474464 100644 (file)
       <source>TTL_COLOR_MAP_EDITOR</source>
       <translation>カラーマップエディタ</translation>
     </message>
+    <message>
+      <source>TTL_FIND_DATA</source>
+      <translation>データを見つける.</translation>
+    </message>
     <message>
       <source>TTL_DISPLAY</source>
       <translation>表示</translation>