Skip to content
Permalink
Browse files

add missing copyright headers to c++ files

  • Loading branch information
jef-n committed May 21, 2012
1 parent 5635391 commit ee2dd79d394ca24976fe195b274e3847fc30029a
Showing with 2,059 additions and 216 deletions.
  1. +65 −0 scripts/addcopyright.sh
  2. +14 −0 src/analysis/interpolation/HalfEdge.cc
  3. +14 −0 src/analysis/interpolation/TriangleInterpolator.cc
  4. +14 −0 src/analysis/interpolation/Triangulation.cc
  5. +14 −0 src/analysis/raster/qgsrastercalcnode.cpp
  6. +6 −6 src/app/composer/qgscomposerlegendlayersdialog.cpp
  7. +6 −6 src/app/composer/qgscomposerlegendlayersdialog.h
  8. +6 −11 src/app/legend/qgslegendgroup.cpp
  9. +6 −11 src/app/legend/qgslegendgroup.h
  10. +6 −11 src/app/legend/qgslegenditem.cpp
  11. +6 −11 src/app/legend/qgslegenditem.h
  12. +6 −12 src/app/legend/qgslegendlayer.cpp
  13. +6 −11 src/app/legend/qgslegendlayer.h
  14. +6 −11 src/app/legend/qgslegendpropertygroup.cpp
  15. +6 −11 src/app/legend/qgslegendpropertygroup.h
  16. +6 −11 src/app/legend/qgslegendpropertyitem.cpp
  17. +6 −11 src/app/legend/qgslegendpropertyitem.h
  18. +6 −11 src/app/legend/qgslegendsymbologygroup.cpp
  19. +6 −11 src/app/legend/qgslegendsymbologygroup.h
  20. +6 −12 src/app/legend/qgslegendsymbologyitem.cpp
  21. +6 −11 src/app/legend/qgslegendsymbologyitem.h
  22. +14 −0 src/app/qgsbrowserdockwidget.cpp
  23. +14 −0 src/app/qgsbrowserdockwidget.h
  24. +14 −0 src/app/qgsembedlayerdialog.cpp
  25. +14 −0 src/app/qgsembedlayerdialog.h
  26. +14 −0 src/app/qgsformannotationdialog.cpp
  27. +14 −0 src/app/qgsformannotationdialog.h
  28. +14 −0 src/app/qgslabelengineconfigdialog.cpp
  29. +14 −0 src/app/qgslabelengineconfigdialog.h
  30. +14 −0 src/app/qgslabelpreview.cpp
  31. +14 −0 src/app/qgslabelpreview.h
  32. +6 −12 src/app/qgstip.h
  33. +6 −12 src/app/qgstipfactory.cpp
  34. +6 −11 src/app/qgstipfactory.h
  35. +14 −0 src/app/qgsundowidget.cpp
  36. +14 −0 src/app/qgsundowidget.h
  37. +14 −0 src/core/pal/costcalculator.cpp
  38. +14 −0 src/core/pal/costcalculator.h
  39. +14 −0 src/core/qgsbrowsermodel.cpp
  40. +14 −0 src/core/qgsbrowsermodel.h
  41. +14 −0 src/core/qgsdiagram.cpp
  42. +14 −0 src/core/qgsdiagram.h
  43. +14 −0 src/core/qgsdiagramrendererv2.cpp
  44. +14 −0 src/core/qgsdiagramrendererv2.h
  45. +14 −0 src/core/qgslabelsearchtree.cpp
  46. +14 −0 src/core/qgsmimedatautils.cpp
  47. +14 −0 src/core/qgsmimedatautils.h
  48. +14 −0 src/core/qgspluginlayer.cpp
  49. +14 −0 src/core/qgspluginlayer.h
  50. +14 −0 src/core/qgspythonrunner.cpp
  51. +14 −0 src/core/qgspythonrunner.h
  52. +14 −0 src/core/qgsvectorlayerundocommand.cpp
  53. +14 −0 src/core/qgsvectorlayerundocommand.h
  54. +14 −0 src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
  55. +14 −0 src/core/symbology-ng/qgscategorizedsymbolrendererv2.h
  56. +14 −0 src/core/symbology-ng/qgscolorbrewerpalette.h
  57. +14 −0 src/core/symbology-ng/qgsellipsesymbollayerv2.cpp
  58. +14 −0 src/core/symbology-ng/qgsellipsesymbollayerv2.h
  59. +14 −0 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
  60. +14 −0 src/core/symbology-ng/qgsfillsymbollayerv2.h
  61. +13 −12 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
  62. +14 −0 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.h
  63. +14 −0 src/core/symbology-ng/qgslinesymbollayerv2.cpp
  64. +14 −0 src/core/symbology-ng/qgslinesymbollayerv2.h
  65. +14 −0 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
  66. +14 −0 src/core/symbology-ng/qgsmarkersymbollayerv2.h
  67. +14 −0 src/core/symbology-ng/qgsrendererv2.cpp
  68. +14 −0 src/core/symbology-ng/qgsrendererv2.h
  69. +14 −0 src/core/symbology-ng/qgsrendererv2registry.cpp
  70. +14 −0 src/core/symbology-ng/qgsrendererv2registry.h
  71. +14 −0 src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
  72. +14 −0 src/core/symbology-ng/qgssinglesymbolrendererv2.h
  73. +14 −0 src/core/symbology-ng/qgsstylev2.cpp
  74. +14 −0 src/core/symbology-ng/qgsstylev2.h
  75. +14 −0 src/core/symbology-ng/qgssymbollayerv2.cpp
  76. +14 −0 src/core/symbology-ng/qgssymbollayerv2.h
  77. +14 −0 src/core/symbology-ng/qgssymbollayerv2registry.cpp
  78. +14 −0 src/core/symbology-ng/qgssymbollayerv2registry.h
  79. +14 −0 src/core/symbology-ng/qgssymbollayerv2utils.cpp
  80. +14 −0 src/core/symbology-ng/qgssymbollayerv2utils.h
  81. +14 −0 src/core/symbology-ng/qgssymbologyv2conversion.cpp
  82. +14 −0 src/core/symbology-ng/qgssymbologyv2conversion.h
  83. +14 −0 src/core/symbology-ng/qgssymbolv2.cpp
  84. +14 −0 src/core/symbology-ng/qgssymbolv2.h
  85. +14 −0 src/core/symbology-ng/qgsvectorcolorrampv2.cpp
  86. +14 −0 src/core/symbology-ng/qgsvectorcolorrampv2.h
  87. +15 −0 src/gui/qgsprojectbadlayerguihandler.cpp
  88. +14 −0 src/gui/qgsprojectbadlayerguihandler.h
  89. +14 −0 src/gui/symbology-ng/qgsbrushstylecombobox.cpp
  90. +14 −0 src/gui/symbology-ng/qgsbrushstylecombobox.h
  91. +14 −0 src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
  92. +14 −0 src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.h
  93. +14 −0 src/gui/symbology-ng/qgscolorrampcombobox.cpp
  94. +14 −0 src/gui/symbology-ng/qgscolorrampcombobox.h
  95. +14 −0 src/gui/symbology-ng/qgsellipsesymbollayerv2widget.cpp
  96. +14 −0 src/gui/symbology-ng/qgsellipsesymbollayerv2widget.h
  97. +14 −0 src/gui/symbology-ng/qgsgraduatedsymbolrendererv2widget.cpp
  98. +15 −0 src/gui/symbology-ng/qgsgraduatedsymbolrendererv2widget.h
  99. +14 −0 src/gui/symbology-ng/qgspenstylecombobox.cpp
  100. +14 −0 src/gui/symbology-ng/qgspenstylecombobox.h
  101. +14 −1 src/gui/symbology-ng/qgsrendererv2propertiesdialog.cpp
  102. +15 −0 src/gui/symbology-ng/qgsrendererv2propertiesdialog.h
  103. +14 −0 src/gui/symbology-ng/qgsrendererv2widget.cpp
  104. +14 −0 src/gui/symbology-ng/qgsrendererv2widget.h
  105. +14 −0 src/gui/symbology-ng/qgssinglesymbolrendererv2widget.cpp
  106. +14 −0 src/gui/symbology-ng/qgssinglesymbolrendererv2widget.h
  107. +14 −0 src/gui/symbology-ng/qgsstylev2managerdialog.cpp
  108. +14 −0 src/gui/symbology-ng/qgsstylev2managerdialog.h
  109. +15 −0 src/gui/symbology-ng/qgssymbollayerv2widget.cpp
  110. +15 −0 src/gui/symbology-ng/qgssymbollayerv2widget.h
  111. +14 −0 src/gui/symbology-ng/qgssymbollevelsv2dialog.cpp
  112. +14 −0 src/gui/symbology-ng/qgssymbollevelsv2dialog.h
  113. +14 −0 src/gui/symbology-ng/qgssymbolv2propertiesdialog.cpp
  114. +14 −0 src/gui/symbology-ng/qgssymbolv2propertiesdialog.h
  115. +14 −0 src/gui/symbology-ng/qgssymbolv2selectordialog.cpp
  116. +14 −0 src/gui/symbology-ng/qgssymbolv2selectordialog.h
  117. +14 −0 src/gui/symbology-ng/qgsvectorcolorbrewercolorrampv2dialog.cpp
  118. +14 −0 src/gui/symbology-ng/qgsvectorcolorbrewercolorrampv2dialog.h
  119. +14 −0 src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.cpp
  120. +14 −0 src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.h
  121. +14 −0 src/gui/symbology-ng/qgsvectorfieldwidget.h
  122. +14 −0 src/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.cpp
  123. +14 −0 src/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.h
  124. +14 −0 src/gui/symbology-ng/qgsvectorrandomcolorrampv2dialog.cpp
  125. +14 −0 src/gui/symbology-ng/qgsvectorrandomcolorrampv2dialog.h
  126. +14 −0 src/mapserver/qgsgetrequesthandler.cpp
  127. +14 −0 src/mapserver/qgslogicalfilter.cpp
  128. +14 −0 src/mapserver/qgsmsutils.cpp
  129. +14 −0 src/mapserver/qgsmsutils.h
  130. +14 −0 src/plugins/diagram_overlay/qgsdiagramrenderer.cpp
  131. +14 −0 src/plugins/globe/qgsosgearthtilesource.cpp
  132. +14 −0 src/plugins/globe/qgsosgearthtilesource.h
  133. +14 −0 src/plugins/grass/qgis.g.browser.cpp
  134. +14 −0 src/plugins/interpolation/qgsidwinterpolatordialog.cpp
  135. +14 −0 src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp
  136. +14 −0 src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.h
  137. +14 −0 src/providers/gdal/qgsgdaldataitems.cpp
  138. +14 −0 src/providers/gdal/qgsgdaldataitems.h
  139. +14 −0 src/providers/grass/qgis.d.rast.c
  140. +14 −0 src/providers/grass/qgis.g.info.c
  141. +14 −0 src/providers/postgres/qgspostgresdataitems.cpp
  142. +14 −0 src/providers/postgres/qgspostgresdataitems.h
  143. +14 −0 src/providers/spatialite/qgsspatialiteconnection.cpp
  144. +14 −0 src/providers/spatialite/qgsspatialiteconnection.h
  145. +14 −0 src/providers/spatialite/qgsspatialitedataitems.cpp
  146. +14 −0 src/providers/spatialite/qgsspatialitedataitems.h
  147. +14 −0 src/providers/wfs/qgswfsconnection.cpp
  148. +14 −0 src/providers/wfs/qgswfsconnection.h
  149. +14 −0 src/providers/wfs/qgswfsdataitems.cpp
  150. +14 −0 src/providers/wfs/qgswfsdataitems.h
  151. +14 −0 src/providers/wfs/qgswfsutils.cpp
  152. +14 −0 src/providers/wfs/qgswfsutils.h
  153. +14 −0 src/providers/wms/qgswmsdataitems.cpp
  154. +14 −0 src/providers/wms/qgswmsdataitems.h
@@ -0,0 +1,65 @@
#!/bin/bash
# licensecheck -r src

for i in $(<files); do
author=
authordate=
eval $(git log --reverse --pretty="export author='%an' authordate=\"\$(date --date='%ai' +'%%B %Y')\"" $i | head -1)
basename=$(basename $i)
authoryear=${authordate#* }
case $author in
wonder|"Martin Dobias")
authorname="Martin Dobias"
authoremail="wonder.sk at gmail.com"
;;

"Marco Hugentobler"|mhugent)
authorname="Marco Hugentobler"
authoremail="marco dot hugentobler at sourcepole dot ch"
;;

"Pirmin Kalberer")
authorname="Pirmin Kalberer"
authoremail="pka at sourcepole dot ch"
;;

rblazek)
authorname="Radim Blazek"
authoremail="radim dot blazek at gmail dot com"
;;

timlinux)
authorname="Tim Sutton"
authoremail="tim dot linfiniti at com"
;;

*)
echo "Author $author not found."
exit 1
;;
esac

src=$i
if [ -f "$i.nocopyright" ]; then
src=$i.nocopyright
fi

cat - $src >/tmp/new <<EOF
/***************************************************************************
$basename
---------------------
begin : $authordate
copyright : (C) $authoryear by $authorname
email : $authoremail
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
EOF
[ -f $i.nocopyright ] || mv $i $i.nocopyright
cp /tmp/new $i
done
@@ -1,3 +1,17 @@
/***************************************************************************
HalfEdge.cc
---------------------
begin : September 2009
copyright : (C) 2009 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "HalfEdge.h"

//empty file, all methods are inline
@@ -1,3 +1,17 @@
/***************************************************************************
TriangleInterpolator.cc
---------------------
begin : September 2009
copyright : (C) 2009 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "TriangleInterpolator.h"

//empty file, all methods are inline
@@ -1,3 +1,17 @@
/***************************************************************************
Triangulation.cc
---------------------
begin : September 2009
copyright : (C) 2009 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "Triangulation.h"

//empty file (abstract class)
@@ -1,3 +1,17 @@
/***************************************************************************
qgsrastercalcnode.cpp
---------------------
begin : October 2010
copyright : (C) 2010 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qgsrastercalcnode.h"
#include <cfloat>

@@ -1,17 +1,17 @@
/***************************************************************************
qgscomposerlegendlayersdialog.cpp
-------------------------------
***************************************************************************/

/***************************************************************************
qgscomposerlegendlayersdialog.cpp
---------------------
begin : December 2010
copyright : (C) 2010 by Tim Sutton
email : tim dot linfiniti at com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#include "qgscomposerlegendlayersdialog.h"

#include <QStandardItem>
@@ -1,17 +1,17 @@
/***************************************************************************
qgscomposerlegenditemdialog.h
-----------------------------
***************************************************************************/

/***************************************************************************
qgscomposerlegendlayersdialog.h
---------------------
begin : December 2010
copyright : (C) 2010 by Tim Sutton
email : tim dot linfiniti at com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#ifndef QGSCOMPOSERLEGENDLAYERSDIALOG_H
#define QGSCOMPOSERLEGENDLAYERSDIALOG_H

@@ -1,21 +1,16 @@
/***************************************************************************
* Copyright (C) 2005 by Tim Sutton *
* aps02ts@macbuntu *
qgslegendgroup.cpp
---------------------
begin : January 2007
copyright : (C) 2007 by Martin Dobias
email : wonder.sk at gmail.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "qgsapplication.h"
#include "qgisapp.h"
@@ -1,21 +1,16 @@
/***************************************************************************
* Copyright (C) 2005 by Tim Sutton *
* aps02ts@macbuntu *
qgslegendgroup.h
---------------------
begin : January 2007
copyright : (C) 2007 by Martin Dobias
email : wonder.sk at gmail.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef QGSLEGENDGROUP_H
#define QGSLEGENDGROUP_H
@@ -1,21 +1,16 @@
/***************************************************************************
* Copyright (C) 2005 by Tim Sutton *
* aps02ts@macbuntu *
qgslegenditem.cpp
---------------------
begin : January 2007
copyright : (C) 2007 by Martin Dobias
email : wonder.sk at gmail.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "qgslegenditem.h"
#include <QCoreApplication>
@@ -1,21 +1,16 @@
/***************************************************************************
* Copyright (C) 2005 by Tim Sutton *
* aps02ts@macbuntu *
qgslegenditem.h
---------------------
begin : January 2007
copyright : (C) 2007 by Martin Dobias
email : wonder.sk at gmail.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef QGSLEGENDITEM_H
#define QGSLEGENDITEM_H
@@ -1,23 +1,17 @@
/***************************************************************************
* Copyright (C) 2005 by Tim Sutton *
* aps02ts@macbuntu *
qgslegendlayer.cpp
---------------------
begin : January 2007
copyright : (C) 2007 by Martin Dobias
email : wonder.sk at gmail.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/

#include "qgsapplication.h"
#include "qgisapp.h"
#include "qgslegend.h"
@@ -1,21 +1,16 @@
/***************************************************************************
* Copyright (C) 2005 by Tim Sutton *
* aps02ts@macbuntu *
qgslegendlayer.h
---------------------
begin : January 2007
copyright : (C) 2007 by Martin Dobias
email : wonder.sk at gmail.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef QGSLEGENDLAYER_H
#define QGSLEGENDLAYER_H

0 comments on commit ee2dd79

Please sign in to comment.
You can’t perform that action at this time.