Atelier ModernUI

From FreeCAD Documentation
Revision as of 12:30, 9 October 2021 by David69 (talk | contribs) (Created page with "* Auteur : Hakan Seven * Code source sur github : [https://github.com/HakanSeven12/Modern-UI Code source Modern-UI]")
Other languages:

Cette documentation n'est pas terminée. Merci de nous aider et de contribuer à la documentation.

Modèle GuiCommand explique comment les commandes doivent être documentées. Parcourez Category:UnfinishedDocu pour voir d'autres pages incomplètes comme celle-ci. Voir Category:Command_Reference pour toutes les commandes.

Voir Écrire une page Wiki pour apprendre à éditer les pages du wiki, et aller à Contribuer à FreeCAD pour apprendre d'autres façons de contribuer.
Icône de l'atelier ModernUI

Introduction

L'atelier ModernUI est un Atelier externe qui remplace l'interface utilisateur standard. Il possède des fonctionnalités modernes telles que :

  • Chaque atelier a son onglet ruban.
  • L'onglet ruban Modern UI remplace le menu de niveau supérieur.
  • L'activation de l'onglet du ruban d'un atelier fait apparaître des groupes d'outils de l'atelier.
  • Les panneaux tels que la Vue combinée sont réduits/agrandis au passage de la souris.

Références

Limitations and Troubleshooting

  • If you experience unexpected behavior, always first try to uninstall and then reinstall the ModernUI workbench.
  • The workbench is primarily tested with English and may exhibit unexpected behavior in other languages.
  • Installing more workbenches after installing ModernUI may cause problems.

Install

Install with the Addon Manager.

Note: To uninstall, you have to create a macro and execute it. If you do not feel confident about this, consider to not install.

Running Modern UI in a self-contained directory

To easily test Modern UI without interfering with your standard configuration, you can contain it in a separate directory. Uninstalling Modern UI is then simply accomplished by deleting the directory. introduced in version 0.19

Linux

For example:

$ mkdir modernUI  # new directory that contains Modern UI
$ cd modernUI
$ HOME="$PWD" FREECAD_USER_HOME="$PWD" FreeCAD_0.19.AppImage

When starting FreeCAD like this for the first time, you have a new default configuration. Now install (and configure) Modern UI. This is essentially a portable FreeCAD version.

Instead of using the command line, you can also create a dedicated desktop icon.

Windows

There are not dedicated instructions for Windows yet, however, it is very similar to creating a portable version of FreeCAD on a USB medium.

Uninstall

Detailed instructions can be found on GitHub.

The uninstall sequence is as follows:

  1. Uninstall with the Addon Manager.
  2. Restart FreeCAD.
  3. Create a macro with this code:
    from PySide2 import QtCore, QtGui, QtWidgets
    mw = FreeCADGui.getMainWindow()
    mw.menuBar().show()
     
    WBList = FreeCADGui.listWorkbenches()
    for WB in WBList:
        FreeCADGui.activateWorkbench(WB)
        for tb in mw.findChildren(QtWidgets.QToolBar):
            tb.show()
    
  4. Execute the macro.
  5. Restart FreeCAD.

Links