Commit ae734aca authored by Mike Kremer's avatar Mike Kremer
Browse files

Added scripting function to set toolbox orientation.

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3d3882a9
......@@ -1423,6 +1423,9 @@ void Core::setDescriptions(){
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')")));
void Core::slotDeleteObject( int _id ){
......@@ -550,6 +550,12 @@ public slots:
@param _toolboxList 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);
/** @} */
......@@ -178,6 +178,19 @@ void Core::addViewModeIcon(QString _modeName, QString _iconName) {
void Core::setToolBoxSide(QString _side) {
if(_side.toLower() == "left") {
} else if(_side.toLower() == "right") {
} else {
emit log(LOGERR, QString("Could not display toolboxes on side '%1'. Use either 'left' or 'right' as string!").arg(_side));
void Core::addToolbox(QString _name ,QWidget* _widget) {
int id = -1;
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