FreeCAD/src/Mod/Spreadsheet/App/AppSpreadsheet.cpp

52 lines
1.8 KiB
C++

/***************************************************************************
* *
* This program 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. *
* for detail see the LICENCE text file. *
* Jrgen Riegel 2002 *
* Eivind Kvedalen 2015 *
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Python.h>
#endif
#include <CXX/Extensions.hxx>
#include <CXX/Objects.hxx>
#include <Base/Console.h>
#include "Sheet.h"
namespace Spreadsheet {
class Module : public Py::ExtensionModule<Module>
{
public:
Module() : Py::ExtensionModule<Module>("Spreadsheet")
{
initialize("This module is the Spreadsheet module."); // register with Python
}
virtual ~Module() {}
private:
};
} // namespace Spreadsheet
/* Python entry */
PyMODINIT_FUNC initSpreadsheet() {
Spreadsheet::PropertySpreadsheetQuantity::init();
Spreadsheet::PropertyColumnWidths::init();
Spreadsheet::PropertyRowHeights::init();
Spreadsheet::PropertySheet::init();
Spreadsheet::Sheet::init();
Spreadsheet::SheetPython::init();
new Spreadsheet::Module();
Base::Console().Log("Loading Spreadsheet module... done\n");
}