Salome HOME
Merge from V6_main 01/04/2013
[samples/light.git] / src / LIGHTGUI / LIGHTGUI_DataObject.h
index 940989bb046a1c58564da175f11d399ae8273ce1..27c2aeb4d2e512167d75f288987a6580f90eedfa 100644 (file)
@@ -1,73 +1,52 @@
-//  LIGHT : sample (no-corba-engine) SALOME module
+// Copyright (C) 2005-2013  OPEN CASCADE
 //
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//  Author : Julia DOROVSKIKH
-//  Date   : 01/01/2005
-//  $Header$
 
+// LIGHT : sample (no-corba-engine) SALOME module
+// File   : LIGHTGUI_DataObject.h
+// Author : Julia DOROVSKIKH
+//
 #ifndef LIGHTGUI_DATAOBJECT_H
 #define LIGHTGUI_DATAOBJECT_H
 
 #include <LightApp_DataObject.h>
-#include <LightApp_RootObject.h>
-
-#include <qstring.h>
+#include <QString>
 
-/*!
- * LIGHTGUI_DataObject - LIGHT module's data object class
- */
 class LIGHTGUI_DataObject : public virtual LightApp_DataObject
 {
 public:
-  LIGHTGUI_DataObject ( SUIT_DataObject* = 0 );
-  LIGHTGUI_DataObject ( const QString&, SUIT_DataObject* = 0 );
+  LIGHTGUI_DataObject( const int, const QString&, SUIT_DataObject* = 0 );
   virtual ~LIGHTGUI_DataObject();
     
-  virtual QString entry() const;
+  QString    name() const;
+  QString    entry() const;
 
-  QString    name()    const;
-  QPixmap    icon()    const;
-  QString    toolTip() const;
+  QPixmap    icon( const int = NameId ) const;
+  QString    toolTip( const int = NameId ) const;
 
   QString    lineText() const;
   void       setLineText( const QString& );
   int        lineNb() const;
+  int        id() const;
 
 private:
+  int        myId;
   QString    myLineTxt;
 };
 
-/*!
- * LIGHTGUI_ModuleObject - LIGHT module's root data object class
- */
-
-class LIGHTGUI_ModuleObject :  public LIGHTGUI_DataObject,
-                               public LightApp_ModuleObject
-{
-public:
-  LIGHTGUI_ModuleObject ( CAM_DataModel*, SUIT_DataObject* = 0 );
-
-  virtual QString name()    const;
-  QPixmap         icon()    const;
-  QString         toolTip() const;
-};
-
 #endif // LIGHTGUI_DATAOBJECT_H