int XGUI_DocumentDataModel::rowCount(const QModelIndex &parent) const
{
std::shared_ptr<ModelAPI_Iterator> aIt = myDocument->featuresIterator(PARTS_GROUP);
+ int a = aIt->numIterationsLeft();
return aIt->numIterationsLeft() + 2;
}
return myDocument->featuresIterator(PARAMETERS_GROUP)->more();
if (theParent.internalId() == quintptr(&myConstructFolder))
return myDocument->featuresIterator(CONSTRUCTIONS_GROUP)->more();
- if (theParent.internalId() == 0)
- return false;
return false;
}
\ No newline at end of file
#include "XGUI_Workshop.h"
#include "XGUI_Viewer.h"
+#include <ModelAPI_PluginManager.h>
+#include <ModelAPI_Feature.h>
+
#include <Config_FeatureMessage.h>
#include <Event_Loop.h>
QMdiSubWindow* aWnd = myMainWindow->viewer()->createView();
aWnd->showMaximized();
myMainWindow->showPythonConsole();
+
+ std::shared_ptr<ModelAPI_PluginManager> aMgr = ModelAPI_PluginManager::get();
+ std::shared_ptr<ModelAPI_Feature> myRoot = aMgr->createFeature("Point");
}
//******************************************************