SelectorToolbar/SelectorToolbarPath.py
triplus 11981261ef First release
- Create global selector toolbar on FreeCAD start
- Remove global selector toolbar on FreeCAD close
- Creation of workbench actions
- Append active workbench if not in enabled list
- Support for styling (by using style sheets) toolbar buttons based on the toolbar orientation
- Optional selector menu (lists all available workbenches) located at front or at the end
- Preferences dialog (configurable button style, position and workbench list)
- Selector toolbar preferences added to the accessories menu
2017-04-02 20:20:41 +02:00

32 lines
1.0 KiB
Python

# Selector toolbar for FreeCAD
# Copyright (C) 2015, 2016 (as part of TabBar) triplus @ FreeCAD
# Copyright (C) 2017 triplus @ FreeCAD
#
#
# This library 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 2.1 of the License, or (at your option) any later version.
#
# This library 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 library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""Support module for Selector toolbar."""
from PySide import QtCore
def timer():
"""The procedure needed to use QTimer."""
global t
t = QtCore.QTimer()
return t