Commit Graph

18 Commits

Author SHA1 Message Date
wmayer
9e5f602acd add function to escape special characters in strings 2019-10-03 01:43:08 +02:00
wmayer
504590902d add function to escape special characters in file names 2019-09-28 19:32:34 +02:00
Zheng, Lei
2d9ca92594 Base: misc patches
Convenience macros/function (in Interpreter.h)

* FC_PY_GetObject/Callable(), look for callables in a python object,
  which will be used in future patch to improve performance in various
  python observer/features.

* pyCall(WithKeywords)(), helper function to invoke the callable

Matrix4D:

* hasScale(), check if there is any scale in the transformation. If so,
  further check if the scale is uniform or not. This will be used in
  future patch for Part::TopoShape to decide which type of transform to
  apply.

Placement:

* translate/rotate(), new convenience API

Rotation:

* isSame/multiVec(), new convenience API

Polygon2d:

* Intersect(), GetCenter(), new convenience API.

FlagToggler:

* New class for exception safe flag toggling, similar to StateLocker
  but with template (actually, FlagToggler is added earlier by me).

BitsetLocker:

* New class for exception manipulation of a std::bitset variable.
2019-08-17 14:52:08 +02:00
wmayer
66b889044b fixes 0003689: Snap to grid checkbox in edit control widget does not update 2018-11-14 12:40:39 +01:00
wmayer
36271b4052 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
4520aeb5ea fix -Wunused-private-field 2018-10-28 18:58:38 +01:00
wmayer
ec15e76006 fix ObjectStatusLocker and StateLocker to support nested calls 2018-10-07 22:04:27 +02:00
wmayer
2a36f5c944 fix infinite recursion in case of non-DAG documents 2018-08-06 18:52:48 +02:00
wmayer
495c048ece add helper class to tmp. block a boost signal/slot connection 2017-12-21 22:22:33 +01:00
wmayer
a519a34299 remove export macro from template class 2017-11-30 17:37:51 +01:00
Eivind Kvedalen
8b4adfa513 Moved ObjectStatusLocker template class to Base/Tools.h 2017-11-30 16:28:41 +01:00
wmayer
66dffafe88 implement method to convert escaped unicode to utf-8 encoded string 2016-07-24 16:14:40 +02:00
wmayer
8c239cd39b + add restart method to timer 2015-12-07 17:31:05 +01:00
Eivind Kvedalen
ffa304e4f9 Base: Added toStdString and fromStdString, to convert std::string to/from QString,
assuming std::string is utf-8 encoded.
2015-09-21 14:51:00 +02:00
Sebastian Hoogen
01cf0f5872 issue #1027 use unicode filepaths 2014-10-11 13:32:06 +02:00
wmayer
0035d9fc76 Add utility functions to convert between string/wstring 2013-04-26 17:07:18 +02:00
logari81
e1326a9760 + simplify arc and circle trimming implementation in the Sketcher
+ fix a memory leak in freegcs
+ small improvements and typo fixes in freegcs
+ homogenize coding style, strip trailing spaces


git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5044 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-21 09:45:19 +00:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00