From: Vitaly SMETANNIKOV Date: Wed, 7 Jun 2017 14:49:12 +0000 (+0300) Subject: Add copyright header according to request of CEA from 06.06.2017 X-Git-Tag: V_2.7.1.1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e9bead22dba0c11f4417fc3493f4b7f64ed3039;p=modules%2Fshaper.git Add copyright header according to request of CEA from 06.06.2017 --- diff --git a/scripts/doxy2swig.py b/scripts/doxy2swig.py index 4179dcb13..08d3288e1 100755 --- a/scripts/doxy2swig.py +++ b/scripts/doxy2swig.py @@ -76,7 +76,7 @@ def shift(txt, indent = ' ', prepend = ''): """Return a list corresponding to the lines of text in the `txt` list indented by `indent`. Prepend instead the string given in `prepend` to the beginning of the first line. Note that if len(prepend) > len(indent), then - `prepend` will be truncated (doing better is tricky!). This preserves a + `prepend` will be truncated (doing better is tricky!). This preserves a special '' entry at the end of `txt` (see `do_para` for the meaning). """ if type(indent) is int: @@ -260,7 +260,7 @@ class Doxy2SWIG: self.add_text(pre_char) self.subnode_parse(node) self.add_text(post_char) - + # MARK: Helper functions def get_specific_subnodes(self, node, name, recursive=0): """Given a node and a name, return a list of child `ELEMENT_NODEs`, that @@ -394,7 +394,7 @@ class Doxy2SWIG: def get_memberdef_nodes_and_signatures(self, node, kind): """Collects the memberdef nodes and corresponding signatures that correspond to public function entries that are at most depth 2 deeper - than the current (compounddef) node. Returns a dictionary with + than the current (compounddef) node. Returns a dictionary with function signatures (what swig expects after the %feature directive) as keys, and a list of corresponding memberdef nodes as values.""" sig_dict = {} @@ -427,7 +427,7 @@ class Doxy2SWIG: else: sig_dict[sig] = [n] return sig_dict - + def handle_typical_memberdefs_no_overload(self, signature, memberdef_nodes): """Produce standard documentation for memberdef_nodes.""" for n in memberdef_nodes: @@ -459,12 +459,12 @@ class Doxy2SWIG: self.add_line_with_subsequent_indent('* ' + self.get_function_signature(n)) self.subnode_parse(n, pieces=[], indent=4, ignore=['definition', 'name']) self.add_text(['";', '\n']) - + # MARK: Tag handlers def do_linebreak(self, node): self.add_text(' ') - + def do_ndash(self, node): self.add_text('--') @@ -476,7 +476,7 @@ class Doxy2SWIG: def do_bold(self, node): self.surround_parse(node, '**', '**') - + def do_computeroutput(self, node): self.surround_parse(node, '`', '`') @@ -495,19 +495,19 @@ class Doxy2SWIG: # make following text have no gap to the heading: pieces.extend([''.join(self.pieces) + ' \n', '']) self.pieces = pieces - + def do_verbatim(self, node): self.start_new_paragraph() self.subnode_parse(node, pieces=[''], indent=4) - + def do_blockquote(self, node): self.start_new_paragraph() self.subnode_parse(node, pieces=[''], indent='> ') - + def do_hruler(self, node): self.start_new_paragraph() self.add_text('* * * * * \n') - + def do_includes(self, node): self.add_text('\nC++ includes: ') self.subnode_parse(node) @@ -612,7 +612,7 @@ class Doxy2SWIG: def do_parameternamelist(self, node): self.subnode_parse(node) self.add_text([' :', ' \n']) - + def do_parametername(self, node): if self.pieces != [] and self.pieces != ['* ', '']: self.add_text(', ') @@ -644,7 +644,7 @@ class Doxy2SWIG: # MARK: %feature("docstring") producing tag handlers def do_compounddef(self, node): """This produces %feature("docstring") entries for classes, and handles - class, namespace and file memberdef entries specially to allow for + class, namespace and file memberdef entries specially to allow for overloaded functions. For other cases, passes parsing on to standard handlers (which may produce unexpected results). """ @@ -695,7 +695,7 @@ class Doxy2SWIG: md_nodes = self.get_memberdef_nodes_and_signatures(node, kind) for sig in md_nodes: self.handle_typical_memberdefs(sig, md_nodes[sig]) - + def do_memberdef(self, node): """Handle cases outside of class, struct, file or namespace. These are now dealt with by `handle_overloaded_memberfunction`. @@ -728,7 +728,7 @@ class Doxy2SWIG: if n not in first.values(): self.parse(n) self.add_text(['";', '\n']) - + # MARK: Entry tag handlers (dont print anything meaningful) def do_sectiondef(self, node): kind = node.attributes['kind'].value @@ -820,11 +820,11 @@ def main(): default=False, dest='q', help='be quiet and minimize output') - + options, args = parser.parse_args() if len(args) != 2: parser.error("no input and output specified") - + p = Doxy2SWIG(args[0], with_function_signature = options.f, with_type_info = options.t, diff --git a/src/BuildAPI/CMakeLists.txt b/src/BuildAPI/CMakeLists.txt index 0d3073bd6..3ffcf78cc 100644 --- a/src/BuildAPI/CMakeLists.txt +++ b/src/BuildAPI/CMakeLists.txt @@ -1,4 +1,22 @@ -## Copyright (C) 2014-20xx CEA/DEN, EDF R&D +## Copyright (C) 2014-2017 CEA/DEN, EDF R&D +## +## 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, or (at your option) any later version. +## +## 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 +## INCLUDE(Common) diff --git a/src/BuildPlugin/CMakeLists.txt b/src/BuildPlugin/CMakeLists.txt index 3cb6433d2..9331922f7 100644 --- a/src/BuildPlugin/CMakeLists.txt +++ b/src/BuildPlugin/CMakeLists.txt @@ -1,4 +1,22 @@ -## Copyright (C) 2014-20xx CEA/DEN, EDF R&D +## Copyright (C) 2014-2017 CEA/DEN, EDF R&D +## +## 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, or (at your option) any later version. +## +## 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 +## INCLUDE(Common) INCLUDE(UnitTest) diff --git a/src/BuildPlugin/Test/Test1920.py b/src/BuildPlugin/Test/Test1920.py index 4d2439623..96f8eb6dc 100644 --- a/src/BuildPlugin/Test/Test1920.py +++ b/src/BuildPlugin/Test/Test1920.py @@ -1,3 +1,23 @@ +## Copyright (C) 2014-2017 CEA/DEN, EDF R&D +## +## 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, or (at your option) any later version. +## +## 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 +## + from salome.shaper import model model.begin() diff --git a/src/BuildPlugin/Test/TestEdge.py b/src/BuildPlugin/Test/TestEdge.py index 527358d3e..98f6b478b 100644 --- a/src/BuildPlugin/Test/TestEdge.py +++ b/src/BuildPlugin/Test/TestEdge.py @@ -1,3 +1,23 @@ +## Copyright (C) 2014-2017 CEA/DEN, EDF R&D +## +## 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, or (at your option) any later version. +## +## 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 +## + # Initialization of the test from ModelAPI import * from GeomDataAPI import * diff --git a/src/BuildPlugin/Test/TestFace.py b/src/BuildPlugin/Test/TestFace.py index e4f6bd58a..f48681703 100644 --- a/src/BuildPlugin/Test/TestFace.py +++ b/src/BuildPlugin/Test/TestFace.py @@ -1,3 +1,23 @@ +## Copyright (C) 2014-2017 CEA/DEN, EDF R&D +## +## 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, or (at your option) any later version. +## +## 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 +## + # Initialization of the test from ModelAPI import * from GeomDataAPI import * diff --git a/src/BuildPlugin/Test/TestShell.py b/src/BuildPlugin/Test/TestShell.py index 24c6cb9ff..52d37b68b 100644 --- a/src/BuildPlugin/Test/TestShell.py +++ b/src/BuildPlugin/Test/TestShell.py @@ -1,3 +1,23 @@ +## Copyright (C) 2014-2017 CEA/DEN, EDF R&D +## +## 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, or (at your option) any later version. +## +## 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 +## + # Initialization of the test from ModelAPI import * from GeomDataAPI import * diff --git a/src/BuildPlugin/edge_widget.xml b/src/BuildPlugin/edge_widget.xml index 196c252aa..ca65f6ead 100644 --- a/src/BuildPlugin/edge_widget.xml +++ b/src/BuildPlugin/edge_widget.xml @@ -1,4 +1,23 @@ - + + + diff --git a/src/BuildPlugin/shell_widget.xml b/src/BuildPlugin/shell_widget.xml index 45e2a716e..d454678c6 100644 --- a/src/BuildPlugin/shell_widget.xml +++ b/src/BuildPlugin/shell_widget.xml @@ -1,4 +1,23 @@ - + +