#7632 Preferences : Add separate tab Eclipse Summary

Remove obsolete includes
This commit is contained in:
Magne Sjaastad
2021-04-28 10:29:53 +02:00
parent 46f186b72d
commit 1cf1eef048
64 changed files with 153 additions and 176 deletions

View File

@@ -18,7 +18,7 @@
#include "RicCreatePlotFromTemplateByShortcutFeature.h"
#include "RiaApplication.h"
#include "RiaGuiApplication.h"
#include "RiaPreferences.h"
#include "RicSummaryPlotTemplateTools.h"
@@ -51,7 +51,7 @@ bool RicCreatePlotFromTemplateByShortcutFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicCreatePlotFromTemplateByShortcutFeature::onActionTriggered( bool isChecked )
{
QString fileName = RiaApplication::instance()->preferences()->defaultPlotTemplateAbsolutePath();
QString fileName = RiaPreferences::current()->defaultPlotTemplateAbsolutePath();
if ( !QFile::exists( fileName ) )
{

View File

@@ -18,7 +18,6 @@
#include "RicReloadPlotTemplatesFeature.h"
#include "RiaApplication.h"
#include "RiaPreferences.h"
#include "PlotTemplates/RimPlotTemplateFolderItem.h"
@@ -34,7 +33,7 @@ CAF_CMD_SOURCE_INIT( RicReloadPlotTemplatesFeature, "RicReloadPlotTemplatesFeatu
void RicReloadPlotTemplatesFeature::rebuildFromDisc()
{
RimProject* proj = RimProject::current();
RiaPreferences* prefs = RiaApplication::instance()->preferences();
RiaPreferences* prefs = RiaPreferences::current();
proj->setPlotTemplateFolders( prefs->plotTemplateFolders() );
proj->rootPlotTemlateItem()->updateConnectedEditors();

View File

@@ -18,7 +18,6 @@
#include "RicSummaryPlotTemplateTools.h"
#include "RiaApplication.h"
#include "RiaGuiApplication.h"
#include "RiaLogging.h"
#include "RiaPreferences.h"
@@ -334,8 +333,8 @@ QString RicSummaryPlotTemplateTools::selectPlotTemplatePath()
{
QString fileName = ui.selectedPlotTemplates().front()->absoluteFilePath();
RiaApplication::instance()->preferences()->setDefaultPlotTemplatePath( fileName );
RiaApplication::instance()->preferences()->writePreferencesToApplicationStore();
RiaPreferences::current()->setDefaultPlotTemplatePath( fileName );
RiaPreferences::current()->writePreferencesToApplicationStore();
return fileName;
}