-// Copyright (C) 2005-2008 OPEN CASCADE
+// Copyright (C) 2005-2012 OPEN CASCADE
//
-// 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.
+// 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.
//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// LIGHT : sample (no-corba-engine) SALOME module
// File : LIGHTGUI_DataModel.cxx
// Author : Julia DOROVSKIKH
{
// Insert new line before the item at position in the list,
// or at the end() if position is out of range
- LightApp_ModuleObject* modelRoot = dynamic_cast<LightApp_ModuleObject*>( root() );
+ LightApp_DataObject* modelRoot = dynamic_cast<LightApp_DataObject*>( root() );
LightApp_Study* study = dynamic_cast<LightApp_Study*>( module()->application()->activeStudy() );
if ( id > 0 ) {
if ( !modelRoot )
*/
bool LIGHTGUI_DataModel::deleteTextLine( const int id )
{
- LightApp_ModuleObject* modelRoot = dynamic_cast<LightApp_ModuleObject*>( root() );
+ LightApp_DataObject* modelRoot = dynamic_cast<LightApp_DataObject*>( root() );
if ( !modelRoot )
return false;
if ( !studyRoot )
return;
- LightApp_ModuleObject* modelRoot = new LightApp_ModuleObject( this, studyRoot );
+ CAM_ModuleObject* modelRoot = createModuleObject( studyRoot );
LIGHTGUI_DataObject* aParaObject;
LIGHTGUI_DataObject* aLineObject;