Page 1 of 1

Improve importing libraries

PostPosted: Wed 10 Oct 2018 23:49
by kikeenrique
Hi,
I would like to propose an improvement for the import as library feature, so it can be easier.
When I need to update my library projects, it always needs an extra step to locate the library bouml project file path.

My proposal is to save the path to the file the first time the import as library Is executed. When executing an update, just import the changes from that previously saved path. If the file has dissapeared , ask for the path (current behaviour).

Regards and thanks for all the work.

Re: Improve importing libraries

PostPosted: Thu 11 Oct 2018 07:55
by Bruno Pagès
Hello,

You are right, to help I will save the path of the imported/last update and propose it when it still exists, but I prefer the user confirm in any cases

Kind regards

Re: Improve importing libraries

PostPosted: Tue 16 Oct 2018 10:50
by kikeenrique
Thanks for your reply Bruno.

Also interesting would be that the file dialog chooser would filter the files and just show the “.prj”. Currently the other files are grayed, but, would it be possible to hide them completely?

Kind regards

Re: Improve importing libraries

PostPosted: Tue 16 Oct 2018 15:21
by Bruno Pagès
Hello,

Sorry but there is no option in QFileDialog::getOpenFileNames to hide the filtered entries, and I don't know which file navigator is used, it can be the QT one or a system one depending on he OS

Kind regards

Re: Improve importing libraries

PostPosted: Wed 17 Oct 2018 13:58
by kikeenrique
Ok, I’ve realized that in fact is an OS problem.
On Linux/Debian I can only see *.prj files.
On Mac I can see all files, but all files except *.prj are gray.

Similar problems where already reported on qt https://bugreports.qt.io/browse/QTBUG-38303

Re: Improve importing libraries

PostPosted: Wed 17 Oct 2018 14:20
by Bruno Pagès
under Windows you can see only the prj files, the used file explorer is the Windows one

Re: Improve importing libraries

PostPosted: Tue 23 Oct 2018 18:00
by Bruno Pagès
Hello,

BoUML 7.8 is available, adding the memorization of the path of the imported/updated project as library to propose it at the next update

Kind regards

P.S. The 7.8 is also available for the new Ubuntu 18.10