diff --git a/App/App.pro b/App/App.pro
index 55da744a4a..88df537d4d 100644
--- a/App/App.pro
+++ b/App/App.pro
@@ -1,7 +1,20 @@
-#This Source Code Form is subject to the terms of the Mozilla Public
-#License, v. 2.0. If a copy of the MPL was not distributed with this
-#file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
+# ***** BEGIN LICENSE BLOCK *****
+# This file is part of Natron ,
+# Copyright (C) 2015 INRIA and Alexandre Gauthier
+#
+# Natron 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.
+#
+# Natron 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 Natron. If not, see
+# ***** END LICENSE BLOCK *****
TARGET = Natron
VERSION = 2.0.0
diff --git a/App/NatronApp_main.cpp b/App/NatronApp_main.cpp
index f4a6849ee3..b944ed225b 100644
--- a/App/NatronApp_main.cpp
+++ b/App/NatronApp_main.cpp
@@ -1,16 +1,26 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
#include // perror
diff --git a/CrashReporter/CrashDialog.cpp b/CrashReporter/CrashDialog.cpp
index 5f0df0c81a..6cf35d5f7d 100644
--- a/CrashReporter/CrashDialog.cpp
+++ b/CrashReporter/CrashDialog.cpp
@@ -1,12 +1,20 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#include "CrashDialog.h"
#include
diff --git a/CrashReporter/CrashDialog.h b/CrashReporter/CrashDialog.h
index 5f18b3e571..46d2167939 100644
--- a/CrashReporter/CrashDialog.h
+++ b/CrashReporter/CrashDialog.h
@@ -1,12 +1,20 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef CRASHDIALOG_H
#define CRASHDIALOG_H
diff --git a/CrashReporter/CrashReporter.pro b/CrashReporter/CrashReporter.pro
index 0eaf28f093..cc7e70779f 100644
--- a/CrashReporter/CrashReporter.pro
+++ b/CrashReporter/CrashReporter.pro
@@ -1,3 +1,21 @@
+# ***** BEGIN LICENSE BLOCK *****
+# This file is part of Natron ,
+# Copyright (C) 2015 INRIA and Alexandre Gauthier
+#
+# Natron 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.
+#
+# Natron 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 Natron. If not, see
+# ***** END LICENSE BLOCK *****
+
TARGET = NatronCrashReporter
QT += core network gui
diff --git a/CrashReporter/main.cpp b/CrashReporter/main.cpp
index dacaa2599b..963ecf77b9 100644
--- a/CrashReporter/main.cpp
+++ b/CrashReporter/main.cpp
@@ -1,12 +1,20 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#include
#include
diff --git a/Engine/AppInstance.cpp b/Engine/AppInstance.cpp
index 6b370298d7..d1f2482892 100644
--- a/Engine/AppInstance.cpp
+++ b/Engine/AppInstance.cpp
@@ -1,16 +1,26 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "AppInstance.h"
diff --git a/Engine/AppInstance.h b/Engine/AppInstance.h
index d69ce55459..c23bc2ef69 100644
--- a/Engine/AppInstance.h
+++ b/Engine/AppInstance.h
@@ -1,19 +1,29 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef APPINSTANCE_H
#define APPINSTANCE_H
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
#include
diff --git a/Engine/AppInstanceWrapper.cpp b/Engine/AppInstanceWrapper.cpp
index b18ccef280..52dfd8629c 100644
--- a/Engine/AppInstanceWrapper.cpp
+++ b/Engine/AppInstanceWrapper.cpp
@@ -1,16 +1,26 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "AppInstanceWrapper.h"
diff --git a/Engine/AppInstanceWrapper.h b/Engine/AppInstanceWrapper.h
index c5c76e743a..b5e02683c0 100644
--- a/Engine/AppInstanceWrapper.h
+++ b/Engine/AppInstanceWrapper.h
@@ -1,12 +1,20 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
/**
* @brief Simple wrap for the AppInstance class that is the API we want to expose to the Python
@@ -16,9 +24,11 @@
#ifndef APPINSTANCEWRAPPER_H
#define APPINSTANCEWRAPPER_H
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "Engine/NodeWrapper.h"
diff --git a/Engine/AppManager.cpp b/Engine/AppManager.cpp
index a17d620414..0d3304bd26 100644
--- a/Engine/AppManager.cpp
+++ b/Engine/AppManager.cpp
@@ -1,16 +1,26 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "AppManager.h"
diff --git a/Engine/AppManager.h b/Engine/AppManager.h
index 49c501e30e..15b80de21f 100644
--- a/Engine/AppManager.h
+++ b/Engine/AppManager.h
@@ -1,19 +1,29 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef NATRON_GLOBAL_APPMANAGER_H_
#define NATRON_GLOBAL_APPMANAGER_H_
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
#include
diff --git a/Engine/BackDrop.cpp b/Engine/BackDrop.cpp
index c706632bd9..a3c8afe2cd 100644
--- a/Engine/BackDrop.cpp
+++ b/Engine/BackDrop.cpp
@@ -1,16 +1,26 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "BackDrop.h"
#include "Engine/Transform.h"
diff --git a/Engine/BackDrop.h b/Engine/BackDrop.h
index b9470d3b32..d31659bc6b 100644
--- a/Engine/BackDrop.h
+++ b/Engine/BackDrop.h
@@ -1,18 +1,29 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+
#ifndef BACKDROP_H
#define BACKDROP_H
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "Engine/NoOpBase.h"
diff --git a/Engine/BlockingBackgroundRender.cpp b/Engine/BlockingBackgroundRender.cpp
index 538ba15539..c2e6d0a899 100644
--- a/Engine/BlockingBackgroundRender.cpp
+++ b/Engine/BlockingBackgroundRender.cpp
@@ -1,16 +1,26 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "BlockingBackgroundRender.h"
diff --git a/Engine/BlockingBackgroundRender.h b/Engine/BlockingBackgroundRender.h
index 8c9c5a0ca0..4f66a0f898 100644
--- a/Engine/BlockingBackgroundRender.h
+++ b/Engine/BlockingBackgroundRender.h
@@ -1,19 +1,29 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef BLOCKINGBACKGROUNDRENDER_H
#define BLOCKINGBACKGROUNDRENDER_H
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
#include
diff --git a/Engine/Cache.h b/Engine/Cache.h
index 1183c598e1..d5b5c62efc 100644
--- a/Engine/Cache.h
+++ b/Engine/Cache.h
@@ -1,20 +1,29 @@
-// Natron
-//
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef NATRON_ENGINE_ABSTRACTCACHE_H_
#define NATRON_ENGINE_ABSTRACTCACHE_H_
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
#include
diff --git a/Engine/CacheEntry.h b/Engine/CacheEntry.h
index 5103d79ac4..9ee15b5f7c 100644
--- a/Engine/CacheEntry.h
+++ b/Engine/CacheEntry.h
@@ -1,20 +1,29 @@
-// Natron
-//
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef CACHEENTRY_H
#define CACHEENTRY_H
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
#include
diff --git a/Engine/ChannelSet.h b/Engine/ChannelSet.h
deleted file mode 100644
index a046e8414a..0000000000
--- a/Engine/ChannelSet.h
+++ /dev/null
@@ -1,284 +0,0 @@
-// Natron
-//
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
- *
- */
-
-#ifndef NATRON_ENGINE_CHANNELSET_H_
-#define NATRON_ENGINE_CHANNELSET_H_
-
-#include "Global/Macros.h"
-#include
-CLANG_DIAG_OFF(deprecated)
-#include
-CLANG_DIAG_ON(deprecated)
-#if !defined(Q_MOC_RUN) && !defined(SBK_RUN)
-CLANG_DIAG_OFF(unused-parameter)
-// /opt/local/include/boost/serialization/smart_cast.hpp:254:25: warning: unused parameter 'u' [-Wunused-parameter]
-#include
-CLANG_DIAG_ON(unused-parameter)
-#include
-#endif
-#include "Global/GlobalDefines.h"
-
-namespace Natron {
-class ChannelSet
-{
- U32 mask; // 1 bit per channel and LSB is for "all" channels
- unsigned int _size;
-
-
- friend class boost::serialization::access;
- template
- void serialize(Archive & ar,
- const unsigned int /*version*/)
- {
- ar & mask;
- ar & _size;
- }
-
-public:
-
- // class iterator: used to iterate over channels
- class iterator
- {
- Natron::Channel _cur;
- U32 _mask; // bit 0 means "all", other bits are for channels 1..31
-
-public:
- iterator(const iterator & other)
- : _cur(other._cur),_mask(other._mask)
- {
- }
-
- iterator(U32 mask_,
- Natron::Channel cur)
- {
- _cur = cur;
- _mask = mask_;
- }
-
- Natron::Channel operator *() const
- {
- return _cur;
- }
-
- Natron::Channel operator->() const
- {
- return _cur;
- }
-
- void operator++()
- {
- int i = (int)_cur;
-
- while (i < 32) {
- if ( _mask & (1 << i) ) {
- _cur = (Natron::Channel)i;
-
- return;
- }
- ++i;
- }
- _cur = Natron::Channel_black;
- }
-
- void operator++(int)
- {
- int i = (int)_cur;
-
- while (i < 32) {
- if ( _mask & (1 << i) ) {
- _cur = (Natron::Channel)i;
-
- return;
- }
- ++i;
- }
- }
-
- void operator--()
- {
- int i = (int)_cur;
-
- while (i >= 0) {
- if ( _mask & (1 << i) ) {
- _cur = (Natron::Channel)i;
-
- return;
- }
- --i;
- }
- _cur = Natron::Channel_black;
- }
-
- void operator--(int)
- {
- int i = (int)_cur;
-
- while (i >= 0) {
- if ( _mask & (1 << i) ) {
- _cur = (Natron::Channel)i;
-
- return;
- }
- --i;
- }
- _cur = Natron::Channel_black;
- }
-
- bool operator==(const iterator & other)
- {
- return _mask == other._mask && _cur == other._cur;
- }
-
- bool operator!=(const iterator & other)
- {
- return _mask != other._mask || _cur != other._cur;
- }
- };
-
- typedef iterator const_iterator;
-
-
- ChannelSet()
- : mask(0),_size(0)
- {
- }
-
- ChannelSet(const ChannelSet &source);
- ChannelSet(Natron::ChannelMask v)
- {
- *this = v;
- } // use operator=(ChannelMask v)
-
- ChannelSet(Natron::Channel v)
- {
- *this = v;
- } // use operator=(Channel z)
-
- ~ChannelSet()
- {
- }
-
- const ChannelSet & operator=(const ChannelSet & source);
- const ChannelSet & operator=(Natron::ChannelMask source);
- const ChannelSet & operator=(Natron::Channel z);
-
- void clear()
- {
- mask = 0; _size = 0;
- }
-
- operator bool() const {
- return (bool)(mask >> 1);
- } // allow to do stuff like if(channelsA & channelsB)
- bool empty() const
- {
- return !(bool)(mask >> 1);
- }
-
- bool operator==(const ChannelSet & source) const;
- bool operator!=(const ChannelSet & source) const
- {
- return !(*this == source);
- }
-
- bool operator<(const ChannelSet & source) const;
- bool operator==(Natron::ChannelMask v) const
- {
- return mask == U32(v << 1);
- }
-
- bool operator!=(Natron::ChannelMask v) const
- {
- return mask != U32(v << 1);
- }
-
- bool operator==(Natron::Channel z) const;
- bool operator!=(Natron::Channel z) const
- {
- return !(*this == z);
- }
-
- /*add a channel with +=*/
- void operator+=(const ChannelSet & source);
- void operator+=(Natron::ChannelMask source);
- void operator+=(Natron::Channel z);
- void insert(Natron::Channel z)
- {
- *this += z;
- }
-
- /*turn off a channel with -=*/
- void operator-=(const ChannelSet & source);
- void operator-=(Natron::ChannelMask source);
- void operator-=(Natron::Channel z);
- void erase(Natron::Channel z)
- {
- *this -= z;
- }
-
- void operator&=(const ChannelSet & source);
- void operator&=(Natron::ChannelMask source);
- void operator&=(Natron::Channel z);
-
-
- ChannelSet operator&(const ChannelSet & c) const;
- ChannelSet operator&(Natron::ChannelMask c) const;
- ChannelSet operator&(Natron::Channel z) const;
- bool contains(const ChannelSet & source) const;
- bool contains(Natron::ChannelMask source) const
- {
- return (mask & 1) || ( !( ~mask & (source << 1) ) );
- }
-
- bool contains(Natron::Channel z) const;
- unsigned size() const;
- Natron::Channel first() const;
- Natron::Channel next(Natron::Channel k) const;
- Natron::Channel last() const;
- Natron::Channel previous(Natron::Channel k) const;
-
- U32 value() const
- {
- return mask;
- }
-
- iterator begin()
- {
- return iterator( mask,first() );
- }
-
- iterator end()
- {
- Natron::Channel _last = this->last();
-
- return iterator( mask,(Natron::Channel)(_last + 1) );
- }
-
- void printOut() const;
-
-#define foreachChannels(CUR, CHANNELS) \
- for ( Natron::Channel CUR = CHANNELS.first(); CUR; CUR = CHANNELS.next(CUR) )
-};
-
-
-/*returns the channel of name "name"*/
-Natron::Channel getChannelByName(const std::string &name);
-
-/*Return a cstring with the name of the channel c*/
-std::string getChannelName(Natron::Channel c);
-
-/*useful function to check whether alpha is on in the mask*/
-bool hasAlpha(ChannelSet mask);
-} // namespace Natron
-
-Q_DECLARE_METATYPE(Natron::ChannelSet);
-
-#endif // NATRON_ENGINE_CHANNELSET_H_
diff --git a/Engine/CoonsRegularization.cpp b/Engine/CoonsRegularization.cpp
index 39039c20e6..be3f05eb70 100644
--- a/Engine/CoonsRegularization.cpp
+++ b/Engine/CoonsRegularization.cpp
@@ -1,12 +1,20 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
/*****************************************************************************/
/* */
diff --git a/Engine/CoonsRegularization.h b/Engine/CoonsRegularization.h
index 9ed0d40278..6eca90caeb 100644
--- a/Engine/CoonsRegularization.h
+++ b/Engine/CoonsRegularization.h
@@ -1,19 +1,29 @@
-// Natron
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef COONSREGULARIZATION_H
#define COONSREGULARIZATION_H
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
diff --git a/Engine/Curve.cpp b/Engine/Curve.cpp
index 8fcc1217ac..73246f0c66 100644
--- a/Engine/Curve.cpp
+++ b/Engine/Curve.cpp
@@ -1,17 +1,26 @@
-// Natron
-//
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include "Curve.h"
diff --git a/Engine/Curve.h b/Engine/Curve.h
index 40591b90d8..e6df0e3b48 100644
--- a/Engine/Curve.h
+++ b/Engine/Curve.h
@@ -1,20 +1,29 @@
-// Natron
-//
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-/*
- * Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
- * contact: immarespond at gmail dot com
+/* ***** BEGIN LICENSE BLOCK *****
+ * This file is part of Natron ,
+ * Copyright (C) 2015 INRIA and Alexandre Gauthier
*
- */
+ * Natron 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.
+ *
+ * Natron 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 Natron. If not, see
+ * ***** END LICENSE BLOCK ***** */
#ifndef NATRON_ENGINE_CURVE_H_
#define NATRON_ENGINE_CURVE_H_
+// ***** BEGIN PYTHON BLOCK *****
// from :
// "Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included."
#include
+// ***** END PYTHON BLOCK *****
#include
#include