#include <ModelAPI_Events.h>
#include <Events_Loop.h>
+#include <Config_WidgetAPI.h>
+#include <Config_Keywords.h>
+
#include <QMainWindow>
#include <QLayout>
#include <QDialogButtonBox>
myActiveWidget(0)
{
ModuleBase_WidgetFactory aFactory(myDescription, myWorkshop);
+ std::string aTitle = aFactory.widgetAPI()->getProperty(FEATURE_TEXT);
+
+ setWindowTitle(aTitle.c_str());
SessionPtr aMgr = ModelAPI_Session::get();
std::shared_ptr<ModelAPI_Document> aDoc = aMgr->activeDocument();
/// \param theAttributeId an outpup parameter with attribute
void getGreedAttribute(std::string& theAttributeId);
+ /// Returns widget API from XML
+ const Config_WidgetAPI* widgetAPI() const { return myWidgetApi; }
+
protected:
/// check if ModuleBase_Widget has expandable widgets in getControls
bool hasExpandingControls(QWidget* theParent);