Commit Graph

12 Commits

Author SHA1 Message Date
DeepSOIC
1199a63b2b Attacher: Py: fix crash on FreeCAD startup 2016-05-14 23:10:38 +03:00
DeepSOIC
86707b4cb5 Attacher: Py: GUI resources interface
Routines to get UI strings for attacher: mode names, mode tooltips,
ref.type names
2016-05-13 19:54:44 +03:00
DeepSOIC
39249581eb Attacher: change suggestion routine interface
When another bit of information was needed to be extracted from mode
suggestion routine, it felt like listMapModes had too many arguments.
So, the arguments have been collapsed into a struct. This triggered a
few namespace-related changes, which lead to massive search-and-replace
changes all over FreeCAD.

So the only functional change carried out is the addition of reference
types readout to info returned by suggestor.
2016-05-07 11:24:41 +02:00
DeepSOIC
22480effeb Attacher: new modes: Inertia CS, Inertia axes
Modes added:
3D and plane attachment: Inertia CS
Line attachment: Inertia axes
This commit may serve a good example of how to add new attachment modes.
2016-05-07 11:24:41 +02:00
DeepSOIC
701eba37be Attacher: new mode: center of mass (point attacment) 2016-05-07 11:24:41 +02:00
DeepSOIC
d1d8746518 Attacher: fix typo in tooltip 2016-05-07 11:24:41 +02:00
wmayer
4ce77402ca + fix compiler warning due to comparison of string literals 2016-04-26 18:57:25 +02:00
wmayer
d1bc34441d + fix various gcc & clang warnings 2016-04-24 16:21:19 +02:00
DeepSOIC
7dbe10bb12 Attempt to fix gcc build 2016-04-21 22:34:20 +03:00
DeepSOIC
8dea73ed2b Attacher: coding and translation style fixes
Replace QObject::tr() with qApp->translate, as suggested by @wwmayer
Curly braces around nested ifs.
Fix misleading comment in Attacher.h
2016-04-21 20:55:42 +03:00
DeepSOIC
2639b6b5fb Attacher: list ref. combinations in UI 2016-04-21 20:55:42 +03:00
DeepSOIC
102b02e12b Attacher: create special source file to contain attacher strings 2016-04-21 20:55:42 +03:00