MeshPart: apply clang format

This commit is contained in:
wmayer
2023-09-02 01:36:28 +02:00
committed by wwmayer
parent c2bda2f756
commit 6fb2bcafe8
14 changed files with 633 additions and 508 deletions

View File

@@ -43,13 +43,15 @@ void loadMeshPartResource()
Gui::Translator::instance()->refresh();
}
namespace MeshPartGui {
class Module : public Py::ExtensionModule<Module>
namespace MeshPartGui
{
class Module: public Py::ExtensionModule<Module>
{
public:
Module() : Py::ExtensionModule<Module>("MeshPartGui")
Module()
: Py::ExtensionModule<Module>("MeshPartGui")
{
initialize("This module is the MeshPartGui module."); // register with Python
initialize("This module is the MeshPartGui module.");// register with Python
}
private:
@@ -60,7 +62,7 @@ PyObject* initModule()
return Base::Interpreter().addModule(new Module);
}
} // namespace MeshPartGui
}// namespace MeshPartGui
/* Python entry */
@@ -74,12 +76,14 @@ PyMOD_INIT_FUNC(MeshPartGui)
PyObject* mod = MeshPartGui::initModule();
Base::Console().Log("Loading GUI of MeshPart module... done\n");
// clang-format off
// instantiating the commands
CreateMeshPartCommands();
MeshPartGui::Workbench ::init();
MeshPartGui::ViewProviderCurveOnMesh ::init();
// clang-format on
// add resources and reloads the translators
// add resources and reloads the translators
loadMeshPartResource();
PyMOD_Return(mod);