Salome HOME
Copyright update: 2016
[samples/light.git] / src / LIGHTGUI / LIGHTGUI_DataObject.cxx
index 7bbfbd2b3e09f865af9d922276cf9002b2e2afbf..02af984b9b66bf1d2d7394f542f293718c80b36e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005-2015  OPEN CASCADE
+// Copyright (C) 2005-2016  OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 // 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 )
 {
 }