Commit 21c7d1f7 authored by Jan Möbius's avatar Jan Möbius

Set Icon for view mode via scripting

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9579 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8e0dee8b
......@@ -1337,11 +1337,19 @@ void Core::setDescriptions(){
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(","));
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(","));
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(","),
......
......@@ -510,6 +510,13 @@ public slots:
@param _toolboxList ; seperated 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 _toolboxList Name of the Icon File. Will be taken from OpenFlippers Icon directory
*/
void addViewModeIcon(QString _modeName, QString _iconName);
/** @} */
......
......@@ -172,6 +172,10 @@ void Core::addViewModeContextMenus(QString _modeName, QString _contextMenuList)
coreWidget_->slotAddViewModeContextMenus(_modeName,list);
}
void Core::addViewModeIcon(QString _modeName, QString _iconName) {
coreWidget_->slotSetViewModeIcon(_modeName,true,_iconName);
}
//-----------------------------------------------------------------------------
void Core::addToolbox(QString _name ,QWidget* _widget) {
......
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