Salome HOME
Merge branch 'V9_2_2_BR'
[tools/yacsgen.git] / module_generator / hxx_tmpl_gui.py
index 2950c5dfce38c5a9d4c7f7f4ec458546ee20f747..e30c0883e1052b5a5cda6b1fd0a1ee8f0dcfec8c 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2009-2012  EDF R&D
+# Copyright (C) 2009-2019  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
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -20,7 +20,7 @@
 try:
   from string import Template
 except:
-  from compat import Template,set
+  from module_generator.compat import Template,set
 
 hxxgui_cxx="""
 #include "${component_name}GUI.h"
@@ -33,6 +33,7 @@ hxxgui_cxx="""
 #include <LightApp_Preferences.h>
 
 #include <SALOME_LifeCycleCORBA.hxx>
+#include <utilities.h>
 
 #define COMPONENT_NAME "${component_name}"
 
@@ -40,8 +41,7 @@ using namespace std;
 
 // Constructor
 ${component_name}GUI::${component_name}GUI() :
-  SalomeApp_Module( COMPONENT_NAME ), // Module name
-  LightApp_Module( COMPONENT_NAME )  
+  SalomeApp_Module( COMPONENT_NAME ) // Module name
 {
   // Initializations
   default_bool = false;