Macro MacroToolbarManager: Difference between revisions

From FreeCAD Documentation
m (v0.2023.10.21)
m (0.2023.10.22)
Line 8: Line 8:
|Description=Easily manage custom macro toolbars
|Description=Easily manage custom macro toolbars
|Author=TheMarkster
|Author=TheMarkster
|Version=0.2023.10.21
|Version=0.2023.10.22
|Date=2023-10-21
|Date=2023-10-22
|FCVersion=Python 3 versions
|FCVersion=Python 3 versions
|Download=[https://wiki.freecad.org/File:MacroToolbarManager_icon.svg ToolBar Icon]
|Download=[https://wiki.freecad.org/File:MacroToolbarManager_icon.svg ToolBar Icon]
Line 32: Line 32:


</translate>
</translate>
{{Codeextralink|https://gist.github.com/mwganson/3464e2d54e859ee94ec8d7ce20c75660/raw/330b3f04a7aa4bd7158aa5bdc729026ec3a8379e/MacroToolbarManager.FCMacro|MacroToolbarManager.FCMacro}}
{{Codeextralink|https://gist.github.com/mwganson/3464e2d54e859ee94ec8d7ce20c75660/raw/5d4706f95831c12942432ff3e69fa63f48dbdf04/MacroToolbarManager.FCMacro|MacroToolbarManager.FCMacro}}
<translate>
<translate>



Revision as of 07:39, 22 October 2023

Other languages:

Macro MacroToolbarManager

Description
Easily manage custom macro toolbars

Macro version: 0.2023.10.22
Last modified: 2023-10-22
FreeCAD version: Python 3 versions
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
0.2023.10.22
Date last modified
2023-10-22
FreeCAD Version(s)
Python 3 versions
Default shortcut
None
See also
None

Description

MacroToolbarManager makes it easy to edit custom macro toolbars.

Full documentation can be found on github: MacroToolbarManager.

Macro MacroToolbarManager screenshot‎

Legend

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://gist.github.com/mwganson/3464e2d54e859ee94ec8d7ce20c75660/raw/5d4706f95831c12942432ff3e69fa63f48dbdf04/MacroToolbarManager.FCMacro" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://gist.github.com/mwganson/3464e2d54e859ee94ec8d7ce20c75660/raw/5d4706f95831c12942432ff3e69fa63f48dbdf04/MacroToolbarManager.FCMacro")


ToolBar Icon

Script

Macro MacroToolbarManager.FCMacro