Browse Source

Code polishing

nordsoft 3 years ago
parent
commit
b4a806d7fa

+ 3 - 0
mapeditor/Animation.cpp

@@ -7,6 +7,9 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
+
+//code is copied from vcmiclient/CAnimation.cpp with minimal changes
+
 #include "StdInc.h"
 #include "Animation.h"
 

+ 1 - 0
mapeditor/Animation.h

@@ -8,6 +8,7 @@
  *
  */
 #pragma once
+//code is copied from vcmiclient/CAnimation.h with minimal changes
 
 #include "../lib/JsonNode.h"
 #include "../lib/GameConstants.h"

+ 3 - 0
mapeditor/BitmapHandler.cpp

@@ -7,6 +7,9 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
+
+//code is copied from vcmiclient/CBitmapHandler.cpp with minimal changes
+
 #include "StdInc.h"
 #include "BitmapHandler.h"
 

+ 1 - 0
mapeditor/BitmapHandler.h

@@ -8,6 +8,7 @@
  *
  */
 #pragma once
+//code is copied from vcmiclient/CBitmapHandler.h with minimal changes
 
 #define read_le_u16(p) (* reinterpret_cast<const ui16 *>(p))
 #define read_le_u32(p) (* reinterpret_cast<const ui32 *>(p))

+ 3 - 1
mapeditor/graphics.cpp

@@ -1,5 +1,5 @@
 /*
- * Graphics.cpp, part of VCMI engine
+ * graphics.cpp, part of VCMI engine
  *
  * Authors: listed in file AUTHORS in main folder
  *
@@ -7,6 +7,8 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
+
+//code is copied from vcmiclient/Graphics.cpp with minimal changes
 #include "StdInc.h"
 #include "graphics.h"
 

+ 2 - 1
mapeditor/graphics.h

@@ -1,5 +1,5 @@
 /*
- * Graphics.h, part of VCMI engine
+ * graphics.h, part of VCMI engine
  *
  * Authors: listed in file AUTHORS in main folder
  *
@@ -8,6 +8,7 @@
  *
  */
 #pragma once
+//code is copied from vcmiclient/Graphics.h with minimal changes
 
 #include "../lib/GameConstants.h"
 #include <QImage>

+ 10 - 0
mapeditor/mapcontroller.cpp

@@ -1,3 +1,13 @@
+/*
+ * mapcontroller.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "mapcontroller.h"
 
 #include "../lib/GameConstants.h"

+ 10 - 0
mapeditor/mapcontroller.h

@@ -1,3 +1,13 @@
+/*
+ * mapcontroller.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include "maphandler.h"

+ 11 - 0
mapeditor/maphandler.cpp

@@ -1,3 +1,14 @@
+/*
+ * maphandler.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
+//code is copied from vcmiclient/mapHandler.cpp with minimal changes
 #include "StdInc.h"
 #include "maphandler.h"
 #include "graphics.h"

+ 11 - 0
mapeditor/maphandler.h

@@ -1,4 +1,15 @@
+/*
+ * maphandler.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
+//code is copied from vcmiclient/mapHandler.h with minimal changes
 
 #include "StdInc.h"
 #include "../lib/mapping/CMap.h"

+ 10 - 0
mapeditor/mapsettings.cpp

@@ -1,3 +1,13 @@
+/*
+ * mapsettings.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "mapsettings.h"
 #include "ui_mapsettings.h"
 #include "mainwindow.h"

+ 10 - 0
mapeditor/mapsettings.h

@@ -1,3 +1,13 @@
+/*
+ * mapsettings.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include <QDialog>

+ 10 - 0
mapeditor/mapview.cpp

@@ -1,3 +1,13 @@
+/*
+ * mapview.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "StdInc.h"
 #include "mapview.h"
 #include "mainwindow.h"

+ 10 - 0
mapeditor/mapview.h

@@ -1,3 +1,13 @@
+/*
+ * mapview.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include <QGraphicsScene>

+ 10 - 0
mapeditor/objectbrowser.cpp

@@ -1,3 +1,13 @@
+/*
+ * objectbrowser.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "objectbrowser.h"
 #include "../lib/mapObjects/CObjectClassesHandler.h"
 

+ 10 - 0
mapeditor/objectbrowser.h

@@ -1,3 +1,13 @@
+/*
+ * objectbrowser.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include <QSortFilterProxyModel>

+ 10 - 0
mapeditor/playerparams.cpp

@@ -1,3 +1,13 @@
+/*
+ * playerparams.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "StdInc.h"
 #include "playerparams.h"
 #include "ui_playerparams.h"

+ 10 - 0
mapeditor/playerparams.h

@@ -1,3 +1,13 @@
+/*
+ * playerparams.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include <QWidget>

+ 10 - 0
mapeditor/playersettings.cpp

@@ -1,3 +1,13 @@
+/*
+ * playersettings.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "StdInc.h"
 #include "playersettings.h"
 #include "ui_playersettings.h"

+ 10 - 0
mapeditor/playersettings.h

@@ -1,3 +1,13 @@
+/*
+ * playersettings.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include "StdInc.h"

+ 10 - 0
mapeditor/scenelayer.cpp

@@ -1,3 +1,13 @@
+/*
+ * scenelayer.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "StdInc.h"
 #include "scenelayer.h"
 #include "mainwindow.h"

+ 10 - 0
mapeditor/scenelayer.h

@@ -1,3 +1,13 @@
+/*
+ * scenelayer.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include "../lib/int3.h"

+ 10 - 0
mapeditor/validator.cpp

@@ -1,3 +1,13 @@
+/*
+ * validator.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "StdInc.h"
 #include "validator.h"
 #include "ui_validator.h"

+ 10 - 0
mapeditor/validator.h

@@ -1,3 +1,13 @@
+/*
+ * validator.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include <QDialog>

+ 10 - 0
mapeditor/windownewmap.cpp

@@ -1,3 +1,13 @@
+/*
+ * windownewmap.cpp, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #include "StdInc.h"
 #include "../lib/mapping/CMap.h"
 #include "../lib/rmg/CRmgTemplateStorage.h"

+ 10 - 0
mapeditor/windownewmap.h

@@ -1,3 +1,13 @@
+/*
+ * windownewmap.h, part of VCMI engine
+ *
+ * Authors: listed in file AUTHORS in main folder
+ *
+ * License: GNU General Public License v2.0 or later
+ * Full text of license available in license.txt file, in main folder
+ *
+ */
+
 #pragma once
 
 #include <QDialog>