X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Module.cpp;fp=src%2FPartSet%2FPartSet_Module.cpp;h=8528d7687c194bef7acefa30a8199dfedcd7d4c1;hb=9aec24c650126082c1011fc857c81307c50268b6;hp=669abec834207e6fb35e40e86d5c4b788e3a2ff2;hpb=7ec27d9ade25264df5a6d8e2308b3fb742366170;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 669abec83..8528d7687 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -123,6 +123,7 @@ #include #include +#include #include #include @@ -286,6 +287,13 @@ PartSet_Module::~PartSet_Module() void PartSet_Module::createFeatures() { ModuleBase_IModule::createFeatures(); + + // send signal to initialization plugin about the state of the preferences: to create part or not + bool aCreate = ModuleBase_Preferences::resourceMgr()->booleanValue( + ModuleBase_Preferences::GENERAL_SECTION, "create_init_part", true); + Events_MessageBool aCreateMsg(Events_Loop::eventByName(EVENT_CREATE_PART_ON_START), aCreate); + aCreateMsg.send(); + myRoot = new PartSet_RootNode(); myRoot->setWorkshop(workshop()); ModuleBase_IModule::loadProprietaryPlugins();