Commit Graph

55 Commits

Author SHA1 Message Date
Zheng, Lei
7164674cb4 Base/App/Gui: force using Base::Handle for ParameterManager
For reference counting
2023-01-06 09:14:41 -06:00
berniev
87c3b58f44 Simplify switch statement (modded) 2022-12-04 19:37:04 +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
berniev
58cb977c3b remove xcerces2 2022-09-09 08:02:35 +02:00
wmayer
7824d7b1df Base: fix several warnings reported by code analyzers 2022-08-02 13:04:50 +02:00
berniev
8aff4a7503 Base: Modernise ctors dtors defs etc 2022-08-02 12:37:46 +02:00
berniev
4043d049bc remove redundant void from Base 2022-07-31 14:10:34 +02:00
wmayer
0bef4e82f2 Fix several clazy issue:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
2022-07-24 22:29:06 +02:00
Uwe
90abdf2752 [Base] remove some more superfluous nullptr checks 2022-07-18 13:07:16 +02:00
Uwe
bd6ffcc7e0 [Base] remove more superfluous nullptr checks 2022-07-18 03:29:03 +02:00
Uwe
53571f7196 [Base] remove superfluous nullptr checks 2022-07-18 03:16:22 +02:00
Zheng, Lei
3ef438eaf0 Fix mixed line endings 2022-04-26 12:52:55 -05:00
Chris Hennes
3b42d4afac Base: PR6497 move return statement to new line 2022-03-29 12:34:34 -05:00
wmayer
b47029998e Base: fix handling of path separators in parameter group names 2022-03-29 14:54:03 +02:00
wmayer
988a96b457 Base: make Parameter class less vulnerable for invalid user config files 2022-03-24 11:43:39 +01:00
wmayer
93f0c64704 Base: [skip ci] remove several superfluous static_cast 2022-03-24 11:27:55 +01:00
wmayer
882e34f2ce Base: modernize C++11
* use nullptr
2022-03-23 16:57:25 +01:00
Uwe
7bb7efc55f [Base] Parameter and Matrix: remove unused includes 2022-03-02 13:28:34 +01:00
wmayer
4d87039635 Base: modernize C++11
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-25 20:21:30 +01:00
wmayer
9f2dd4a363 Base: [skip ci] Modify GetASCII to include empty strings 2021-10-23 22:56:45 +02:00
Chris Hennes
525a92cfc5 Modify GetASCIIMap to include empty strings 2021-08-20 20:04:19 -05:00
wmayer
b5c49a6b77 Base: allow to use the classes XUTF8Str and StrXUTF8 outside FreeCADBase 2021-04-28 10:56:17 +02:00
wmayer
eff0655d83 LGTM: [skip ci] fix: Wrong type of arguments to formatting function 2020-07-24 19:58:48 +02:00
wmayer
d5d16de06b Gui: [skip ci] implement function to rename parameter group 2020-05-01 22:47:30 +02:00
wmayer
6306dc0276 Base: [skip ci] Parameter Editor: Rename group creates new group 2020-05-01 20:08:43 +02:00
luz.paz
6f11ed298a src/Base: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Base` files
2019-12-25 11:38:58 +01:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
luz.paz
788a509184 Doxygen: Base/Parameter.h description
Adding a cursory description for `Parameter.h` + typo fix for it's companion .cpp file. 

.
2019-10-19 16:14:53 -03:00
wmayer
f8f52e6fcf replace some old C style casts with static_cast or reinterpret_cast 2019-10-18 15:50:15 +02:00
wmayer
81b615bfb9 fix several memory leaks in ParameterGrp when removing nodes from DOM document 2019-10-18 15:43:22 +02:00
wmayer
736511e5b6 + implement a correct cleaning of a parameter group without creating ghost instances of ParameterGrp 2019-10-18 15:38:58 +02:00
wmayer
9a6824a3fe + before creating element in DOM document check if the group node still has the correct name 2019-10-18 15:34:20 +02:00
wmayer
ee63c324c1 Add an XSD validation scheme and implement ParameterManager::CheckDocument(), function is used in the parameter editor 2019-10-14 22:56:03 +02:00
wmayer
9ed08a8136 avoid adding extra newlines when writing user.cfg 2019-10-10 22:03:13 +02:00
wmayer
ec86db4bfb when saving parameters make sure document exists 2019-03-12 01:05:50 +01:00
luz.paz
be5e93ddfe Misc. typo & whitespace fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt --skip="*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./.git,./src/zipios++"`
Revert IFC commit
2018-07-11 21:52:27 -04:00
luz.paz
7a09a5774e More misc. typos 2018-05-19 12:17:52 -04:00
Unknown
a8ecffb652 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
luzpaz
b24a9c9ad4 Misc. typos
- Tooltip uniformity 
- source comment typo fixes
- remove double whitespaces
2017-11-24 09:45:08 -02:00
Unknown
ad457ba96b Misc. Typos 2017-10-09 19:59:33 +02:00
wmayer
1673ab801e use specialized exception classes 2017-04-28 18:49:11 +02:00
Kunda
19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
00eaab0522 + add new class ParameterSerializer to load and save parameter files 2016-04-29 17:43:07 +02:00
wmayer
2e43774c2f + terminate xerces at program exit 2016-03-09 15:52:42 +01:00
wmayer
b7be7aec13 + Prefer prefix ++/-- operators for non-primitive types 2015-10-07 13:38:17 +02:00
wmayer
f53a691bba + Prefer prefix ++/-- operators for non-primitive types 2015-10-06 21:16:44 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
032c893183 + fix warnings with clang 2014-09-24 17:46:04 +02:00
wmayer
f2319de49d + do not abort if user.cfg or system.cfg is empty 2014-08-31 16:10:45 +02:00
jriegel
36a0641edd App and Base Compiles with new LibPack 2014-08-03 22:56:52 +02:00