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.
This commit is contained in:
@@ -313,9 +313,9 @@ QString getShapeTypeText(eRefType type)
|
||||
|
||||
QStringList getRefListForMode(AttachEngine &attacher, eMapMode mmode)
|
||||
{
|
||||
AttachEngine::refTypeStringList list = attacher.modeRefTypes[mmode];
|
||||
refTypeStringList list = attacher.modeRefTypes[mmode];
|
||||
QStringList strlist;
|
||||
for(AttachEngine::refTypeString &rts : list){
|
||||
for(refTypeString &rts : list){
|
||||
QStringList buf;
|
||||
for(eRefType rt : rts){
|
||||
buf.append(getShapeTypeText(rt));
|
||||
|
||||
Reference in New Issue
Block a user