Gui Command: Difference between revisions
No edit summary |
(link http://tango-project.org/Tango_Desktop_Project/) |
||
(41 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
⚫ | |||
<translate> |
|||
⚫ | |||
<!--T:1--> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
GuiCommand. Some of the attributes of a GuiCommand are: |
GuiCommand. Some of the attributes of a GuiCommand are: |
||
* |
* Defines a name |
||
* Contains |
* Contains an icon |
||
* Defines the scope for an |
* Defines the scope for an undo/redo |
||
* |
* Has a help page |
||
* |
* Opens and controls dialogs |
||
* Macro recording |
* Macro recording |
||
* and |
* and others. |
||
== Naming == <!--T:2--> |
|||
The GuiCommand is named in a |
The GuiCommand is named in a standard way: ''ModuleName_CommandName'' |
||
e.g "Base_Open" this is the Open Gui Command in the Base system. |
e.g., "[[Base_Open|Base_Open]]" this is the Open Gui Command in the Base system. |
||
The |
The GuiCommand in a certain module is named with the module name |
||
in front e.g. "Part_Cylinder". |
in front e.g., "[[Part_Cylinder|Part_Cylinder]]". |
||
<!--T:3--> |
|||
⚫ | |||
If the documentation is not finished use [[Template:UnfinishedDocu]]. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
[[GuiCommand model]] |
|||
⚫ | |||
<!--T:5--> |
|||
⚫ | |||
<!--T:6--> |
|||
Example: |
Example: |
||
* [[Draft ShapeString|Draft ShapeString]] |
|||
* [[Part_Cylinder]] |
|||
* [[ |
* [[Draft Line|Draft Line]] |
||
⚫ | |||
[[Image:Tango-Palette.png|400px|right]] |
|||
<!--T:8--> |
|||
Every GuiCommand has to have an icon. We use the [http://tango-project.org/Tango_Desktop_Project/ Tango icon set] and its guidelines. |
|||
On the right side you see the tango color palette. |
|||
<!--T:9--> |
|||
All icons should be created in [[SVG|SVG]] format with a vector image application, such as [http://inkscape.org Inkscape]. |
|||
This makes it easier to apply changes and derive |
|||
additional icons in the same application space. |
|||
===Icons color coding chart=== <!--T:10--> |
|||
<!--T:11--> |
|||
[[Image:Colorchart.png|200px]] |
|||
<!--T:12--> |
|||
We try as much as possible to respect this chart, so the color of the icons has a direct meaning. |
|||
⚫ | |||
{{VeryImportantMessage|The [[Complete Workbench|Complete Workbench]] is deprecated, it no longer holds each of the commands in FreeCAD.}} |
|||
<!--T:17--> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
workbench incorporates all GuiCommands |
|||
⚫ | |||
<!--T:14--> |
|||
* The command or feature has to be "finished", that is, not be a work in progress. |
|||
* It has to set up a proper icon and menu position. |
|||
* It has to have a help page, like [[Draft ShapeString|Draft ShapeString]]. |
|||
** All the fields in [[Template:GuiCommand]] have to be filled in |
|||
** It should have a detailed description of the command and all its parameters and settings. |
|||
** It should have a picture of the dialogs that the command will produce. |
|||
** It should have a description of the related [[Python|Python]] interfaces and classes with example code. |
|||
<!--T:15--> |
|||
Hopefully this becomes true for all GuiCommands in the [[List of Commands|List of Commands]].</s> |
|||
<!--T:18--> |
|||
⚫ | |||
{{Userdocnavi}} |
|||
Every Gui Command have to have a Icon. |
|||
<!--T:16--> |
|||
[[Category:User Documentation]] |
|||
[[Category:Command Reference]] |
|||
</translate> |
|||
⚫ | |||
{{clear}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
is the default start Workbench of FreeCAD and incorporate all GuiCommand |
|||
⚫ |
Revision as of 11:47, 23 December 2019
The GuiCommand is one of the most important functions of FreeCAD in the main interaction point of the user. Every time the user selects a menu item or presses a toolbar button it activates a GuiCommand. Some of the attributes of a GuiCommand are:
- Defines a name
- Contains an icon
- Defines the scope for an undo/redo
- Has a help page
- Opens and controls dialogs
- Macro recording
- and others.
Naming
The GuiCommand is named in a standard way: ModuleName_CommandName e.g., "Base_Open" this is the Open Gui Command in the Base system. The GuiCommand in a certain module is named with the module name in front e.g., "Part_Cylinder".
If the documentation is not finished use Template:UnfinishedDocu.
Help page
Every GuiCommand has to have a help page. The help page is hosted on the FreeCAD documentation wiki. The article has the same name as the GuiCommand, e.g. Draft ShapeString.
To create your own help pages you can use the template GuiCommand model
Example:
Icons
Every GuiCommand has to have an icon. We use the Tango icon set and its guidelines. On the right side you see the tango color palette.
All icons should be created in SVG format with a vector image application, such as Inkscape. This makes it easier to apply changes and derive additional icons in the same application space.
Icons color coding chart
We try as much as possible to respect this chart, so the color of the icons has a direct meaning.
Quality requirements
There are a lot of GuiCommands (tools) in FreeCAD which are experimental
or used for a short time to test implementation of new features. These GuiCommands are mostly in
the dedicated workbenches like Part, Mesh or Cam.
To ensure a good user experience the workbench Complete was created. This
workbench incorporates all GuiCommands
which meet certain quality requirements which are described here:
- The command or feature has to be "finished", that is, not be a work in progress.
- It has to set up a proper icon and menu position.
- It has to have a help page, like Draft ShapeString.
- All the fields in Template:GuiCommand have to be filled in
- It should have a detailed description of the command and all its parameters and settings.
- It should have a picture of the dialogs that the command will produce.
- It should have a description of the related Python interfaces and classes with example code.
Hopefully this becomes true for all GuiCommands in the List of Commands.
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub