Salome HOME
Update copyrights
[samples/light.git] / src / LIGHTGUI / LIGHTGUI_DataObject.cxx
index 9659f0c7dad8ebeaf7195e9a8c639f4eb84d32c1..693b34602c8a77bfe6a2bbc833f28f0d626a5ba8 100644 (file)
@@ -1,35 +1,36 @@
-//  Copyright (C) 2005-2008  OPEN CASCADE
+// Copyright (C) 2005-2019  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, 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
-//  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_DataObject.cxx
 // Author : Julia DOROVSKIKH
-//
+
 #include "LIGHTGUI_DataObject.h"
 #include "LIGHTGUI_DataModel.h"
 
-#include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
-#include <QString>
+#include <SUIT_Session.h>
 
 /*!
   \class LIGHTGUI_DataObject
   \brief LIGHT module data object.
+
+  This class presents an elementary unit of the data model.
+  It includes presentation methods like: name(), icon(), toolTip(), etc.
 */
 
 /*!
   \param id line identifier
   \param txt text line corresponding to the data object
   \param parent parent data object
+
+  \note Due to virtual inheritance, the constructor explicitly
+  invokes constructor of all base classes
 */
 LIGHTGUI_DataObject::LIGHTGUI_DataObject( const int id, 
                                          const QString& txt, 
                                          SUIT_DataObject* parent )
 : CAM_DataObject( parent ),
   LightApp_DataObject( parent ),
-  myLineTxt( txt ),
-  myId( id )
+  myId( id ),
+  myLineTxt( txt )
 {
 }