Recent macros on Toolbars

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
demonlibra
Posts: 79
Joined: Tue Jan 21, 2020 1:11 pm

Recent macros on Toolbars

Post by demonlibra »

Added Recent macros on Toolbars.
Maybe it is a good idea to show name (maybe 10 letters of the name) of last macros instead of label "Recent macros".

Code: Select all

OS: Linux Mint 21 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: Russian/Russia (ru_RU)
Installed mods: 
  * fcgear 1.0.0
  * BOLTSFC
  * ProDarkThemePreferencePack 1.0.0
  * lattice2 1.0.0
  * Help 1.0.3
  * Manipulator 1.4.9
  * sheetmetal 0.2.56
  * fasteners 0.4.2
  * ExplodedAssembly
  * Curves 0.5.4
  * A2plus 0.4.56a
Attachments
изображение_2022-08-18_135442332.png
изображение_2022-08-18_135442332.png (35.61 KiB) Viewed 921 times
Last edited by demonlibra on Sun Aug 21, 2022 5:45 am, edited 1 time in total.
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Recent macros on Toolbars

Post by onekk »

demonlibra wrote: Thu Aug 18, 2022 10:54 am Added Recent macros on Toolbars.
Maybe it is a good idea to show name (maybe 10 letters of the name) of last macros instead of label "Recent macros".
Are you aware that is a "dropdown list"?

So what name? as it collect recent macros used, "Recent Macro" seems a good description, plus:

A little note:

This is a place where we speak about "Python scripting and macros" and not about "FC interface matters" that is more near to your "question".

So here it is better to limit to "code related questions" maybe with some "code" or links to macros, maybe questions about "how to use a macro".

There is no strict rules about what is going in each sections, so maybe I'm wrong.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Recent macros on Toolbars

Post by chrisb »

Moved from Python forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
demonlibra
Posts: 79
Joined: Tue Jan 21, 2020 1:11 pm

Re: Recent macros on Toolbars

Post by demonlibra »

If you just click on "Recent macros" you do not know which macros will start.
At first you need to click on arrow. So better to show last macros name.
Peek 2022-08-18 14-57.gif
Peek 2022-08-18 14-57.gif (24.08 KiB) Viewed 872 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Recent macros on Toolbars

Post by Kunda1 »

@demonlibra please always post your full About info
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
demonlibra
Posts: 79
Joined: Tue Jan 21, 2020 1:11 pm

Re: Recent macros on Toolbars

Post by demonlibra »

Is it possible to rename button (Recent macros) from python console or macros?
Attachments
изображение_2022-08-24_213656587.png
изображение_2022-08-24_213656587.png (16.86 KiB) Viewed 759 times
Post Reply