From: smh Date: Wed, 31 Mar 2004 14:25:53 +0000 (+0000) Subject: Add VISU_Event module X-Git-Tag: mergeto_Event_Server_20Apr04~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=415c168d404cc817c80c43706a0fbfee72f2c73f;p=modules%2Fvisu.git Add VISU_Event module --- diff --git a/src/Makefile.in b/src/Makefile.in index 0751cdb2..e251a39b 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -32,6 +32,6 @@ VPATH=.:@srcdir@ @COMMENCE@ -SUBDIRS = CONVERTOR PIPELINE OBJECT VISU_I VISUGUI VISU_SWIG +SUBDIRS = CONVERTOR PIPELINE OBJECT VISU_I VISU_Event VISUGUI VISU_SWIG @MODULE@ diff --git a/src/VISU_Event/Makefile.in b/src/VISU_Event/Makefile.in new file mode 100644 index 00000000..e0d7b858 --- /dev/null +++ b/src/VISU_Event/Makefile.in @@ -0,0 +1,53 @@ +# VISU VISU_Event : Define events for VISU component +# +# 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 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +# +# +# +# File : Makefile.in +# Author : Vadim SANDLER +# Module : VISU +# $Header$ + +top_srcdir=@top_srcdir@ +top_builddir=../.. +srcdir=@srcdir@ +VPATH=.:@srcdir@ + +@COMMENCE@ + +# header files +EXPORT_HEADERS= \ + VISU_Event.h + +# Libraries targets +LIB = libVISUEvent.la +LIB_SRC = \ + VISU_Event.cxx + +# additionnal information to compil and link file + +CPPFLAGS += $(QT_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome +CXXFLAGS += $(QT_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome +LDFLAGS += ${QT_MT_LIBS} -lEvent -L${KERNEL_ROOT_DIR}/lib/salome + + +@CONCLUDE@ + diff --git a/src/VISU_Event/VISU_Event.cxx b/src/VISU_Event/VISU_Event.cxx new file mode 100644 index 00000000..fdcb3792 --- /dev/null +++ b/src/VISU_Event/VISU_Event.cxx @@ -0,0 +1,49 @@ +// VISU VISU_Event : Define events for VISU component +// +// 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 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : VISU_Event.cxx +// Author : Vadim SANDLER +// Module : VISU +// $Header$ + +#include "VISU_Event.h" + +//=========================================================== +/*! + * VISU_Event::VISU_Event + * Constructor + */ +//=========================================================== +VISU_Event::VISU_Event( int eventType, SALOME_Semaphore* s ) : SALOME_Event ( eventType, s ) +{ +} + +//=========================================================== +/*! + * VISU_Event::VISU_Event + * Destructor + */ +//=========================================================== +VISU_Event::~VISU_Event() +{ +} diff --git a/src/VISU_Event/VISU_Event.h b/src/VISU_Event/VISU_Event.h new file mode 100644 index 00000000..dfa46e33 --- /dev/null +++ b/src/VISU_Event/VISU_Event.h @@ -0,0 +1,45 @@ +// VISU VISU_Event : Define events for VISU component +// +// 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 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : VISU_Event.h +// Author : Vadim SANDLER +// Module : VISU +// $Header$ + +#ifndef VISU_Event_HeaderFile +#define VISU_Event_HeaderFile + +#include "SALOME_Event.hxx" + +#define VISU_START_EVENT 10000 + +/* Customized VISU component event */ +class VISU_Event : public SALOME_Event { +public: + enum { CreateTestViewEvent = VISU_START_EVENT, ShowTestObjectEent, LastEvent = VISU_START_EVENT + 200 }; + + VISU_Event( int eventType, SALOME_Semaphore* s = 0 ); + ~VISU_Event(); +}; + +#endif