X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSUPERVGUI%2FSUPERVGUI_CanvasNode.h;h=b680d9ee341e8670188227bc98876526fd0f8144;hb=refs%2Ftags%2FV4_1_0_maintainance_20081128;hp=0be086ddd806ba398cf1cf975615d046ce000ca5;hpb=e6a75ddee66ff8c08097932cf0960b7764bc5d63;p=modules%2Fsuperv.git diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasNode.h b/src/SUPERVGUI/SUPERVGUI_CanvasNode.h index 0be086d..b680d9e 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasNode.h +++ b/src/SUPERVGUI/SUPERVGUI_CanvasNode.h @@ -1,15 +1,32 @@ -// SUPERV SUPERVGUI : GUI for Supervisor component +// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 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. // -// Copyright (C) 2003 OPEN CASCADE +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// SUPERV SUPERVGUI : GUI for Supervisor component // File : SUPERVGUI_CanvasNode.h // Author : Natalia KOPNOVA // Module : SUPERV - +// #ifndef SUPERVGUI_CanvasNode_H #define SUPERVGUI_CanvasNode_H -using namespace std; #include "SUPERVGUI_Def.h" #include "SUPERVGUI_BrowseNodeDlg.h" #include @@ -25,7 +42,6 @@ class SUPERVGUI_CanvasNode : public QObject { Q_OBJECT public: - SUPERVGUI_CanvasNode( SUIT_ResourceMgr*, QObject*, SUPERVGUI_Main*, SUPERV_CNode theNode, bool theIsCell=false); virtual ~SUPERVGUI_CanvasNode(); // done to ignore port update when node is removed @@ -72,6 +88,11 @@ class SUPERVGUI_CanvasNode : public QObject { QString getLabelText() const { return myLabelText; } + virtual QString getToolTipText() const; + + signals: + void objectCreatedDeleted(); // mkr : PAL8237 + public slots: void suspendResume(); void kill(); @@ -101,8 +122,11 @@ class SUPERVGUI_CanvasNode : public QObject { virtual void pastePort(); void managePorts(); void exportToLib(); - + protected: + SUPERVGUI_CanvasNode (SUIT_ResourceMgr*, QObject*, SUPERVGUI_Main*, + SUPERV_CNode theNode, bool theIsCell=false); + // redefined by most of CanvasNode successors virtual SUPERVGUI_CanvasNodePrs* createPrs() const; SUIT_ResourceMgr* resMgr() const { return myMgr; }