-// Copyright (C) 2011-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2011-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#ifndef XMEDCONSOLEDRIVER_HXX
#define XMEDCONSOLEDRIVER_HXX
-#include <SalomeApp_Application.h>
+#include "MEDCALCGUI.hxx"
+
#include <PyConsole_Console.h>
#include <QStringList>
-#include "MEDCALCGUI.hxx"
-
-typedef QList<QStringList> CommandsHistory;
+class MEDModule;
class MEDCALCGUI_EXPORT XmedConsoleDriver {
public:
- XmedConsoleDriver(SalomeApp_Application * application);
+ XmedConsoleDriver(MEDModule* salomeModule);
void setup();
void exec(const QStringList& commands);
- inline const CommandsHistory& getHistory() { return _history; }
-
private:
+ MEDModule* _salomeModule;
PyConsole_Console * _pyConsole;
bool _importXmedDone;
- CommandsHistory _history;
};
#endif //XMEDCONSOLEDRIVER_HXX