Commit Graph

637 Commits

Author SHA1 Message Date
Adrian Insaurralde Avalos
44f8772c89 Avoid sending unescaped quotes to python console 2024-02-04 16:44:25 -06:00
Chris Hennes
fce7dea6f7 Update translations (#11886)
* Update translations

* [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>
2024-01-03 09:27:18 -06:00
pre-commit-ci[bot]
2830e77874 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-20 09:27:37 +01:00
Yorik van Havre
651fc54a8c merged crowdin translations 2023-12-20 09:27:37 +01:00
André Caldas
89dbab9b0e Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.

The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).

Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".

The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
wmayer
edb6a25335 Python: deprecated aliases have been removed in Py 3.12 2023-12-02 14:45:55 +01:00
Yorik van Havre
fac94ba932 Translations (#11551)
* Updated ts files

* merged crowdin translations

* [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 11:29:38 -06:00
Chris Hennes
1372070452 Update translations 2023-11-20 13:46:22 -06:00
Chris Hennes
f25af97811 Update translations 2023-11-09 12:23:56 -06:00
Chris Hennes
37a8e348c6 Merge pull request #11231 from DeflateAwning/http-cleanup
Find and replace http://freecad to https://freecad
2023-11-06 11:16:13 -06:00
Chris Hennes
ce8f48967a Merge branch 'main' into modernize-type-check 2023-10-31 15:46:18 -05:00
DeflateAwning
46b3c02647 Change http to https in SVGs
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Include: *.svg
2023-10-29 22:32:59 -06:00
Camille
b199458a49 Fix issue #10144 [Problem] FreeCAD freezes when clicking inside spreadsheet - see issue for detailed explanation. 2023-10-27 18:38:13 +02:00
Florian Foinant-Willig
9547fc42a4 Spreadsheet: modernize type checking 2023-10-23 18:08:42 +02:00
wmayer
643fe0cf03 Sheet: remove double call of 'mimeData->hasText()' 2023-10-18 23:05:24 -05:00
Victor Predko
e1206a3fac File formats: Uppercase file types when importing a file. (#10977)
* Added uppercase extensions for supported formats

In the file App\Application.cpp

* Added file types in upper case

* Adds uppercase file types to the file import filter.

Fixes #10879

* Added filter for *.fcmacro *.fcscript
2023-10-16 14:40:46 -03:00
wmayer
d305f306df Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
AgCaliva
3ac69993c0 merge master via cli 2023-10-04 13:28:48 -03:00
Victor Predko
e33c5ceb15 Spreadsheet: export CSV file extension by default
Fixes #10829
2023-10-02 06:38:40 +03:00
Chris Hennes
6c9be93378 Update translations 2023-09-29 22:57:37 -05:00
AgCaliva
a4e90b2609 Merge branch 'master' into User/Document/Feature_level_units_selection_#7746 2023-09-25 22:58:23 -03:00
Chris Hennes
3f3ab1ae15 Update translations 2023-09-19 22:25:14 -05:00
AgCaliva
64f60721a9 merge master via cli 2023-09-16 02:12:58 -03:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
Chris Hennes
0bc6870618 Update translations (#10613)
* Update translations
* Start: Remove Start.ts
2023-09-10 13:06:26 -05:00
pre-commit-ci[bot]
5fd4e5acc5 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-10 16:01:37 +02:00
wmayer
811abd699c Sheet: remove trailing whitespace
pre-commit.com hooks will remove the trailing whitespaces from the .ts files
2023-09-10 16:01:37 +02:00
wmayer
b5d363baf1 Sheet: Apply clang format 2023-09-10 16:01:37 +02:00
wmayer
50bb81e6fc Sheet: Apply clang format 2023-09-10 16:01:37 +02:00
wmayer
4d3c9ce1c5 Sheet: Apply clang format 2023-09-10 16:01:37 +02:00
AgCaliva
93679b2729 Fix DOMDocument redefinition error 2023-09-08 09:12:52 -03:00
Chris Hennes
40f130643a Update translations 2023-08-29 07:38:09 -05:00
kaktus Jacek
b6db25c2d2 Cleaning code from unnecessary strings generated to Crowdin. (#10385)
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-27 10:08:11 -05:00
wmayer
2ad2a0258d Sheet: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
8027aed557 Sheet: modernize C++: use equals default 2023-08-22 12:45:58 +02:00
wmayer
bafb6cfb9f Sheet: modernize C++: return braced init list 2023-08-19 11:35:41 +02:00
Chris Hennes
bac14e81f7 Merge pull request #10258 from chennes/translations20230814
Update translations
2023-08-18 08:52:13 -05:00
Chris Hennes
58cf9f3212 Update translations
Adds the ten units strings from Base as well.
2023-08-16 22:50:39 -05:00
Daniel-Khodabakhsh
a9ac5b8398 Expressions: Add Vector API expression functions (#10237) 2023-08-15 23:00:16 -05:00
wmayer
25824cc363 Sheet: modernize C++: use range-based for loop 2023-08-15 20:21:20 +02:00
Jonas Bähr
dee56c32d4 Spreadsheet: fix build on macOS
The recent migration from boost::bind to std::bind [1] broke the build
on Mac (Apple clang version 13.0.0 (clang-1300.0.29.30) on macOS-11.7.8).

In all other cases the `boost::bind` was replaced by `std::bind` (among
with the place holders) but in these two spread sheet files
  src/Mod/Spreadsheet/Gui/SheetModel.cpp
  src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp
the original code only referenced `bind`, which used to get resolved to
`boost::bind` but now raises this error:
> /Users/jonas/src/FreeCAD/FreeCAD-git/src/Mod/Spreadsheet/Gui/SheetModel.cpp:50:36: error: use of undeclared identifier 'bind'; did you mean 'boost::bind'?
>         sheet->cellUpdated.connect(bind(&SheetModel::cellUpdated, this, sp::_1));
>                                    ^~~~
>                                    boost::bind

This commit changes this to `std::bind` expicitly, just like it's done in
the other files. This works on my system/compiler.

[1]: 4ffe0c3218
2023-08-11 06:15:51 -07:00
wmayer
948cbfccd9 modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
52e1c7c33b modernize C++: move from boost::bind to std::bind 2023-08-08 17:36:13 +02:00
wmayer
ec73caa40e modernize C++: make unique 2023-08-07 19:51:30 -06:00
wmayer
c2e17824fa modernize C++: raw string literal 2023-08-07 19:51:15 -06:00
wmayer
b6f331f4fa modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
Tobias Falk
529f9401f7 added PDF/A-1b compliancy to all PDF export functions
for more details about this look at: https://www.kdab.com/creating-pdfa-documents-qt/
2023-08-05 14:46:11 -06:00
wmayer
bf5059bf76 Sheet: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
Chris Hennes
dd40387478 Update translations 2023-07-24 13:37:52 +00:00
0penBrain
c14891dd3e Spreadsheet: update and add tests 2023-07-23 22:11:08 -04:00