Commit 9c05edd4 authored by Martin Schultz's avatar Martin Schultz

added nogui support for MMeshConversion Plugin

parent 3c6bee69
......@@ -66,6 +66,13 @@ void MeshConvertPlugin::initializePlugin()
void MeshConvertPlugin::pluginsInitialized()
{
//populate scripting function
emit setSlotDescription("convert(int,bool)", "Convert a mesh to PolyMesh or to TriMesh. returns the ID of the new mesh or -1 in case of error. The old mesh remains unchanged.",
QString("object_id,toTriMesh").split(","),
QString(" id of an object to convert, flag to convert to a TriMesh, if not set creates a new PolyMesh").split(","));
if(! OpenFlipper::Options::gui())
return;
// Create your toolbar
toolbar = new QToolBar(tr("Mesh conversion"));
......@@ -94,10 +101,7 @@ void MeshConvertPlugin::pluginsInitialized()
// Integrate the new toolbar into OpenFlipper
emit addToolbar( toolbar );
//populate scripting function
emit setSlotDescription("convert(int,bool)", "Convert a mesh to PolyMesh or to TriMesh. returns the ID of the new mesh or -1 in case of error. The old mesh remains unchanged.",
QString("object_id,toTriMesh").split(","),
QString(" id of an object to convert, flag to convert to a TriMesh, if not set creates a new PolyMesh").split(","));
}
......
......@@ -101,6 +101,9 @@ private slots:
void initializePlugin();
void pluginsInitialized();
/// Tell system that this plugin runs without ui
void noguiSupported( ) {} ;
private:
QToolBar* toolbar;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment