X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Fgui%2FXmedConsoleDriver.cxx;h=c744310651fd4a91741059014b312c0bb280548f;hb=HEAD;hp=303e87f6c8bb68734ee34b73c62aa8eef0ff8bb0;hpb=682bfb07cec46a60ed230d40826088957500a22b;p=modules%2Fmed.git diff --git a/src/MEDCalc/gui/XmedConsoleDriver.cxx b/src/MEDCalc/gui/XmedConsoleDriver.cxx index 303e87f6c..c74431065 100644 --- a/src/MEDCalc/gui/XmedConsoleDriver.cxx +++ b/src/MEDCalc/gui/XmedConsoleDriver.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2011-2016 CEA/DEN, EDF R&D +// Copyright (C) 2011-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -18,13 +18,14 @@ // // Author : Guillaume Boulant (EDF) +#include "MEDModule.hxx" #include "XmedConsoleDriver.hxx" #include "Utils_SALOME_Exception.hxx" -#include "MEDModule.hxx" #include "MEDCommandsHistoryManager_i.hxx" #include "MEDFactoryClient.hxx" #include CORBA_CLIENT_HEADER(MED_Gen) #include CORBA_CLIENT_HEADER(MEDCommandsHistoryManager) +#include XmedConsoleDriver::XmedConsoleDriver(MEDModule* salomeModule) { @@ -60,7 +61,7 @@ void XmedConsoleDriver::setup() { commands += ""; commands += "from medcalc.medconsole import saveWorkspace, cleanWorkspace"; commands += "from medcalc.medconsole import putInWorkspace, removeFromWorkspace"; - commands += "from medcalc.medconsole import accessField"; + commands += "from medcalc.medconsole import accessField, view"; commands += "from medcalc.medconsole import getEnvironment, ls, la"; commands += ""; this->exec(commands); @@ -75,7 +76,6 @@ void XmedConsoleDriver::exec(const QStringList& commands) { MEDCALC::MEDCommandsHistoryManager_ptr history = MEDFactoryClient::getCommandsHistoryManager(); QStringListIterator it(commands); - int i = 0; while (it.hasNext()) { const QString& command = it.next(); _pyConsole->exec(command);