Files

117 lines
4.1 KiB
C++
Raw Permalink Normal View History

2018-04-26 19:52:27 +02:00
/////////////////////////////////////////////////////////////////////////////////
//
2019-01-09 15:21:38 +01:00
// Copyright (C) 2018- Equinor ASA
2018-04-26 19:52:27 +02:00
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <QByteArray>
2018-04-26 19:52:27 +02:00
#include <QMap>
#include <QString>
#include <QVariant>
class QObject;
class QAction;
2026-05-28 18:32:16 +02:00
class RiuMainWindowBase;
2018-04-26 19:52:27 +02:00
2022-07-07 12:03:02 +02:00
namespace ads
{
class CDockWidget;
class CDockManager;
}; // namespace ads
namespace caf
{
class PdmUiItem;
}; // namespace caf
2018-04-26 19:52:27 +02:00
//==================================================================================================
//
//
2018-04-26 19:52:27 +02:00
//
//==================================================================================================
class RiuDockWidgetTools
{
public:
2022-08-22 12:42:29 +02:00
static ads::CDockWidget* createDockWidget( QString title, QString dockName, QWidget* parent );
static QString mainPlotWindowName();
static QString main3DWindowName();
2026-06-01 17:34:43 +02:00
static QString centralScreenName();
2026-05-12 17:46:29 +02:00
2022-08-22 12:42:29 +02:00
static QString mainWindowPropertyEditorName();
static QString mainWindowResultInfoName();
static QString mainWindowProcessMonitorName();
static QString mainWindowResultPlotName();
2023-03-03 15:21:01 +01:00
static QString mainWindowDepthPlotName();
2022-08-22 12:42:29 +02:00
static QString mainWindowRelPermPlotName();
static QString mainWindowPvtPlotName();
2023-03-24 15:36:10 +01:00
static QString mainWindowSeismicHistogramName();
2022-08-22 12:42:29 +02:00
static QString mainWindowMessagesName();
static QString mainWindowMohrsCirclePlotName();
static QString mainWindowUndoStackName();
2024-10-18 14:41:19 +02:00
static QString mainWindowQuickAccessName();
2025-01-28 11:20:32 +01:00
static QString mainWindowCellSelectionToolName();
2018-04-26 19:52:27 +02:00
2022-05-11 19:17:46 +02:00
static QString mainWindowProjectTreeName();
static QString mainWindowDataSourceTreeName();
static QString mainWindowScriptsTreeName();
2022-01-28 13:19:52 +01:00
static QString plotMainWindowDataSourceTreeName();
static QString plotMainWindowPlotsTreeName();
static QString plotMainWindowTemplateTreeName();
2022-01-28 13:19:52 +01:00
static QString plotMainWindowScriptsTreeName();
2024-09-02 14:08:19 +02:00
static QString plotMainWindowCloudTreeName();
2022-01-28 13:19:52 +01:00
static QString plotMainWindowPropertyEditorName();
2024-09-02 14:08:19 +02:00
static QString plotMainWindowPropertyEditorRightName();
2020-04-01 12:48:02 +02:00
static QString plotMainWindowMessagesName();
static QString plotMainWindowUndoStackName();
2022-08-22 12:42:29 +02:00
static QString plotMainWindowPlotManagerName();
2024-10-18 14:41:19 +02:00
static QString plotWindowQuickAccessName();
static QString dockState3DEclipseName();
static QString dockState3DGeoMechName();
static QString dockStatePlotWindowName();
static QString dockStateHideAllPlotWindowName();
static QString dockStateHideAll3DWindowName();
2026-05-28 18:32:16 +02:00
static void setDockLayout( RiuMainWindowBase* mainWindow, const QString& layoutName );
2022-07-07 12:03:02 +02:00
static QAction* toggleActionForWidget( const ads::CDockManager* dockManager, const QString& dockWidgetName );
2018-04-26 19:52:27 +02:00
static ads::CDockWidget* findDockWidget( const ads::CDockManager* dockManager, const QString& dockWidgetName );
2018-04-26 19:52:27 +02:00
static void showDockWidget( const ads::CDockManager* dockManager, const QString& dockWidgetName );
static QByteArray defaultDockState( const QString& layoutName );
static QByteArray hideAllDocking3DState();
static QByteArray hideAllDockingPlotState();
2022-08-22 12:42:29 +02:00
static QIcon dockIcon( const QString dockWidgetName );
static std::vector<caf::PdmUiItem*> selectedItemsInTreeView( const QString& dockWidgetName );
static void selectItemsInTreeView( const QString& dockWidgetName, const std::vector<const caf::PdmUiItem*>& items );
static QString uniqueIdForDockWidget();
private:
static QByteArray defaultEclipseDockState();
static QByteArray defaultGeoMechDockState();
static QByteArray defaultPlotDockState();
2018-04-26 19:52:27 +02:00
};