+bool ModuleBase_WidgetCreatorFactory::hasPageWidget(const std::string& theType)
+{
+ return myPageToCreator.contains(theType);
+}
+
+ModuleBase_PageBase* ModuleBase_WidgetCreatorFactory::createPageByType(
+ const std::string& theType, QWidget* theParent,
+ Config_WidgetAPI* theWidgetApi, std::string theParentId)
+{
+ ModuleBase_PageBase* aPage = 0;
+
+ if (myPageToCreator.contains(theType)) {
+ WidgetCreatorPtr aCreator = myPageToCreator[theType];
+ aPage = aCreator->createPageByType(theType, theParent, theWidgetApi, theParentId);
+ }
+
+ return aPage;
+}
+
+