|
@@ -3,11 +3,7 @@
|
|
#include "BusAPI.h"
|
|
#include "BusAPI.h"
|
|
#include "MainSetting.h"
|
|
#include "MainSetting.h"
|
|
#include "DialogWorkingDir.h"
|
|
#include "DialogWorkingDir.h"
|
|
-// #include "DialogSolver.h"
|
|
|
|
-// #include "SolverManager.h"
|
|
|
|
-// #include "SolveOption.h"
|
|
|
|
#include "GraphOption.h"
|
|
#include "GraphOption.h"
|
|
-//#include "DialogSolveOption.h"
|
|
|
|
#include "DialogGraphOption.h"
|
|
#include "DialogGraphOption.h"
|
|
#include "MessageSetting.h"
|
|
#include "MessageSetting.h"
|
|
#include <QSettings>
|
|
#include <QSettings>
|
|
@@ -29,8 +25,6 @@ namespace Setting
|
|
BusAPI::BusAPI()
|
|
BusAPI::BusAPI()
|
|
{
|
|
{
|
|
_mainSetting = new MainSetting;
|
|
_mainSetting = new MainSetting;
|
|
- // _solvers = new SolverManager;
|
|
|
|
- // _solveOption = new SolveOption;
|
|
|
|
_graphOption = new GraphOption;
|
|
_graphOption = new GraphOption;
|
|
_messageSetting = new MessageSetting;
|
|
_messageSetting = new MessageSetting;
|
|
readINI();
|
|
readINI();
|
|
@@ -38,8 +32,6 @@ namespace Setting
|
|
BusAPI::~BusAPI()
|
|
BusAPI::~BusAPI()
|
|
{
|
|
{
|
|
delete _mainSetting;
|
|
delete _mainSetting;
|
|
- // delete _solvers;
|
|
|
|
- // delete _solveOption;
|
|
|
|
delete _graphOption;
|
|
delete _graphOption;
|
|
}
|
|
}
|
|
void BusAPI::setWorkingDir()
|
|
void BusAPI::setWorkingDir()
|
|
@@ -58,7 +50,6 @@ namespace Setting
|
|
|
|
|
|
QSettings settingwriter(path + "/FastCAE.ini", QSettings::IniFormat);
|
|
QSettings settingwriter(path + "/FastCAE.ini", QSettings::IniFormat);
|
|
_mainSetting->writeINI(&settingwriter);
|
|
_mainSetting->writeINI(&settingwriter);
|
|
- // _solveOption->writeINI(&settingwriter);
|
|
|
|
_graphOption->writeINI(&settingwriter);
|
|
_graphOption->writeINI(&settingwriter);
|
|
_messageSetting->writeINI(&settingwriter);
|
|
_messageSetting->writeINI(&settingwriter);
|
|
}
|
|
}
|
|
@@ -68,7 +59,6 @@ namespace Setting
|
|
|
|
|
|
QSettings settingReader(path + "/FastCAE.ini", QSettings::IniFormat);
|
|
QSettings settingReader(path + "/FastCAE.ini", QSettings::IniFormat);
|
|
_mainSetting->readINI(&settingReader);
|
|
_mainSetting->readINI(&settingReader);
|
|
- // _solveOption->readINI(&settingReader);
|
|
|
|
_graphOption->readINI(&settingReader);
|
|
_graphOption->readINI(&settingReader);
|
|
_messageSetting->readINI(&settingReader);
|
|
_messageSetting->readINI(&settingReader);
|
|
}
|
|
}
|
|
@@ -91,19 +81,6 @@ namespace Setting
|
|
{
|
|
{
|
|
return _mainSetting->getGeomFile();
|
|
return _mainSetting->getGeomFile();
|
|
}
|
|
}
|
|
- // SolverManager* BusAPI::getSolverManager()
|
|
|
|
- // {
|
|
|
|
- // return _solvers;
|
|
|
|
- // }
|
|
|
|
- // void BusAPI::setSolverOptions()
|
|
|
|
- // {
|
|
|
|
- // SolveOptionDialog dlg(_mainWindow, _solveOption);
|
|
|
|
- // dlg.exec();
|
|
|
|
- // }
|
|
|
|
- // SolveOption* BusAPI::getSolveOptions()
|
|
|
|
- // {
|
|
|
|
- // return _solveOption;
|
|
|
|
- // }
|
|
|
|
QStringList BusAPI::getRencetFiles()
|
|
QStringList BusAPI::getRencetFiles()
|
|
{
|
|
{
|
|
return _mainSetting->getRencentFile();
|
|
return _mainSetting->getRencentFile();
|