Add Global.h headers to modules

This commit is contained in:
wmayer
2021-12-18 14:06:40 +01:00
parent 44d872ddb9
commit ada653e591
13 changed files with 611 additions and 0 deletions

47
src/Mod/Fem/FemGlobal.h Normal file
View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef FEM_GLOBAL_H
#define FEM_GLOBAL_H
// Fem
#ifndef FemExport
#ifdef Fem_EXPORTS
# define FemExport FREECAD_DECL_EXPORT
#else
# define FemExport FREECAD_DECL_IMPORT
#endif
#endif
// FemGui
#ifndef FemGuiExport
#ifdef FemGui_EXPORTS
# define FemGuiExport FREECAD_DECL_EXPORT
#else
# define FemGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //FEM_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef IMPORT_GLOBAL_H
#define IMPORT_GLOBAL_H
// Import
#ifndef ImportExport
#ifdef Import_EXPORTS
# define ImportExport FREECAD_DECL_EXPORT
#else
# define ImportExport FREECAD_DECL_IMPORT
#endif
#endif
// ImportGui
#ifndef ImportGuiExport
#ifdef ImportGui_EXPORTS
# define ImportGuiExport FREECAD_DECL_EXPORT
#else
# define ImportGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //IMPORT_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef INSPECTION_GLOBAL_H
#define INSPECTION_GLOBAL_H
// Inspection
#ifndef InspectionExport
#ifdef Inspection_EXPORTS
# define InspectionExport FREECAD_DECL_EXPORT
#else
# define InspectionExport FREECAD_DECL_IMPORT
#endif
#endif
// InspectionGui
#ifndef InspectionGuiExport
#ifdef InspectionGui_EXPORTS
# define InspectionGuiExport FREECAD_DECL_EXPORT
#else
# define InspectionGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //INSPECTION_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef MESHPART_GLOBAL_H
#define MESHPART_GLOBAL_H
// MeshPart
#ifndef MeshPartExport
#ifdef MeshPart_EXPORTS
# define MeshPartExport FREECAD_DECL_EXPORT
#else
# define MeshPartExport FREECAD_DECL_IMPORT
#endif
#endif
// MeshPartGui
#ifndef MeshPartGuiExport
#ifdef MeshPartGui_EXPORTS
# define MeshPartGuiExport FREECAD_DECL_EXPORT
#else
# define MeshPartGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //MESHPART_GLOBAL_H

47
src/Mod/Path/PathGlobal.h Normal file
View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef PATH_GLOBAL_H
#define PATH_GLOBAL_H
// Path
#ifndef PathExport
#ifdef Path_EXPORTS
# define PathExport FREECAD_DECL_EXPORT
#else
# define PathExport FREECAD_DECL_IMPORT
#endif
#endif
// PathGui
#ifndef PathGuiExport
#ifdef PathGui_EXPORTS
# define PathGuiExport FREECAD_DECL_EXPORT
#else
# define PathGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //PATH_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef REEN_GLOBAL_H
#define REEN_GLOBAL_H
// Reen
#ifndef ReenExport
#ifdef ReverseEngineering_EXPORTS
# define ReenExport FREECAD_DECL_EXPORT
#else
# define ReenExport FREECAD_DECL_IMPORT
#endif
#endif
// ReenGui
#ifndef ReenGuiExport
#ifdef ReverseEngineeringGui_EXPORTS
# define ReenGuiExport FREECAD_DECL_EXPORT
#else
# define ReenGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //REEN_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2019 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef SKETCHER_GLOBAL_H
#define SKETCHER_GLOBAL_H
// Sketcher
#ifndef SketcherExport
#ifdef Sketcher_EXPORTS
# define SketcherExport FREECAD_DECL_EXPORT
#else
# define SketcherExport FREECAD_DECL_IMPORT
#endif
#endif
// SketcherGui
#ifndef SketcherGuiExport
#ifdef SketcherGui_EXPORTS
# define SketcherGuiExport FREECAD_DECL_EXPORT
#else
# define SketcherGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //SKETCHER_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef SPREADSHEET_GLOBAL_H
#define SPREADSHEET_GLOBAL_H
// Spreadsheet
#ifndef SpreadsheetExport
#ifdef Spreadsheet_EXPORTS
# define SpreadsheetExport FREECAD_DECL_EXPORT
#else
# define SpreadsheetExport FREECAD_DECL_IMPORT
#endif
#endif
// SpreadsheetGui
#ifndef SpreadsheetGuiExport
#ifdef SpreadsheetGui_EXPORTS
# define SpreadsheetGuiExport FREECAD_DECL_EXPORT
#else
# define SpreadsheetGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //SPREADSHEET_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef START_GLOBAL_H
#define START_GLOBAL_H
// Start
#ifndef StartExport
#ifdef Start_EXPORTS
# define StartExport FREECAD_DECL_EXPORT
#else
# define StartExport FREECAD_DECL_IMPORT
#endif
#endif
// StartGui
#ifndef StartGuiExport
#ifdef StartGui_EXPORTS
# define StartGuiExport FREECAD_DECL_EXPORT
#else
# define StartGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //START_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef SURFACE_GLOBAL_H
#define SURFACE_GLOBAL_H
// Surface
#ifndef SurfaceExport
#ifdef Surface_EXPORTS
# define SurfaceExport FREECAD_DECL_EXPORT
#else
# define SurfaceExport FREECAD_DECL_IMPORT
#endif
#endif
// SurfaceGui
#ifndef SurfaceGuiExport
#ifdef SurfaceGui_EXPORTS
# define SurfaceGuiExport FREECAD_DECL_EXPORT
#else
# define SurfaceGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //SURFACE_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef TECHDRAW_GLOBAL_H
#define TECHDRAW_GLOBAL_H
// TechDraw
#ifndef TechDrawExport
#ifdef TechDraw_EXPORTS
# define TechDrawExport FREECAD_DECL_EXPORT
#else
# define TechDrawExport FREECAD_DECL_IMPORT
#endif
#endif
// TechDrawGui
#ifndef TechDrawGuiExport
#ifdef TechDrawGui_EXPORTS
# define TechDrawGuiExport FREECAD_DECL_EXPORT
#else
# define TechDrawGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //TECHDRAW_GLOBAL_H

47
src/Mod/Web/WebGlobal.h Normal file
View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef WEB_GLOBAL_H
#define WEB_GLOBAL_H
// Web
#ifndef WebExport
#ifdef Web_EXPORTS
# define WebExport FREECAD_DECL_EXPORT
#else
# define WebExport FREECAD_DECL_IMPORT
#endif
#endif
// WebGui
#ifndef WebGuiExport
#ifdef WebGui_EXPORTS
# define WebGuiExport FREECAD_DECL_EXPORT
#else
# define WebGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //WEB_GLOBAL_H

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef _TEMPLATE__GLOBAL_H
#define _TEMPLATE__GLOBAL_H
// _TEMPLATE_
#ifndef _TEMPLATE_Export
#ifdef _TEMPLATE__EXPORTS
# define _TEMPLATE_Export FREECAD_DECL_EXPORT
#else
# define _TEMPLATE_Export FREECAD_DECL_IMPORT
#endif
#endif
// _TEMPLATE_Gui
#ifndef _TEMPLATE_GuiExport
#ifdef _TEMPLATE_Gui_EXPORTS
# define _TEMPLATE_GuiExport FREECAD_DECL_EXPORT
#else
# define _TEMPLATE_GuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //_TEMPLATE__GLOBAL_H