Commit a4b815b3 authored by Jan Möbius's avatar Jan Möbius

Exported most of the core functions to python

parent c2b81a8b
......@@ -1549,6 +1549,7 @@ QList<int> Core::objectList (QString _selection, QStringList _types)
foreach (QString s, _types)
if (!s.isEmpty ())
ids = typeId (s);
if (_selection == "source")
selection = PluginFunctions::SOURCE_OBJECTS;
else if (_selection == "target")
......
......@@ -1058,6 +1058,12 @@ private slots:
*/
QWidget *getToolbox(QString _pluginName, QString _toolboxName);
/** \brief expand or collapse a toolbox
*
* @param _pluginName To which plugin does the toolbox belong
* @param _toolboxName Name of the toolbox
* @param activate Expand or collapse?
*/
void activateToolbox(QString _pluginName, QString _toolboxName, bool activate);
private :
......
......@@ -317,9 +317,17 @@ PYBIND11_EMBEDDED_MODULE(openflipper, m) {
core.def("deleteObject", &Core::deleteObject, QCoreApplication::translate("PythonDocCore","Delete an object from the scene.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object to delete.").toLatin1().data() ) );
// void setObjectComment(int objId, QString key, QString comment);
// void clearObjectComment(int objId, QString key);
// void clearAllComments(int objId);
core.def("setObjectComment", &Core::setObjectComment, QCoreApplication::translate("PythonDocCore","Add a comment to an object (saved e.g. in screenshot metadata).").toLatin1().data()) ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object to add comment.").toLatin1().data()),
py::arg( QCoreApplication::translate("PythonDocCore","Key value").toLatin1().data()),
py::arg( QCoreApplication::translate("PythonDocCore","Actual comment").toLatin1().data());
core.def("clearObjectComment", &Core::clearObjectComment, QCoreApplication::translate("PythonDocCore","Remove a comment from an object.").toLatin1().data()) ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object to remove comment from.").toLatin1().data()),
py::arg( QCoreApplication::translate("PythonDocCore","Key value to remove").toLatin1().data());
core.def("clearAllComments", &Core::clearObjectComment, QCoreApplication::translate("PythonDocCore","Remove all comments from an object.").toLatin1().data()) ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object to remove comments from.").toLatin1().data());
core.def("fullscreen", &Core::fullscreen, QCoreApplication::translate("PythonDocCore","Enable or disable fullscreen mode.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Enable or disable?").toLatin1().data() ) );
......@@ -387,12 +395,20 @@ PYBIND11_EMBEDDED_MODULE(openflipper, m) {
core.def("viewerSnapshot", static_cast<void (Core::*)()>(&Core::viewerSnapshot), QCoreApplication::translate("PythonDocCore","Take a snapshot from all viewers").toLatin1().data() );
// /// Scriptable snapshot method offering full control
// void viewerSnapshot(QString file_name, bool store_comments,
// bool comments_visible_only, bool comments_targeted_only,
// bool store_material_info, int snapshot_width, int snapshot_height,
// bool snapshot_transparent, bool hide_coord_sys,
// int snapshot_multisampling, bool store_view);
core.def("viewerSnapshot", static_cast<void (Core::*)(QString,bool,bool,bool,bool,int,int,bool,bool,int,bool)>(&Core::viewerSnapshot),
QCoreApplication::translate("PythonDocCore","Create a snapshot with full control").toLatin1().data(),
py::arg( QCoreApplication::translate("PythonDocCore","Filename of the snapshot").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Should the comments be written?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Should only the comments of visible objects be written?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Should only the comments of target objects be written?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Store material info?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Snapshot width").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Snapshot height").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Transparent background?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Hide coordinate system?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Multisampling count").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Store the view in the metadata?").toLatin1().data() ) );
core.def("resizeViewers", &Core::resizeViewers, QCoreApplication::translate("PythonDocCore","Resize the examinerViewer.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Width").toLatin1().data() ),
......@@ -405,6 +421,9 @@ PYBIND11_EMBEDDED_MODULE(openflipper, m) {
core.def("writeVersionNumbers", &Core::writeVersionNumbers, QCoreApplication::translate("PythonDocCore","Write the current versions of all plugins to ini file").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Full path to a file where the versions should be written to.").toLatin1().data() ) );
// core.def("objectList", &Core::objectList, QCoreApplication::translate("PythonDocCore","Return an id list of available object that has the given selection and type").toLatin1().data() ,
// py::arg( QCoreApplication::translate("PythonDocCore","Either source or target").toLatin1().data()) ,
// py::arg( QCoreApplication::translate("PythonDocCore","Object types as a stringlist").toLatin1().data() ));
// /// return the list of available object that has the given selection and type
// QList<int> objectList (QString _selection, QStringList _types);
......@@ -419,166 +438,101 @@ PYBIND11_EMBEDDED_MODULE(openflipper, m) {
core.def("setViewAndWindowGeometry", &Core::setViewAndWindowGeometry, QCoreApplication::translate("PythonDocCore","Set the encoded view for the primary viewport and the full geometry of the application").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","The encoded view. (You can obtain one through \"Copy View\" in the context menu of the coordinates.)").toLatin1().data() ) );
core.def("addViewModeToolboxes", &Core::addViewModeToolboxes, QCoreApplication::translate("PythonDocCore","Set toolboxes for a viewmode (This automatically adds the view mode if it does not exist)").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Name of the Viewmode").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","';' separated list of toolboxes visible in this viewmode)").toLatin1().data() ));
core.def("addViewModeToolbars", &Core::addViewModeToolbars, QCoreApplication::translate("PythonDocCore","Set toolbars for a viewmode (This automatically adds the view mode if it does not exist)").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Name of the Viewmode").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","';' separated list of toolbars visible in this viewmode)").toLatin1().data() ));
core.def("addViewModeContextMenus", &Core::addViewModeContextMenus, QCoreApplication::translate("PythonDocCore","Set context Menus for a viewmode (This automatically adds the view mode if it does not exist)").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Name of the Viewmode").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","';' separated list of Context Menus visible in this viewmode)").toLatin1().data() ));
core.def("addViewModeIcon", &Core::addViewModeIcon, QCoreApplication::translate("PythonDocCore","Set Icon for a viewmode (This automatically adds the view mode if it does not exist)").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Name of the Viewmode").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","filename of the icon (will be taken from OpenFlippers icon directory)").toLatin1().data() ));
core.def("setToolBoxSide", &Core::setToolBoxSide, QCoreApplication::translate("PythonDocCore","Scripting function to set the side of the main window on which the toolbox should be displayed").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","The desired side of the toolboxes (either 'left' or 'right')").toLatin1().data() ) );
core.def("setToolBoxActive", &Core::setToolBoxActive, QCoreApplication::translate("PythonDocCore","Activate or deaktivate a toolbox").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Name of the toolbox.").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Activate or deaktivate?").toLatin1().data() ));
core.def("loadObject", static_cast<int (Core::*)(QString)>(&Core::loadObject), QCoreApplication::translate("PythonDocCore","Load an object specified in file filename. This automatically determines which file plugin to use. It returns the id of the object in the scene or -1 on failure").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Filename to load.").toLatin1().data() ) );
core.def("startVideoCapture", &Core::startVideoCapture, QCoreApplication::translate("PythonDocCore","Start video capturing.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Basename for capturing").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Frames per second").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Should the viewers be captured or the whole application?").toLatin1().data() ) );
core.def("stopVideoCapture", &Core::stopVideoCapture, QCoreApplication::translate("PythonDocCore","Stop video capturing").toLatin1().data() );
core.def("saveObject", static_cast<bool (Core::*)(int,QString)>(&Core::saveObject), QCoreApplication::translate("PythonDocCore","Save object to file. If the file exists it will be overwritten.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object)").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Complete path and filename").toLatin1().data() ));
core.def("saveObjectTo", static_cast<bool (Core::*)(int,QString)>(&Core::saveObjectTo), QCoreApplication::translate("PythonDocCore","Save object to file. The location can be chosen in a dialog. (GUI mode only!)").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object)").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Initial filename in the dialog").toLatin1().data() ));
// /** \brief Scripting function to set toolboxes in a view mode
// *
// * @param _modeName Name of the View Mode
// * @param _toolboxList ; separated list of toolboxes in the view mode
// */
// void addViewModeToolboxes(QString _modeName, QString _toolboxList);
//
// /** \brief Scripting function to set toolbars in a view mode
// *
// * @param _modeName Name of the View Mode
// * @param _toolbarList ; separated list of toolbars in the view mode
// *
// */
// void addViewModeToolbars(QString _modeName, QString _toolbarList);
//
// /** \brief Scripting function to set context menus in a view mode
// *
// * @param _modeName Name of the View Mode
// * @param _contextMenuList ; separated list of context menus in the view mode
// */
// void addViewModeContextMenus(QString _modeName, QString _contextMenuList);
//
// /** \brief Scripting function to set an icon for a view mode
// * @param _modeName Name of the View Mode
// * @param _iconName Name of the Icon File. Will be taken from OpenFlippers Icon directory
// */
// void addViewModeIcon(QString _modeName, QString _iconName);
//
// /** \brief Scripting function to set the side of the main window on which the toolbox should be displayed
// *
// * @param _side The desired side (either "left" or "right")
// */
// void setToolBoxSide(QString _side);
//
// /** \brief Scripting function to activate or deactivate a toolbox
// *
// * @param _toolBoxName Name of the toolbox to manipulate
// * @param _active Activate or deactivate
// */
// void setToolBoxActive(QString _toolBoxName, bool _active);
//
//
// /** \brief Load a new Object ( this may also be an ini or ofs file )
// *
// * This function tries to get the type of data to be loaded from the filename
// * and then load the file.
// *
// * @param _filename Filename of the data
// * @return id of object otherwise -1
// */
// int loadObject ( QString _filename );
//
// /// Start video capturing
// void startVideoCapture(QString _baseName, int _fps, bool _captureViewers);
//
// /// Stop video capturing
// void stopVideoCapture();
//
// /** Save object with given id
// * @param _id id of the object
// bool saveObject( int _id, QString _filename );
//
// void saveObject( int _id, QString _filename, int _pluginID );
//
// void saveObjects( IdList _ids, QString _filename, int _pluginID );
//
// /** Show dialog for saving an object to a new location
// * @param _id id of the object
// * @param _filename current filename of the object
// */
// bool saveObjectTo( int _id, QString _filename );
//
// bool saveObjectsTo( IdList _ids, QString _filename );
//
// /// Slot for saving objects from Menu
// void saveAllObjects();
//
// /// Slot for saving objects to a new location
// void saveAllObjectsTo();
//
// /// Save current status to a settings file. Solicit file name through dialog.
// void saveSettings();
//
// /// Save current status to a the provided settings file
// void saveSettings(QString filePath, bool is_saveObjectInfo, bool is_targetOnly, bool is_saveAll,
// bool is_askOverwrite, bool is_saveProgramSettings, bool is_savePluginSettings);
//
// /// Open Load Widget
// void loadObject();
//
// /// Load status from file
// void loadSettings();
//
// /// Load status from file
// void loadSettings(QString _filename);
//
// /// Get object id from filename
// int getObjectId(QString _filename);
//
// /** \brief Serialize material properties
// *
// * @param _objId Id of the object where the material should be deserialized into
// * @param _props A QString containing the serialized material
// */
// void deserializeMaterialProperties(int _objId, QString _props);
//
// /** \brief Serialize material properties
// *
// * @param _objId Id of the object where the material should be serialized
// * @return A Qstring containing the serialized material
// */
// QString serializeMaterialProperties(int _objId);
//
// /// Add a Toolbox from a plugin or from scripting
// void addToolbox(QString _name ,QWidget* _widget);
//
// /// Add a Toolbox from a plugin or from scripting (with icon)
// void addToolbox(QString _name ,QWidget* _widget, QIcon* _icon);
//
// /// Add a Toolbox from a plugin or from scripting (with icon)
// void addToolbox(QString _name ,QWidget* _widget, QIcon* _icon,
// QWidget* _headerAreaWidget);
//
// /**
// * Get a toolbox.
// *
// * @param _pluginName The plugin which the requested toolbox belongs to.
// * @param _toolboxName The name of the requested toolbox.
// * @return A pointer to the requested toolbox widget if it was found, nullptr, otherwise.
// */
// QWidget *getToolbox(QString _pluginName, QString _toolboxName);
//
// void activateToolbox(QString _pluginName, QString _toolboxName, bool activate);
//
//
// /// Save the current options to the standard ini file
// void saveOptions();
core.def("saveAllObjects", &Core::saveAllObjects, QCoreApplication::translate("PythonDocCore","Saves all target objects. Exising files will be overriden. For new files, a dialog is shown (Only GUI Mode!)").toLatin1().data() );
core.def("saveAllObjectsTo", &Core::saveAllObjectsTo, QCoreApplication::translate("PythonDocCore","Saves all target objects. The locations can be chosen in dialogs. (Only GUI Mode!)").toLatin1().data() );
core.def("saveSettings", static_cast<void (Core::*)()>(&Core::saveSettings), QCoreApplication::translate("PythonDocCore","Show the dialog to save settings. (only works if GUI is available)").toLatin1().data() );
core.def("saveSettings", static_cast<void (Core::*)(QString,bool,bool,bool,bool,bool,bool)>(&Core::saveSettings),
QCoreApplication::translate("PythonDocCore","Save the current setting to the given file.").toLatin1().data(),
py::arg( QCoreApplication::translate("PythonDocCore","Path of the file to save the settings to.").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Save Object information into file?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Restrict to targeted objects?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Save objects into same path as settings file?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Prompt before overwriting files that already exist (gui mode only).").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Save program settings?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Save plugin settings?").toLatin1().data() ) );
core.def("loadObject", static_cast<void (Core::*)()>(&Core::loadObject), QCoreApplication::translate("PythonDocCore","Show the dialog to load an object. (only works if GUI is available)").toLatin1().data() );
core.def("loadSettings", static_cast<void (Core::*)()>(&Core::loadSettings), QCoreApplication::translate("PythonDocCore","Show the dialog to load settings. (only works if GUI is available)").toLatin1().data() );
core.def("loadSettings", static_cast<void (Core::*)(QString)>(&Core::loadSettings), QCoreApplication::translate("PythonDocCore","Load settings from file.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Filename to load.").toLatin1().data() ) );
core.def("getObjectId", &Core::getObjectId, QCoreApplication::translate("PythonDocCore","Return identifier of object with specified name. Returns -1 if object was not found.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Filename or name of the object").toLatin1().data() ) );
core.def("deserializeMaterialProperties", &Core::deserializeMaterialProperties, QCoreApplication::translate("PythonDocCore","Deserialize the supplied material properties into the supplied object.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Material properties encoded as string").toLatin1().data() ) );
core.def("serializeMaterialProperties", &Core::serializeMaterialProperties, QCoreApplication::translate("PythonDocCore","Serialize and return the material properties of the supplied object.").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Id of the object").toLatin1().data() ));
core.def("activateToolbox", &Core::activateToolbox, QCoreApplication::translate("PythonDocCore","Expand or collapse a toolbox").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Name of the plugin to which this toolbox gelongs").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Name of the toolbox").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Expand or collapse?").toLatin1().data() ) );
core.def("saveOptions", &Core::saveOptions, QCoreApplication::translate("PythonDocCore","Save the current options to the standard ini file").toLatin1().data() );
core.def("applyOptions", &Core::applyOptions, QCoreApplication::translate("PythonDocCore","After ini-files have been loaded and core is up or if options have been changed -> apply Options").toLatin1().data() );
core.def("openIniFile", &Core::openIniFile, QCoreApplication::translate("PythonDocCore","Load information from an ini file").toLatin1().data() ,
py::arg( QCoreApplication::translate("PythonDocCore","Name of the ini file").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Load applications settings?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore","Load plugin settings?").toLatin1().data() ),
py::arg( QCoreApplication::translate("PythonDocCore"," Load objects defined in the ini file?").toLatin1().data() ));
// /** \brief Load information from an ini file
// *
// * This function will open an ini file and load the information in it.
// *
// * @param _filename Name of the ini file
// * @param _coreSettings Load core settings from the file
// * @param _perPluginSettings Load per plugin settings from the file
// * @param _loadObjects Load objects defined in the ini file
// *
// */
// void openIniFile( QString _filename,
// bool _coreSettings ,
// bool _perPluginSettings,
// bool _loadObjects );
//
// /** \brief Create an script object from a ui file
// *
// * This function will load an ui file, set up a qwidget from that and makes it available
......@@ -619,91 +573,16 @@ PYBIND11_EMBEDDED_MODULE(openflipper, m) {
core.def("finishSplash", &Core::finishSplash, QCoreApplication::translate("PythonDocCore","Hide the splash screen").toLatin1().data() );
// emit setSlotDescription("deleteObject(int)", tr("Delete an object from the scene."), QStringList("ObjectId"), QStringList(tr("Id of the object to delete")));
//
// emit slotSetSlotDescriptionGlobalFunction("printToFile(QString,QString)", tr("Print a message to a file"), QStringList(QString("Filename;Values").split(";")), QStringList(QString("Filename to print into;Arbitrary number of arguments").split(";")));
// emit slotSetSlotDescriptionGlobalFunction("help(QString)", tr("Print help about something"), QStringList("Help Entry"), QStringList("help about what?"));
// //save slots
// emit setSlotDescription("saveObject(int,QString)", tr("Save object to file. If the file exists it will be overwritten."),
// QString(tr("object-id,filename")).split(","),
// QString(tr("id of the object, complete path and filename")).split(","));
// emit setSlotDescription("saveObjectTo(int,QString)", tr("Save object to file. The location can be chosen in a dialog. "
// "(only works if GUI is available)"),
// QString(tr("object-id,filename")).split(","),
// QString(tr("id of the object, initial filename for the dialog")).split(","));
// emit setSlotDescription("saveAllObjects()", tr("Saves all target objects. "
// "If no filename is available a dialog is shown. (only works if GUI is available)"),QStringList(), QStringList());
// emit setSlotDescription("saveAllObjectsTo()", tr("Saves all target objects. The locations can be chosen in dialogs. "
// "(only works if GUI is available)"),QStringList(), QStringList());
// emit setSlotDescription("saveSettings()", tr("Show the dialog to save the current setting. (only works if GUI is available)"),QStringList(), QStringList());
// emit setSlotDescription("saveSettings(QString, bool, bool, bool, bool, bool, bool)", tr("Save the current setting to the supplied file."),
// QStringList(tr("filePath,is_saveObjectInfo,is_targetOnly,is_saveAll,is_askOverwrite,is_saveProgramSettings,is_savePluginSettings").split(",")),
// QStringList(tr("Path of the file to save the settings to.;Save objects in current setting.;Restrict to targeted objects.;<no idea what this parameter does>;Prompt before overwriting files that already exist (gui mode only).;Save " TOSTRING( PRODUCT_NAME ) " program settings.;Save plugin settings.").split(";")));
// //load slots
// emit setSlotDescription("loadObject()", tr("Show the dialog to load an object. (only works if GUI is available)"),QStringList(), QStringList());
// emit setSlotDescription("loadObject(QString)", tr("Load an object specified in file filename. This automatically determines which file plugin to use."),
// QStringList(tr("filename")), QStringList(tr("Filename")));
// emit setSlotDescription("getObjectId(QString)", tr("Return identifier of object with specified name. Returns -1 if object was not found."),QStringList(), QStringList());
// emit setSlotDescription("loadSettings()", tr("Show the dialog to load settings. (only works if GUI is available)"),QStringList(), QStringList());
// emit setSlotDescription("loadSettings(QString)", tr("load settings from file."),QStringList(), QStringList());
//
// emit setSlotDescription("createWidget(QString,QString)", tr("Create a widget from an ui file"),
// QString(tr("Object name,ui file")).split(","),
// QString(tr("Name of the new widget in script,ui file to load")).split(","));
//
// emit setSlotDescription("addToolbox(QString,QWidget*)", tr("Add a widget as a toolbox"),
// QString(tr("Toolbox Entry name,Widget")).split(","),
// QString(tr("Name of the new widget in the toolbox,Pointer to the new widget")).split(","));
//
// emit setSlotDescription("addToolbox(QString,QWidget*,QIcon*)", tr("Add a widget as a toolbox"),
// QString(tr("Toolbox Entry name,Widget,Icon")).split(","),
// QString(tr("Name of the new widget in the toolbox,Pointer to the new widget,Pointer to icon")).split(","));
//
// emit setSlotDescription("serializeMaterialProperties(int)", tr("Serialize and return the material properties of the supplied object."),
// QString(tr("ObjectId")).split(","),
// QString(tr("ID of the object")).split(","));
//
// emit setSlotDescription("deserializeMaterialProperties(int, QString)", tr("Deserialize the supplied material properties into the supplied object."),
// QString(tr("ObjectId, SerializedProps")).split(","),
// QString(tr("ID of the object,The serialized material properties.")).split(","));
//
// emit setSlotDescription("addViewModeToolboxes(QString,QString)", tr("Set toolboxes for a viewmode (This automatically adds the view mode if it does not exist)"),
// QString(tr("Name,Toolbox List")).split(","),
// QString(tr("Name of the Viewmode,seperated list of toolboxes visible in this viewmode")).split(","));
//
// emit setSlotDescription("addViewModeToolbars(QString,QString)", tr("Set toolbars for a viewmode (This automatically adds the view mode if it does not exist)"),
// QString(tr("Name,Toolbar List")).split(","),
// QString(tr("Name of the Viewmode,seperated list of toolbars visible in this viewmode")).split(","));
//
// emit setSlotDescription("addViewModeContextMenus(QString,QString)", tr("Set context Menus for a viewmode (This automatically adds the view mode if it does not exist)"),
// QString(tr("Name,Context Menu List")).split(","),
// QString(tr("Name of the Viewmode,seperated list of Context Menus visible in this viewmode")).split(","));
//
// emit setSlotDescription("addViewModeIcon(QString,QString)", tr("Set Icon for a viewmode (This automatically adds the view mode if it does not exist)"),
// QString(tr("Name,Icon filename")).split(","),
// QString(tr("Name of the Viewmode,filename of the icon (will be taken from OpenFlippers icon directory)")).split(","));
//
// emit setSlotDescription("objectList(QString,QStringList)", tr("Returns object list"),
// QString(tr("Selection type,Object types")).split(","),
// QString(tr("Type of object selection (all,source,target),Object type (All,PolyMesh,TriangleMesh,...)")).split(";"));
//
// emit setSlotDescription("setToolBoxSide(QString)", tr("Determine whether the toolboxes should be displayed on the right or on the left side."),
// QStringList(tr("side")), QStringList(tr("The desired side of the toolboxes (either 'left' or 'right')")));
//
// emit setSlotDescription("getToolbox(QString,QString)", tr("Returns a pointer to the requested toolbox widget if it was found, nullptr, otherwise."),
// tr("Plugin Name\rToolbox Name").split("\r"),
// tr("The plugin which the requested toolbox belongs to.\rThe name of the requested toolbox.").split("\r"));
//
core.def("writeVersionNumbers", &Core::writeVersionNumbers);
}
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