Benjamin Bræstrup Sayoc
8d2d0a47f4
Gui: Use QStringLiteral
2025-02-10 18:34:57 +01:00
Ladislav Michl
61bca92941
Gui: Implement PythonWrapper::fromQAction
...
Wrapping QAction through QObject does not work as QAction class
is a part of QtGui not QtCore, so Py::Object with internal
pointer being null is returned causing a crash later.
Therefore implement fromQAction conversion method.
2024-03-03 15:20:48 +01:00
Chris Hennes
cfd41683a5
Core: Enable compiling with MSVC /permissive- ( #11014 )
...
* Base: Fixes for MSVC permissive-
* App: Fixes for MSVC permissive-
* Gui: Fixes for MSVC permissive-
* Main: Fixes for MSVC permissive-
* Fem: Fixes for MSVC permissive-
* Material: Fixes for MSVC permissive-
* Part: Fixes for MSVC permissive-
* Mesh: Fixes for MSVC permissive-
* Points: Fixes for MSVC permissive-
* Robot: Fixes for MSVC permissive-
* TechDraw: Fixes for MSVC permissive-
* Path: Fixes for MSVC permissive-
* Core; Changes per review comments
* TD: Revision from wandererfan
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 17:37:29 +01:00
Chris Hennes
3d7441c2a5
Gui: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
wmayer
fa8978ce99
Gui: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
wmayer
bc3c81e138
Gui: fix warnings reported by GH Actions:
...
* Fix trailing spaces
* Replace tabs
* Mark constructors with one argument explicit
* Fix typos
* Include FCGlobal.h to fix parsing errors
2022-11-11 09:56:43 +01:00
Zheng, Lei
775452cbc0
Gui: add ShortcutManager to unify shortcut handling
...
Support longest key sequence match with user defined delay (configurable
through 'Customize -> Keyboard -> Key sequence delay').
Support user defined priority to resolve shortcut conflict through
'Customize -> Keyboard')
Add 'All' category in 'Customize -> Keyboard' to list all command and
showing their shortcuts
Unify macro command shortcut setting (BaseApp/Preferences/Shortcut).
2022-11-10 23:20:18 +01:00
wmayer
75bfb8f48f
Core: replace QRegExp with QRegularExpression
2022-10-06 13:54:20 +02:00
berniev
ae53c9b0a4
Gui: Use auto and range-based for ( #7481 )
...
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto.
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
berniev
7aede27553
Gui: Redundant_string_initialization
2022-08-08 16:51:32 +02:00
berniev
3d1f70765a
Gui: redundant void 2
2022-08-08 10:21:44 +02:00
berniev
066656f62a
Gui: use emplace_back
2022-08-05 10:33:41 +02:00
wmayer
85bd6b5c6b
Fix several clazy issues:
...
* C++11 range-loop might detach Qt container [-Wclazy-range-loop-detach]
2022-07-24 23:48:37 +02:00
wmayer
25483b78be
Fix several clazy issue:
...
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
2022-07-24 22:29:06 +02:00
wmayer
ab6c75fad9
Core: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 14:04:05 +02:00
marioalexis
ae56fb62a7
Gui: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
marioalexis
3215c8a426
Gui: Improve docstrings in CommandPy.xml
2022-05-16 13:46:24 +02:00
wmayer
1178df06b4
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
e4d1ed8366
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
Chris Hennes
2c0a3b9e77
Gui: Add function to search custom commands
2022-02-26 21:06:37 -06:00
Chris Hennes
93836b89a5
GUI: Add Python interface to create custom command
2022-02-14 09:56:24 -06:00
luz paz
a07c7e4333
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
21ba35adab
Gui: move PythonWrapper class to its own source file
2021-09-22 23:30:03 +02:00
luz paz
a213071c87
Gui: remove Py2 code from several src/Gui .cpp files
2021-04-14 14:56:02 +02:00
wmayer
84d730c194
Gui: [skip ci] add method to return list of QAction of a Command
2020-11-23 16:49:25 +01:00
mwganson
0f7c1b82b5
[Gui::CommandPy] add new command resetShortcut() -- resets shortcut to default
2020-08-06 11:29:07 +02:00
mwganson
e4208dadc7
[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
73f89f8cf0
Gui: [skip ci] move Python functions for commands to its own class
2020-08-02 20:50:43 +02:00