Commit Graph

14 Commits

Author SHA1 Message Date
wmayer
201f4c9a5a Core: replace PyObject_IsTrue with Base::asBoolean 2022-07-16 14:04:05 +02:00
marioalexis
f78412c75b Gui: Use PyObject_IsTrue in combination with conditional ternary operator 2022-06-22 19:50:03 -04:00
marioalexis
1654dddb73 Gui: Improve docstrings in CommandPy.xml 2022-05-16 13:46:24 +02:00
wmayer
96adb98f46 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
9160f06e1c Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
Chris Hennes
3be45f4087 Gui: Add function to search custom commands 2022-02-26 21:06:37 -06:00
Chris Hennes
c9240fbb4a GUI: Add Python interface to create custom command 2022-02-14 09:56:24 -06:00
luz paz
fc31a79eef Gui: remove superfluous whitespace from translation string
Avoids possible translation mistakes by only exposing non-whitespace strings.
2021-11-22 19:28:43 +01:00
wmayer
00759f9c96 Gui: move PythonWrapper class to its own source file 2021-09-22 23:30:03 +02:00
luz paz
6a7184139d Gui: remove Py2 code from several src/Gui .cpp files 2021-04-14 14:56:02 +02:00
wmayer
b3200a8a9a Gui: [skip ci] add method to return list of QAction of a Command 2020-11-23 16:49:25 +01:00
mwganson
ee383b7aef [Gui::CommandPy] add new command resetShortcut() -- resets shortcut to default 2020-08-06 11:29:07 +02:00
mwganson
0cf8279f00 [Gui Commands] new command: listCommandsByShortcut(string) -- returns a python list of all commands that are using the shortcut. Search is case-insensitive and ignores spaces 2020-08-02 21:09:36 +02:00
wmayer
9b529bc45c Gui: [skip ci] move Python functions for commands to its own class 2020-08-02 20:50:43 +02:00