X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FLIGHTGUI%2FLIGHTGUI_DataObject.h;h=27c2aeb4d2e512167d75f288987a6580f90eedfa;hb=b4aeec97c42b2101ec064a7a6781fa9f58f69eb8;hp=940989bb046a1c58564da175f11d399ae8273ce1;hpb=98a43a54f8b56bbe68cd961b4d65cf027e20ca95;p=samples%2Flight.git diff --git a/src/LIGHTGUI/LIGHTGUI_DataObject.h b/src/LIGHTGUI/LIGHTGUI_DataObject.h index 940989b..27c2aeb 100644 --- a/src/LIGHTGUI/LIGHTGUI_DataObject.h +++ b/src/LIGHTGUI/LIGHTGUI_DataObject.h @@ -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 -#include - -#include +#include -/*! - * 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