Commit Graph

455 Commits

Author SHA1 Message Date
wmayer
e4f9a0060b Spreadsheet: PR #6843: add missing unit test 2022-05-09 10:27:52 +02:00
Zheng, Lei
7a8693557e Spreadsheet: fix cell clearing 2022-05-09 10:25:49 +02:00
wmayer
818d3cc30e Spreadsheet: [skip ci] issue #6840/#6844: add unit test 2022-05-08 21:29:56 +02:00
wmayer
5220519c09 Spreadsheet: [skip ci] issue #6844: add unit test 2022-05-08 18:59:23 +02:00
Zheng, Lei
2df514c743 Spreadsheet: fix extra row or column when printing
If there is only one single row or column in the table
2022-05-06 08:40:11 -05:00
Zheng, Lei
5f17d5edca Spreadsheet: add new API PropertySheet::getNonEmptyCells()
To exclude cells without any text content. Used when printing (among
other cases) to skip empty cells.
2022-05-06 08:40:11 -05:00
Yorik van Havre
996994da55 Merged crowdin translations 2022-05-05 15:46:09 +02:00
Yorik van Havre
a62092d498 Updated ts files 2022-05-05 15:20:57 +02:00
Zheng, Lei
b7fb96b553 Reduce debug log output 2022-04-23 16:21:49 +02:00
Zheng, Lei
54ed4fe34f Spreadsheet: improve efficiency when pasting many cells 2022-04-22 12:28:56 -05:00
Zheng, Lei
98668ed947 Spreadsheet: do not copy empty cell
Because pasteCells() will clear empty cells in selected range
2022-04-22 12:28:56 -05:00
Zheng, Lei
68299281d3 Spreadsheet: do not create string property for empty cell
Otherwise may cause massive slow down when, for example, the user
changes the entire row/column color, which results in large amount of
empty cells.
2022-04-22 12:28:56 -05:00
Yorik van Havre
1fbd1fb38d Merged crowdin translations 2022-04-21 14:18:33 +02:00
0penBrain
922bcea6ec Sheet: use wrapper function to clarify intention 2022-04-15 12:14:55 -05:00
0penBrain
cd007dd3c8 Sheet: enable Merge action only if at least 2 cells are selected
Both main menu and context menu
2022-04-15 12:14:55 -05:00
0penBrain
9eca8454ca Sheet: enable Split action only if only one merged cell is selected
Both main menu and context menu
 Partially fixes #6744
2022-04-15 12:14:55 -05:00
0penBrain
7edcc8358c Sheet: Warn user when cell merge is not done because already merge cells in the range
Partially fixes #6744
2022-04-15 12:14:55 -05:00
0penBrain
b33478f8d0 Sheet: update commands status when selection is changed
Notice it doesn't cover the case of the context menu actions
 Partially fixes #6744
2022-04-15 12:14:55 -05:00
Yorik van Havre
914069ded4 merged crowdin translations 2022-04-13 13:47:06 +02:00
Chris Hennes
ed75cead6c Spreadsheet: PR6497 move return statement to new line 2022-03-29 13:25:44 -05:00
Chris Hennes
3846c6bb10 Spreadsheet: PR4556 Step 3: sort QGridLayout by row-col 2022-03-28 10:43:22 -05:00
Chris Hennes
fc3b88bd6a Spreadsheet: PR4556 Step 2: remove native=true 2022-03-28 10:43:21 -05:00
Zheng, Lei
fcd176aef0 Spreadsheet: fix owner property reference in PropertySheet
PropertySheet used to only work when refereceing its own cell either
through cell address or alias. It does not work for reference to other
property of the owner Spreadsheet object.
2022-03-26 10:19:20 -04:00
wmayer
b8feeb31ca Spreadsheet: include header with export macros 2022-03-24 20:51:48 +01:00
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
2a2b8835c0 Spreadsheet: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
81690adaaf [Spreadsheet] remove Python.h and Xerces 2022-03-20 20:44:17 +01:00
Yorik van Havre
a55ee61840 Merged crowdin translations 2022-03-14 12:21:01 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Uwe
554635cc7d [Gui] rename the Qt header list 2022-03-07 20:35:38 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
wmayer
91e4e468dd Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00
wmayer
5e0cfc64ee App: use forward declarations 2022-03-04 21:09:46 +01:00
wmayer
6c2e1a2d6e Base: implement a lightweight smart pointer for PyObject like Py::Object to reduce includes of Python.h in header files 2022-03-04 15:51:51 +01:00
andrea reale
3a85c7c729 Code clean 2022-03-02 18:55:10 +01:00
andrea reale
192a399b42 fix uninitialized variables 2022-03-01 02:03:44 +01:00
Uwe
a8c912d6f8 [App] Expression and Extension: remove unused includes 2022-02-25 18:06:57 +01:00
Zheng, Lei
cd7c208177 Spreadsheet: fix auto completer triggering 2022-02-20 22:09:07 -06:00
Yorik van Havre
e1028eb65e Merged crowdin translations 2022-02-14 12:31:57 +01:00
Yorik van Havre
233182dcd6 Merged crowdin translations 2022-01-26 14:15:14 +01:00
wmayer
978f58e8ab Spreadsheet: unit test for expressions using an input spreadsheet
A bug was reported here: https://forum.freecadweb.org/viewtopic.php?p=564502#p564502
2022-01-24 14:20:26 +01:00
Zheng, Lei
d07479aba7 Spreadsheet: fix dependency calculation on external spreadsheet 2022-01-23 19:43:53 -06:00
wmayer
b35623e680 App: Bugfix for NULL-Pointer dereference of Property->getName() 2022-01-16 14:30:51 +01:00
wmayer
8525033bcc Test: [skip ci] clean up documents for unit test with cross links 2022-01-15 16:34:13 +01:00
wmayer
90834eecfe Test: [skip ci] add unit test with cross links
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=58603
2022-01-15 14:28:08 +01:00
Yorik van Havre
c24ca51a44 Merged crowdin translations 2022-01-10 11:23:59 +01:00
wmayer
ce05165f21 App: replace three boolean of CellAddress::toString() with a bitmask of enums 2022-01-09 10:39:54 +01:00
wmayer
5e509227d2 Spreadsheet: proper implementation of mp_subscript of Mapping protocol of PropertySheetPy 2022-01-07 19:55:21 +01:00
Mark Ganson TheMarkster
10aae4619a [Spreadsheet] Use DontUseNativeColorDialog parameter when using QtCol… (#5326)
* [Spreadsheet] Use DontUseNativeColorDialog parameter when using QtColorDialog::getColor()
2022-01-05 12:23:14 +01:00
Chris Hennes
42e0cf0c8a [Spreadsheet] Use stylesheet for alias color
When setting the text color for an invalid alias, use the Qt stylesheeet
mechanism rather than QPalette, so that it works correctly with
an applied QSS stylesheeet. Also attempt to detect a darkmode stylesheet
and use lighter shade of red so that the alias is more legible. Finally,
instead of explicitly setting the text color to black when it's valid,
reset to the original stylesheet (usually an empty string). This ensures
that in a dark stylesheet the text color is legible.

Fixes #0004803.
2021-12-29 21:49:00 -06:00