From: Christophe Bourcier Date: Wed, 29 Mar 2023 07:04:54 +0000 (+0200) Subject: Fix missing Find data panel X-Git-Tag: V9_11_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fcbr%2Ffix_find_data_panel;p=modules%2Fparavis.git Fix missing Find data panel Also fix calling from the menu Edit> find data --- diff --git a/src/PVGUI/PVGUI_Module_widgets.cxx b/src/PVGUI/PVGUI_Module_widgets.cxx index 7f656370..c8b8f571 100644 --- a/src/PVGUI/PVGUI_Module_widgets.cxx +++ b/src/PVGUI/PVGUI_Module_widgets.cxx @@ -64,6 +64,7 @@ #include #include #include +#include #include #include @@ -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"); diff --git a/src/PVGUI/resources/PARAVIS_msg_en.ts b/src/PVGUI/resources/PARAVIS_msg_en.ts index 3c7771d9..bdcdf192 100644 --- a/src/PVGUI/resources/PARAVIS_msg_en.ts +++ b/src/PVGUI/resources/PARAVIS_msg_en.ts @@ -205,6 +205,10 @@ TTL_COLOR_MAP_EDITOR Color Map Editor + + TTL_FIND_DATA + Find Data + TTL_DISPLAY Display diff --git a/src/PVGUI/resources/PARAVIS_msg_fr.ts b/src/PVGUI/resources/PARAVIS_msg_fr.ts index 8501cb37..8214ce3b 100644 --- a/src/PVGUI/resources/PARAVIS_msg_fr.ts +++ b/src/PVGUI/resources/PARAVIS_msg_fr.ts @@ -209,6 +209,10 @@ TTL_COLOR_MAP_EDITOR Editeur de carte de couleurs + + TTL_FIND_DATA + Chercher des données + TTL_DISPLAY Affichage diff --git a/src/PVGUI/resources/PARAVIS_msg_ja.ts b/src/PVGUI/resources/PARAVIS_msg_ja.ts index 05a120fa..18f0259f 100644 --- a/src/PVGUI/resources/PARAVIS_msg_ja.ts +++ b/src/PVGUI/resources/PARAVIS_msg_ja.ts @@ -205,6 +205,10 @@ TTL_COLOR_MAP_EDITOR カラーマップエディタ + + TTL_FIND_DATA + データを見つける. + TTL_DISPLAY 表示