Commit Graph

1606 Commits

Author SHA1 Message Date
luz paz
7637d58df0 Add missing brackets + change indentation to spaces 2022-12-12 11:38:06 +01:00
luz paz
80efe8191e Cleanup: move return statement to new line + trailing
Follow-up to #6497
2022-12-12 11:38:06 +01:00
wmayer
302d3f5b95 Core: allow to set file filter from PropertyFileIncluded 2022-12-07 12:58:07 +01:00
wmayer
313525a012 Core: [skip ci] ignore some code spell checks and filter all '_rc_.py' files 2022-12-05 10:12:49 +01:00
Uwe
9869a2c3d7 [Build] output point release version
- to Splashscreen, About, MainWindow and Console
2022-12-05 00:26:43 +01:00
Zheng, Lei
d3c063f88c Base/App: add new signal interface to Parameter
Added new signal interface using boost::signals2 signalParamChanged.

Exposed to Python as ParameterGrpPy.AttachManager() to monitor changes
to all parameters, sub groups under the referring group.

Added new attribute for ParameterGrp(Py) to query the Parent and Manager
of the referring group.
2022-12-03 17:08:17 -06:00
luz paz
0e08b51a58 App: fix trailing whitespace 2022-12-02 19:19:17 -06:00
luz paz
fa98553775 Fix various typos and grammatical issues 2022-11-30 12:45:29 +01:00
wmayer
ad1cccdd27 Gui/Mod: handle several compiler warnings:
* ignore -Wfree-nonheap-object for generated code
* replace 0 with Qt::NoModifier when creating a QKeyEvent
* in Qt 5.14 QCombobox::activated(QString) is deprecated, use textActivated
* don't mix QCheckBox::setChecked() with tristate API
2022-11-29 10:36:02 +01:00
wmayer
2252696828 Base: move class ProgressIndicatorPy to its own files 2022-11-22 15:07:33 +01:00
berniev
d2e5a12190 change ALL_UPPER_CASE constexpr definitions to camelCase 2022-11-19 16:00:36 +01:00
wmayer
c3b38bda08 App: [skip ci] fix warnings reported by GH actions 2022-11-17 23:50:34 +01:00
wmayer
2614a1cec6 App: [skip ci] fix typo 2022-11-17 20:00:00 +01:00
wmayer
1f83094b44 App: fix endless-loop in DocumentObject::getParents 2022-11-17 19:05:32 +01:00
wmayer
e10b23ca70 App: replace boolean with enum 2022-11-17 17:38:31 +01:00
wmayer
07711bb8a8 App: fix endless-loop when recursively determining placement of an object 2022-11-17 15:46:06 +01:00
wmayer
d793a182c4 App: fix possible stack overflow in GroupExtension::hasObject() 2022-11-17 00:30:44 +01:00
wmayer
61dee6b8ad App: fix memory leak and consistently use Py::asObject() in DocumentObserverPython 2022-11-15 11:04:41 +01:00
wmayer
6e7ee14062 App: [skip ci] fix memory leak 2022-11-14 19:42:33 +01:00
wmayer
3d7b116358 App: implement option to set config key 2022-11-13 19:54:30 +01:00
Chris Hennes
3fe026f3c9 Remove various sys.version_info >= 3 checks 2022-11-09 14:08:54 +01:00
wmayer
0c7c427b7e + fix build failure if SMESH support is disabled 2022-11-06 20:23:13 +01:00
Uwe
f3c0cfbd59 output SMESH version number in about dialog
- in order to get this info when user reports bugs
2022-11-05 17:46:34 +01:00
Chris Hennes
9e481f1ac1 Addon Manager: use versioned Python package dirs 2022-11-05 11:45:02 -05:00
Chris Hennes
2f7be9e782 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
wmayer
72af60c22e App: fixes issue #7628: Crash after creating Sketch for Body
The problem is that inside Transaction::addObjectNew() a transaction object is deleted before removing it from the container. When deleting the corresponding transactional object (i.e. a DocumentObject or ViewProvider)
it can happen that it e.g. calls Transaction::addOrRemoveProperty() that now finds the dangling pointer in the container.

The safe way is to first remove the object from the container before deleting it.
2022-10-24 16:49:29 +02:00
luz paz
2d4482cdf3 Fix source comment typo 2022-10-23 09:14:44 -05:00
wmayer
916891c3fc App: simplify code in Application::newDocument 2022-10-21 21:15:21 +02:00
wmayer
4fff36b550 App: [skip ci] fix string literal 2022-10-21 13:43:26 +02:00
Kuzemko Alexsandr
63174d487f [App] Fix of untranslated first document's name (#7156)
* Change no need function newDocument("Unnamed") call to variant without parameter. "Unnamed" set in App newDocument function instead.
* Refactor New Document command to run without parameter.
* Translate new document's userName. Internal name = "Unnamed".
* Crowdin Add to updatets.py App.ts. Create new file App.ts
* Fix error where document name is set with one function parameter. In this situation set internal and user name to string variable. For default function call (without parameter) set internal name to Unnamed, userName = translate ("Unnamed")
2022-10-20 21:35:09 -05:00
wmayer
67679b8a0f App: [skip ci] use curly braces for if/else-statements and for loops 2022-10-14 13:55:11 +02:00
wmayer
9282fffa07 App: add tests for cell rows and absolute cells 2022-10-13 20:16:48 +02:00
Uwe
a96a3a505f use explicit prefix std:: for vectors
- also add potentially missing include
- this commit is an attempt to fix #7585
2022-10-11 01:44:24 +02:00
Uwe
4a2aff82a6 [TD] Gui, Dlg*: remove unused includes
- also sort includes
- also two whitespace changes
2022-10-09 19:14:31 +02:00
wmayer
ea5a5ff363 App: [skip ci] for the dependency graph use orange color to indicate links that go out of scope 2022-10-08 16:29:36 +02:00
wmayer
f4b4aabc32 App: add option '--pass' to ignore arguments by the application and handle them by a script 2022-09-29 12:30:31 +02:00
Chris Hennes
b5e29c20dc App: Reformat Metadata per clang-tidy 2022-09-26 11:04:42 -05:00
Chris Hennes
1d11c5805a App: Add support for <pythonmin> XML tag in metadata 2022-09-26 11:04:42 -05:00
wmayer
198ce19e46 App: Consider using getpwuid_r(...) instead of getpwuid(...) for improved thread safety. [runtime/threadsafe_fn] 2022-09-25 11:43:15 +02:00
Uwe
5df9546907 [App] Application.cpp: silence some CI warnings
about whitespace, line length etc.
2022-09-24 20:44:07 +02:00
berniev
94a686f348 redundant 2022-09-24 20:36:21 +02:00
wmayer
414ff3fb35 App: [skip ci] improve whitespaces 2022-09-24 17:02:23 +02:00
marioalexis
5cb31ece93 App: Check Python types using Base::PyTypeCheck 2022-09-24 05:10:34 +02:00
Uwe
3eb9207639 [App] silence some CI whitespace warnings 2022-09-24 04:59:38 +02:00
Chris Hennes
cc17bd4335 App: Add support for 'discussion' URL attribute 2022-09-22 10:53:59 -05:00
Chris Hennes
4f51123626 App: Add support for <date> metadata element 2022-09-22 10:27:47 -05:00
Chris Hennes
49e37dd611 Core: Add missing xml namespace property to metadata output 2022-09-21 08:44:38 -05:00
marioalexis
9ccb9eecb2 App: Replace C cast 2022-09-18 11:06:51 -05:00
wmayer
2462f4c7a0 App: move from float to double for accuracy parameter, add a virtual method to determine a default accuracy 2022-09-15 09:52:14 +02:00
wmayer
64784232ab App: [skip ci] fix -Wsometimes-uninitialized 2022-09-12 14:20:41 +02:00