]> SALOME platform Git repositories - samples/pylight.git/commitdiff
Salome HOME
Merge branch 'V7_dev'
authorvsr <vsr@opencascade.com>
Fri, 25 Mar 2016 10:43:32 +0000 (13:43 +0300)
committervsr <vsr@opencascade.com>
Fri, 25 Mar 2016 10:43:37 +0000 (13:43 +0300)
22 files changed:
AUTHORS [deleted file]
CMakeLists.txt
ChangeLog [deleted file]
INSTALL [deleted file]
NEWS [deleted file]
README
SalomePYLIGHTConfig.cmake.in
adm_local/CMakeLists.txt
adm_local/cmake_files/CMakeLists.txt
adm_local/cmake_files/FindSalomePYLIGHT.cmake
adm_local/unix/CMakeLists.txt
adm_local/unix/config_files/CMakeLists.txt
adm_local/unix/config_files/check_PYLIGHT.m4
bin/CMakeLists.txt
resources/CMakeLists.txt
resources/LightApp.xml
resources/PYLIGHT_en.xml
resources/SalomeApp.xml.in
src/CMakeLists.txt
src/PYLIGHTGUI/CMakeLists.txt
src/PYLIGHTGUI/PYLIGHTGUI.py
src/PYLIGHTGUI/PYLIGHT_DataModel.py

diff --git a/AUTHORS b/AUTHORS
deleted file mode 100644 (file)
index e69de29..0000000
index 8a570e042f8b0dfa400a0b98a7be4f8760927b96..c6627788d13e906433c7f07cfc52ef39bb1bfeac 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
@@ -65,7 +65,8 @@ ENDIF()
 ##
 ## From KERNEL:
 ##
-FIND_PACKAGE(SalomePython REQUIRED)
+FIND_PACKAGE(SalomePythonInterp REQUIRED)
+FIND_PACKAGE(SalomePythonLibs REQUIRED)
 
 # Find GUI
 # ===========
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/INSTALL b/INSTALL
deleted file mode 100644 (file)
index cd1fe9c..0000000
--- a/INSTALL
+++ /dev/null
@@ -1 +0,0 @@
-SALOME5 : PYLIGHT module (sample)
diff --git a/NEWS b/NEWS
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/README b/README
index 669e611617ca958d3b13b720460f43c1071e3fb2..fb05d337a6865aa8c4038ea2243c0ca5145a1a49 100644 (file)
--- a/README
+++ b/README
@@ -1,9 +1,181 @@
-This module is a Salome example python light module.
-
-Installation and compilation is like every Salome modules :
- mkdir build_dir 
- mkdir instal_dir
- cd build_dir
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=instal_dir ../src_dir
- make
- make install
\ No newline at end of file
+***************************
+About SALOME PYLIGHT sample
+***************************
+
+SALOME PYLIGHT module presents example of a simple SALOME module, implemented
+with Python, without CORBA-engine; such type of module is called "light" in
+SALOME.
+
+This sample demonstrates a way to create a modules which have only GUI written
+in Python but nevertheless can be integrated into SALOME platform.
+
+This sample module is a simple text file reader. Each empty line read from the
+file is presented in the data tree as the beginning of new paragraph; paragraph
+can be empty. Non-empty line presents a "leaf" in the data tree.
+
+Thus, the data tree hierarchy has tree levels:
+
+Root
+  |__ Paragraph
+  |        |____ Text line
+  |        |____ Text line
+  |        |____ ...
+  |__ Paragraph
+  |__ Paragraph
+  |        |____ Text line
+  |        |____ ...
+  |__ ...
+
+For more information about SALOME platform please visit the SALOME web site:
+
+  <http://www.salome-platform.org/>
+
+=======
+License
+=======
+
+SALOME platform is distributed under the GNU Lesser General Public License.
+See COPYING file for more details.
+
+Also, additional information can be found at SALOME platform web site:
+
+  <http://www.salome-platform.org/downloads/license/>
+
+============
+Installation
+============
+
+--------------
+Pre-requisites
+--------------
+
+SALOME platform relies on a set of third-party softwares; some of them are needed
+at build time only, while other ones are needed in runtime also.
+
+For more information about the pre-requisites please visit SALOME platform web
+site:
+
+* Check Release Notes and Software Requirements of the latest SALOME release at
+
+  <http://www.salome-platform.org/downloads/current-version/>
+
+* Pre-requisites page at SALOME web site:
+
+  <http://www.salome-platform.org/downloads/license/>
+
+Note: SALOME PYLIGHT needs SALOME KERNEL and SALOME GUI as pre-requisites.
+
+------------------
+Basic Installation
+------------------
+
+The build procedure of the SALOME platform is implemented with CMake.
+In order to build the module you have to do the following actions:
+
+1. Set up environment for pre-requisites (see "Pre-requisites" section above).
+
+2. Create a build directory:
+
+   % mkdir PYLIGHT_BUILD
+
+3. Configure the build procedure:
+
+   % cd PYLIGHT_BUILD
+   % cmake -DCMAKE_BUILD_TYPE=<mode> -DCMAKE_INSTALL_PREFIX=<installation_directory> <path_to_src_dir>
+
+   where
+   - <mode> is either Release or Debug (default: Release);
+   - <installation_directory> is a destination folder to install SALOME PYLIGHT
+     module (default: /usr);
+   - <path_to_src_dir> is a path to the SALOME PYLIGHT sources directory.
+
+   Note: by default (if CMAKE_INSTALL_PREFIX option is not given), SALOME PYLIGHT
+   module will be configured for installation to the /usr directory that requires
+   root permissions to complete the installation.
+
+4. Build and install:
+
+   % make
+   % make install
+
+   This will install SALOME PYLIGHT module to the <installation_directory>
+   specified to cmake command on the previous step.
+
+-------------------
+Custom installation
+-------------------
+
+SALOME PYLIGHT module supports a set of advanced configuration options;
+for more details learn CMakeLists.txt file in the root source directory.
+
+You can also use other options of cmake command to customize your installation.
+Learn more about available options by typing
+
+   % cmake --help
+
+=============
+Functionality
+=============
+
+The functionality of the module is very similar to that one provided by
+LIGHT module.
+
+The module functionality includes the following user actions:
+
+* "File" menu:
+
+  - "Load text file"       : reads and loads the contents of text file to the
+                             study; the previous contents of the data tree
+                             is erased.
+
+  - "Save text file"       : dumps the contents of the data tree to the text
+                             file.
+
+* "PyLight" menu:
+
+  - "Insert Line"          : inserts new text line entered by the user to the
+                             end of selected paragraph.
+
+  - "Edit Line"            : allows user to edit selected text line.
+
+  - "Remove Lines" :       : removes selected line(s).
+
+  - "Clear All"            : clears contents of the data tree.
+
+  - "Display Line"         : displays selected line in the VTK 3D viewer.
+
+  - "Erase Line"           : erases selected line from the VTK 3D viewer.
+
+Most of these actions change the contents of the internal data model, so the data
+tree is rebuilt correspondingly.
+Some of these commands are also avaiable via the context popup menu in the Object
+Browser.
+
+Saving/restoring of the data is performed by using of default SALOMEDS-based
+persistence mechanism provided by SALOME GUI via embedded SalomeApp engine.
+
+Note: after opening of the sudy file the PYLIGHT module data is not
+immediately displayed in the Object Browser. To see it, you should activate the
+module. Such behaviour takes place because the PYLIGHT module does not publish any
+data directly in the SALOMEDS study - this is typical behavior of any "lighy"
+SALOME module, imposed by limitation of SALOME platform.
+
+=====
+Usage
+=====
+
+Run SALOME with PYLIGHT module:
+
+- In full, CORBA-based session:
+
+runSalome --modules=PYLIGHT
+
+- In "light" session:
+
+runLightSalome.sh --modules=PYLIGHT
+
+===============
+Troubleshooting
+===============
+
+Please, send a mail to webmaster.salome@opencascade.com.
index 3b8cf652e151bcd7197a7b30133c677d30f95bb0..9dd0ec5ec52127b435bc601b7673ecda9a15ff22 100644 (file)
@@ -5,7 +5,7 @@
 #
 
 ###############################################################
-# Copyright (C) 2007-2015  OPEN CASCADE
+# Copyright (C) 2007-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
index 6e8e91cd1b9925b4d7e446c7dd95851bc5666b99..b01f446d8f3a42e34c7b4f0a50f57a279a857113 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
index 55c0048b61892031643b649ca30d995f71301fe5..11658796398444a9d2a795d21635600b8dd02b1e 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
index dae1cfc5fe07c1f669c1c030c4bf945ba4ab0d98..3d7b2eeeffc242247fe9a4c4d84b4842cc3f9857 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2015  OPEN CASCADE
+# Copyright (C) 2007-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
index 800c376f7a696c39348708878c0fd1c927aa820e..cdd76ebbc08f3ecd44d6800c470fe4e6663849fb 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
index 835a5488398fa8c33451591f76cf23b144f91db2..3a29b83f334e338158f7f493bd2ff7e6d1ac1faf 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
index c5ef89ffe32cfab9a7b3bcce9fbe2d9e2d114f0f..790e6dc7edb44ee51b67ef7daf5a71c130ee36ee 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2015  OPEN CASCADE
+# Copyright (C) 2009-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
index c7f711cc05ac05a4b7cdd4a3dc2799c4cc9e2851..9466426cc0551deee64fab976808cf676f3b1f93 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
index 691d133703b7e0f05786810597f2784d5ca6ed7b..c2ce8d61774657e06e54d4d4dc8210681b1392af 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
index b0b470b2edf3a2ff19d7a0ed3e543b94ab8f199c..660c3aa941c18c5a00543f4e2fee9ee1c5d94600 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-  Copyright (C) 2009-2015  OPEN CASCADE
+  Copyright (C) 2009-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
index d662fb16edec65265699e5bc984bf3e3e26ae2ca..71a7e167f16437688531c0971f5123f7d4d4ff51 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='us-ascii'?>
 <!--
-  Copyright (C) 2009-2015  OPEN CASCADE
+  Copyright (C) 2009-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
index e5e7f3875dc71824330333cc1f8f27157f79b0a7..77558af15740c815031362b20cdd5e67e83c9e14 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-  Copyright (C) 2009-2015  OPEN CASCADE
+  Copyright (C) 2009-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
index 680f6366e35de87051f0eb294f81fbb542741220..ca6946b38ef7190576ab4f719162f798abf2ab86 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
index 9e3c7e32d144fddfb585b881759bb3af067d2682..809c06667c92ee4f9ba0d07c29c2d0c1ebf3b447 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015  OPEN CASCADE
+# Copyright (C) 2013-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
@@ -44,4 +44,4 @@ SET(_ts_RESOURCES
 # --- rules ---
 
 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON})
-QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_PYLIGHT_INSTALL_RES_DATA}")
\ No newline at end of file
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_PYLIGHT_INSTALL_RES_DATA}")
index e1de088c2ff5a9142fcc24f5400a9cecaf5b5532..dc2ec8c940d8211df374e5d7431928120be4100c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2015  OPEN CASCADE
+# Copyright (C) 2009-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
index adb4a540de71cfd74fa246a81feb7af22e171bf9..c1b52797e5c8c6c56513ff1445767b0cd7859027 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2015  OPEN CASCADE
+# Copyright (C) 2009-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