mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Show templates as separate project explorer tab. (#8902)
Add templates as separate project explorer tab. Add support for renaming and editing templates
This commit is contained in:
@@ -121,6 +121,18 @@ QString RiuPlotMainWindow::mainWindowName()
|
||||
return "RiuPlotMainWindow";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotMainWindow* RiuPlotMainWindow::instance()
|
||||
{
|
||||
if ( RiaGuiApplication::isRunning() )
|
||||
{
|
||||
return RiaGuiApplication::instance()->mainPlotWindow();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -460,11 +472,15 @@ void RiuPlotMainWindow::refreshToolbars()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuPlotMainWindow::createDockPanels()
|
||||
{
|
||||
const int nTreeViews = 3;
|
||||
const std::vector<QString> treeViewTitles = { "Plots", "Data Sources", "Scripts" };
|
||||
const std::vector<QString> treeViewConfigs = { "PlotWindow.Plots", "PlotWindow.DataSources", "PlotWindow.Scripts" };
|
||||
const int nTreeViews = 4;
|
||||
const std::vector<QString> treeViewTitles = { "Plots", "Data Sources", "Templates", "Scripts" };
|
||||
const std::vector<QString> treeViewConfigs = { "PlotWindow.Plots",
|
||||
"PlotWindow.DataSources",
|
||||
"PlotWindow.Templates",
|
||||
"PlotWindow.Scripts" };
|
||||
const std::vector<QString> treeViewDockNames = { RiuDockWidgetTools::plotMainWindowPlotsTreeName(),
|
||||
RiuDockWidgetTools::plotMainWindowDataSourceTreeName(),
|
||||
RiuDockWidgetTools::plotMainWindowTemplateTreeName(),
|
||||
RiuDockWidgetTools::plotMainWindowScriptsTreeName() };
|
||||
|
||||
createTreeViews( nTreeViews );
|
||||
|
||||
Reference in New Issue
Block a user