Commit Graph

604 Commits

Author SHA1 Message Date
wmayer
0b0f039ef9 Sheet: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
1ac09bccc3 Sheet: modernize C++: use equals default 2023-08-22 12:45:58 +02:00
wmayer
e541c7d3dd Sheet: modernize C++: return braced init list 2023-08-19 11:35:41 +02:00
Chris Hennes
09edbbebaf Merge pull request #10258 from chennes/translations20230814
Update translations
2023-08-18 08:52:13 -05:00
Chris Hennes
28f396cc75 Update translations
Adds the ten units strings from Base as well.
2023-08-16 22:50:39 -05:00
Daniel-Khodabakhsh
8003606222 Expressions: Add Vector API expression functions (#10237) 2023-08-15 23:00:16 -05:00
wmayer
a49e104993 Sheet: modernize C++: use range-based for loop 2023-08-15 20:21:20 +02:00
Jonas Bähr
22b173d0e2 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]: 68d22d864b
2023-08-11 06:15:51 -07:00
wmayer
d150fa7164 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
68d22d864b modernize C++: move from boost::bind to std::bind 2023-08-08 17:36:13 +02:00
wmayer
0af4990817 modernize C++: make unique 2023-08-07 19:51:30 -06:00
wmayer
96aabe113e modernize C++: raw string literal 2023-08-07 19:51:15 -06:00
wmayer
f94b026456 modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
Tobias Falk
5965956293 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
ca84a0662d Sheet: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
Chris Hennes
6838740153 Update translations 2023-07-24 13:37:52 +00:00
0penBrain
1580fe7c96 Spreadsheet: update and add tests 2023-07-23 22:11:08 -04:00
0penBrain
ee3b777f62 Spreadsheet: fix string save/restore, fixes #6395 2023-07-23 22:11:08 -04:00
Robbe De Greef
ae215724dd fix: Spreadsheet applies content/alias even when focus lost (#9836)
* fix: Spreadsheet applies alias even when focus lost

The original stylesheet behavior was that the alias or content fields
could be edited, but only after enter was pressed the field would
actually update. This change makes the field apply when focus is lost
on top of when enter is pressed. This makes it easier to enter the
alias of a lot of fields at once.
2023-07-19 09:15:54 -05:00
Chris Hennes
6f97b74fdb Apply translations 2023-07-09 18:09:53 -05:00
Chris Hennes
97771dc673 Update translations 2023-07-06 08:20:59 -05:00
Petter Reinholdtsen
28ad96b87f Use python3 as the interpreter instead of python (ie v2)
This fixes lintian warning "unusual-interpreter".

Part of the Debian edition of FreeCAD since 2023.
2023-07-01 03:09:19 +02:00
Yorik van Havre
0977aac30d merged crowdin translations 2023-06-16 16:42:32 +02:00
Yorik van Havre
23491db16b Merged crowdin translations 2023-06-12 22:34:22 +02:00
Chris Hennes
a2d457e88f Update translations 2023-05-25 21:32:26 -05:00
Chris Hennes
20f073e84e Update translations 2023-05-21 19:13:11 -05:00
Chris Hennes
ad8a4376c8 Gui: Move C++ pref pages to QObject context 2023-05-19 20:54:27 -05:00
Chris Hennes
0b41c4a8a8 Update translations 2023-05-18 07:49:08 -05:00
0penBrain
719339657d Sheet: display an error in console when a cyclic dependency is detected 2023-05-17 10:09:41 +02:00
wmayer
8089e93951 Spreadsheet: Create .qm out of .ts files 2023-05-07 08:50:04 +02:00
Chris Hennes
1a4b85121b Merged crowdin translations 2023-05-06 11:56:32 -05:00
Chris Hennes
fb60e9a0e6 Update translations 2023-04-29 11:10:27 -05:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
Yorik van Havre
33c2e485e3 Merged crowdin translations 2023-04-20 14:04:19 +02:00
Yorik van Havre
d96042fc24 Updated ts files 2023-04-20 13:53:35 +02:00
wmayer
633ad41a96 Spreadsheet: fix -Wclazy-connect-by-name 2023-04-05 00:44:13 +02:00
CarlOlson
7a00359fda add generated code chnages, remove unused file and add bison *.output to gitignore 2023-03-26 18:48:59 +02:00
CarlOlson
926c1253af update expression grammar to handle parens around cond 2023-03-26 18:48:59 +02:00
Daniel-Khodabakhsh
827af464e3 Add various matrix related expression functions (#8603)
Adds a few new Expression functions with the goal to:

- Simplify Placement, Rotation, Vector and Matrix object creation.
- Add new matrix functions for rotation and translation.
2023-03-11 20:13:23 -06:00
mosfet80
3137dea940 remove Python2 code 2023-03-04 17:51:43 -06:00
Yorik van Havre
d3cc52dbab Merge pull request #8686 from yorikvanhavre/translations
Crowdin translations
2023-02-28 09:37:32 +01:00
Uwe
458e007ef0 [Mesh] [Spread] fix compilation with PCH
- add 2 missing includes to be able to compile with precompiled headers
2023-02-27 23:09:58 +01:00
Chris Hennes
51eb8ed813 Spreadsheet: Fix unintended copies 2023-02-27 15:58:32 -06:00
Chris Hennes
30e92860be Spreadsheet: Remove legacy file 2023-02-27 13:23:06 -06:00
Yorik van Havre
46653420a6 merged crowdin translations 2023-02-27 16:01:15 +01:00
Chris Hennes
db53c46b42 Spreadsheet: Fix possible null dereference
Fixes Coverity CID 184299.
2023-02-26 10:22:37 +01:00
wmayer
7c359469ba Gui: use Color::asPackedRGB<QColor>() 2023-02-26 10:11:53 +01:00
Yorik van Havre
50fb6d6b46 merged crowdin translations 2023-02-13 15:45:26 +01:00
wmayer
c0bbff3f28 Spreadsheet: fix some warnings and issues reported by GH actions 2023-02-10 16:06:46 +01:00
Adrian Popescu
3f3a548b22 Disabled Accessibility on SheetTableView 2023-02-07 16:42:54 +01:00