Macro GuiResetToolbars/de

Generisches Makro-Symbol Erstellen Sie Ihr persönliches Symbol mit demselben Namen des Makros Symbolleisten zurücksetzen

Beschreibung
Dieses Makro setzt die Position der Symbolleisten zurück. Das Makro in einem Arbeitsbereich ausführen, in der eine oder mehrere Symbolleisten fehlen.

Versionsmakro : 1.0.0
Datum der letzten Änderung : 2020-04-21
FreeCAD version : 0.18.4 und höher
Herunterladen : Werkzeugleisten-Symbol
Autor: PR-DC
Autor
PR-DC
Herunterladen
Werkzeugleisten-Symbol
Links
Macro-Version
1.0.0
Datum der letzten Änderung
2020-04-21
FreeCAD-Version(s)
0.18.4 und höher
Standardverknüpfung
None
Siehe auch
GitHub-Verzeichnis

Beschreibung

Dieses Makro setzt die Position der Symbolleisten zurück.

Anwendung

Das Makro in einem Arbeitsbereich ausführen, in der eine oder mehrere Symbolleisten fehlen.

Skript

Werkzeugleisten-Symbol

GuiResetToolbars.FCMacro

# Reset Toolbars position
# Author: Milos Petrasinovic <mpetrasinovic@pr-dc.com>
# PR-DC, Republic of Serbia
# info@pr-dc.com
# 
# --------------------
#
# Copyright (C) 2020 PR-DC <info@pr-dc.com>
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as 
# published by the Free Software Foundation, either version 3 of the 
# License, or (at your option) any later version.
#  
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#  
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
# --------------------

__Name__ = 'GuiResetToolbars'
__Comment__ = 'Reset Toolbars position'
__Author__ = 'PR-DC'
__Version__ = '1.0.0'
__Date__ = '2020-04-21'
__License__ = 'LGPL-3.0-or-later'
__Web__ = "https://github.com/PR-DC/GuiResetToolbars/"
__Wiki__ = 'https://wiki.freecad.org/Macro_GuiResetToolbars'
__Icon__ = 'https://wiki.freecad.org/images/f/f8/GuiResetToolbars.svg'
__Help__ = 'Run the macro within a workbench that has missing toolbar(s)'
__Status__ = 'stable'
__Requires__ = 'Freecad >= 0.18.4'
__Communication__ = 'https://github.com/PR-DC/GuiResetToolbars/issues/'
__Files__ = 'GuiResetToolbars.svg'

import FreeCADGui as gui
from PySide import QtGui, QtCore # FreeCAD's special PySide!

mw = gui.getMainWindow()
tb = mw.findChildren(QtGui.QToolBar)
for i in tb:
    mw.addToolBar(QtCore.Qt.TopToolBarArea, i)

Verweise

Diskussion im FreeCAD-Forum: Reset toolbar position