Skip to content

Commit

Permalink
#4410 Dock Window State : Move plot widget names to DockWidgetTools
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed May 15, 2019
1 parent f43edf3 commit 6830d79
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
16 changes: 16 additions & 0 deletions ApplicationCode/UserInterface/RiuDockWidgetTools.cpp
Expand Up @@ -92,6 +92,22 @@ QString RiuDockWidgetTools::mohrsCirclePlotName()
return "dockMohrsCirclePlot";
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RiuDockWidgetTools::plotMainWindowProjectTreeName()
{
return "plotMainWindow_dockProjectTree";
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RiuDockWidgetTools::plotMainWindowPropertyEditorName()
{
return "plotMainWindow_dockPropertyEditor";
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions ApplicationCode/UserInterface/RiuDockWidgetTools.h
Expand Up @@ -46,6 +46,9 @@ class RiuDockWidgetTools
static QString messagesName();
static QString mohrsCirclePlotName();

static QString plotMainWindowProjectTreeName();
static QString plotMainWindowPropertyEditorName();

static QAction* toggleActionForWidget(const QObject* parent, const QString& dockWidgetName);

static QVariant storeDockWidgetsVisibility(const QObject* parent);
Expand Down
5 changes: 3 additions & 2 deletions ApplicationCode/UserInterface/RiuPlotMainWindow.cpp
Expand Up @@ -34,6 +34,7 @@
#include "RimWellLogCurveCommonDataSource.h"
#include "RimWellLogPlot.h"

#include "RiuDockWidgetTools.h"
#include "RiuDragDrop.h"
#include "RiuMdiSubWindow.h"
#include "RiuToolTipMenu.h"
Expand Down Expand Up @@ -385,7 +386,7 @@ void RiuPlotMainWindow::createDockPanels()
{
{
QDockWidget* dockWidget = new QDockWidget("Plot Project Tree", this);
dockWidget->setObjectName("plotProjectTreeDockWidget");
dockWidget->setObjectName(RiuDockWidgetTools::plotMainWindowProjectTreeName());
dockWidget->setAllowedAreas(Qt::AllDockWidgetAreas);

m_projectTreeView = new caf::PdmUiTreeView(this);
Expand Down Expand Up @@ -422,7 +423,7 @@ void RiuPlotMainWindow::createDockPanels()

{
QDockWidget* dockWidget = new QDockWidget("Property Editor", this);
dockWidget->setObjectName("plotPropertyEditorDockWidget");
dockWidget->setObjectName(RiuDockWidgetTools::plotMainWindowPropertyEditorName());
dockWidget->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);

m_pdmUiPropertyView = new caf::PdmUiPropertyView(dockWidget);
Expand Down

0 comments on commit 6830d79

Please sign in to comment.