-// Copyright (C) 2006-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2021 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
#include <QToolButton>
-#if HAS_QSCI4>0
-#include <qsciscintilla.h>
-#include <qscilexerpython.h>
+#ifdef HAS_PYEDITOR
+#include <PyEditor_Editor.h>
#endif
#include <cassert>
_glayout->addLayout( glt , 1);
_glayout->addWidget( _sci );
+ if (!QtGuiContext::getQtCurrent()->isEdition())
+ {
+ gener_template->setEnabled (false);
+ _liFuncName->setEnabled (false);
+ }
+
connect(_liFuncName, SIGNAL(textChanged(const QString&)),
this, SLOT(onFuncNameModified(const QString&)));