Search found 16743 matches

by wmayer
Sat Jan 23, 2021 11:41 am
Forum: Developers corner
Topic: Advise on requirements for version control of Qt UI XML files
Replies: 58
Views: 1502

Re: Advise on requirements for version control of Qt UI XML files

davidosterberg wrote:
Sat Jan 23, 2021 6:48 am
You need a screenshot. Nobody is going to install a GUI app if there is no screenshot :)
XMLCleaner.png
XMLCleaner.png (21.68 KiB) Viewed 142 times
by wmayer
Sat Jan 23, 2021 11:38 am
Forum: Developers corner
Topic: Advise on requirements for version control of Qt UI XML files
Replies: 58
Views: 1502

Re: Advise on requirements for version control of Qt UI XML files

chennes wrote:
Sat Jan 23, 2021 3:31 am
(The installer is Windows-only at the moment, but it compiles fine on Linux).
Attached is a diff file to make it working under Ubuntu Bionic.
by wmayer
Fri Jan 22, 2021 4:57 pm
Forum: Developers corner
Topic: Advise on requirements for version control of Qt UI XML files
Replies: 58
Views: 1502

Re: Advise on requirements for version control of Qt UI XML files

So, here is a convenient way to run the Python script without using a hook script. Create the file sort_ui.bat with this content set PATH=C:\Projects\FreeCADLibs_12.1.3_x64_VC15\bin;%PATH% cd C:\Projects\sort_ui python.exe sort_ui "%~f1" Adjust the paths to your setup. The lxml module can be fetched...
by wmayer
Fri Jan 22, 2021 2:13 pm
Forum: Developers corner
Topic: Error message on Invalid Document.xml
Replies: 12
Views: 372

Re: Error message on Invalid Document.xml

But trying to find an XML tag that is not there seems like something we could and should anticipate... It's likely to happen. It is weird FreeCAD doesn't do that already? I am not sure if this is easy to solve or even possible. FYI, we don't use a DOM tree when checking the elements of an XML docum...
by wmayer
Fri Jan 22, 2021 1:43 pm
Forum: Developers corner
Topic: Error message on Invalid Document.xml
Replies: 12
Views: 372

Re: Error message on Invalid Document.xml

Related to the current issue that loading a file saved with 0.19 leads to issues when opening it with 0.18 (or a sufficiently outdated 0.19), but in the more general context of detecting issues leading to an invalid document.xml (commonly the result of malformed XML or inexistent XML tags that shou...
by wmayer
Fri Jan 22, 2021 11:30 am
Forum: Help on using FreeCAD
Topic: Colors not affected by Topological Naming
Replies: 2
Views: 109

Re: Colors not affected by Topological Naming

I have detected that that colors are not affected by topologocal naming issues. The topological naming issue usually appears if you recompute an existing feature that its order of sub-shapes has changed compared to how it was before. Insofar the colors suffer from this problem, too. If you look at ...
by wmayer
Fri Jan 22, 2021 11:02 am
Forum: Developers corner
Topic: Advise on requirements for version control of Qt UI XML files
Replies: 58
Views: 1502

Re: Advise on requirements for version control of Qt UI XML files

Yes, but the argument in this forum thread (cannot find it anymore :oops:) that if one needs to preserve the tab order, one should specify it explicitly instead of counting on the order in the XML. Yes, that's what I meant. If the author of a PR edited a dialog then in most cases he did not explici...
by wmayer
Thu Jan 21, 2021 4:57 pm
Forum: Developers corner
Topic: Advise on requirements for version control of Qt UI XML files
Replies: 58
Views: 1502

Re: Advise on requirements for version control of Qt UI XML files

The user interface of workbench tools are specified in Qt UI XML files (file ending .ui). It turns out that the common software tool or editing Qt UI xml files (Qt Designer) has a peculiar way of ordering child items of a QGridLayout widget. The order depends on the time when adding a new widget to...
by wmayer
Thu Jan 21, 2021 2:17 pm
Forum: Help on using FreeCAD
Topic: FreeCAD crashes when many WB are installed (was BIM and Dodo WB update causes crash)
Replies: 35
Views: 1933

Re: FreeCAD crashes when many WB are installed (was BIM and Dodo WB update causes crash)

Finally some good news :) ping Care to weight in? OK, it looks like WorkbenchGroup::setWorkbenchData() is buggy because it accesses an element of a list without checking that the index value is in range. I would like to add a note to the wiki. Is the current limit 50 workbenches in total, i.e. incl...