Zheng, Lei
5ec19fc5a1
Reduce debug log output
2022-04-23 16:21:49 +02:00
Zheng, Lei
f8ae185c15
Spreadsheet: improve efficiency when pasting many cells
2022-04-22 12:28:56 -05:00
Zheng, Lei
bc1f5498a9
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
070bdf5b4c
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
a4a0d11eca
Merged crowdin translations
2022-04-21 14:18:33 +02:00
0penBrain
2066946c29
Sheet: use wrapper function to clarify intention
2022-04-15 12:14:55 -05:00
0penBrain
e2e91cdafa
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
384f56fe65
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
2a002e3df6
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
4f75f86a93
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
35bb6278ea
merged crowdin translations
2022-04-13 13:47:06 +02:00
Chris Hennes
cb21ac7bf8
Spreadsheet: PR6497 move return statement to new line
2022-03-29 13:25:44 -05:00
Chris Hennes
bb11c74565
Spreadsheet: PR4556 Step 3: sort QGridLayout by row-col
2022-03-28 10:43:22 -05:00
Chris Hennes
a9679d54c1
Spreadsheet: PR4556 Step 2: remove native=true
2022-03-28 10:43:21 -05:00
Zheng, Lei
8d97b2bcb8
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
5bab6fb189
Spreadsheet: include header with export macros
2022-03-24 20:51:48 +01:00
wmayer
97330443a2
All: modernize C++11
...
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
2c229d3bc0
Spreadsheet: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
66e8a2bef3
[Spreadsheet] remove Python.h and Xerces
2022-03-20 20:44:17 +01:00
Yorik van Havre
6efe74a554
Merged crowdin translations
2022-03-14 12:21:01 +01:00
wmayer
0054cbddaa
Fix coverity issue:
...
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Uwe
bda12907de
[Gui] rename the Qt header list
2022-03-07 20:35:38 +01:00
wmayer
1ca7429705
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
wmayer
58a719e207
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
95c70e7f4c
App: use forward declarations
2022-03-04 21:09:46 +01:00
wmayer
032cea587d
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
5d5f31725d
Code clean
2022-03-02 18:55:10 +01:00
andrea reale
36d865df04
fix uninitialized variables
2022-03-01 02:03:44 +01:00
Uwe
b4fff07d9e
[App] Expression and Extension: remove unused includes
2022-02-25 18:06:57 +01:00
Zheng, Lei
bfb9d342d9
Spreadsheet: fix auto completer triggering
2022-02-20 22:09:07 -06:00
Yorik van Havre
19b89b1085
Merged crowdin translations
2022-02-14 12:31:57 +01:00
Yorik van Havre
b3e2c87530
Merged crowdin translations
2022-01-26 14:15:14 +01:00
wmayer
10ca067d95
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
c14e6b318e
Spreadsheet: fix dependency calculation on external spreadsheet
2022-01-23 19:43:53 -06:00
wmayer
f147986fa9
App: Bugfix for NULL-Pointer dereference of Property->getName()
2022-01-16 14:30:51 +01:00
wmayer
b836712c83
Test: [skip ci] clean up documents for unit test with cross links
2022-01-15 16:34:13 +01:00
wmayer
94e2ce44b4
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
e33ef084ff
Merged crowdin translations
2022-01-10 11:23:59 +01:00
wmayer
26f9e7869f
App: replace three boolean of CellAddress::toString() with a bitmask of enums
2022-01-09 10:39:54 +01:00
wmayer
e7c2f8b703
Spreadsheet: proper implementation of mp_subscript of Mapping protocol of PropertySheetPy
2022-01-07 19:55:21 +01:00
Mark Ganson TheMarkster
8d6ff3c07b
[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
4098c88171
[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
Yorik van Havre
6cb3782c03
Merged crowdin translations
2021-12-29 12:20:12 +01:00
Zheng, Lei
35d7b71466
Spreadsheet: code style change
2021-12-21 21:41:02 -07:00
Zheng, Lei
0029f3206d
Spreadsheet: improve copy/cut/paste cells
...
Add color bound around user copy/cut ranges. Do not touch Spreadsheet
object when cutting, only do so when pasting.
2021-12-21 21:41:02 -07:00
Zheng, Lei
caa29060cf
Spreadsheet: fix handling of absolute cell address
2021-12-21 21:41:02 -07:00
Zheng, Lei
bd201c82ce
Spreadsheet: add menu action 'Configuration table...'
...
To make it easy for user to create dynamically switchable configuration
tables using spreadsheet.
2021-12-21 21:41:02 -07:00
Zheng, Lei
7d23d5b984
Spreadsheet: support mapping protocol in PropertySheetPy
...
Read only mapping protocol support to retrieve a range of cell values.
Expects the key to be a string of either a single cell address or a
range.
2021-12-21 21:41:02 -07:00
Chris Hennes
82759f6203
Spreadsheet: Compilation fixes for cherry-picked commits
2021-12-21 21:41:02 -07:00
Zheng, Lei
2a3951ca32
Spreadsheet: change alias handling
...
No longer add dynamic property for alias, simply rely on
get(Dynamic)PropertyByName() to check for aliases.
Add new API PropertyContainer::getPropertyNamedList() so that
ExpressionCompleter can discover properties with aliases.
2021-12-21 21:41:02 -07:00