UI/UX suggestions for Addon Installer

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

User avatar
yorik
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: UI/UX suggestions for Addon Installer

Post by yorik » Thu Aug 02, 2018 3:13 pm

Kunda1 wrote:
Thu Aug 02, 2018 2:13 pm
mario52 wrote: ↑
02 Aug 2018, 06:19
i add one button execute (edit the macro in FreeCAD and execute)

Great job! What does the community think?
+1

Mario's template is now supported by the addon manager as of git commit 53c2058e0

User avatar
Kunda1
Posts: 5531
Joined: Thu Jan 05, 2017 9:03 pm

Re: UI/UX suggestions for Addon Installer

Post by Kunda1 » Thu Aug 02, 2018 6:15 pm

How do these dimensions looks like to everyone ?
Image
Changed code from:

Code: Select all

        #self.resize(326, 304)
        self.resize(626, 404)
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

User avatar
yorik
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: UI/UX suggestions for Addon Installer

Post by yorik » Thu Aug 02, 2018 8:01 pm

+1

User avatar
Kunda1
Posts: 5531
Joined: Thu Jan 05, 2017 9:03 pm

Re: UI/UX suggestions for Addon Installer

Post by Kunda1 » Fri Aug 03, 2018 12:47 pm

yorik wrote:
Thu Aug 02, 2018 8:01 pm
+1
https://github.com/FreeCAD/FreeCAD/pull/1582

Quick question:
what's the reason why the AddonManager doesn't have a .ui file instead of the dialog being generated from the .py file ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

User avatar
yorik
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: UI/UX suggestions for Addon Installer

Post by yorik » Fri Aug 03, 2018 1:52 pm

Kunda1 wrote:
Fri Aug 03, 2018 12:47 pm
what's the reason why the AddonManager doesn't have a .ui file instead of the dialog being generated from the .py file ?
Because it started as a simple macro, so it was easier to have it all embedded in the same file. Now it could become a separate ui file, though...

User avatar
Kunda1
Posts: 5531
Joined: Thu Jan 05, 2017 9:03 pm

Re: UI/UX suggestions for Addon Installer

Post by Kunda1 » Fri Aug 03, 2018 3:06 pm

yorik wrote:
Fri Aug 03, 2018 1:52 pm
Kunda1 wrote:
Fri Aug 03, 2018 12:47 pm
what's the reason why the AddonManager doesn't have a .ui file instead of the dialog being generated from the .py file ?
Because it started as a simple macro, so it was easier to have it all embedded in the same file. Now it could become a separate ui file, though...
Oh, I see! Makes sense. kkremitzki was working on a .ui file.. I wonder if I could use that or even borrow the QGIS .ui (and remove a lot of the bells and whistles).

@yorik BTW, thanks for the PR merge!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

User avatar
Kunda1
Posts: 5531
Joined: Thu Jan 05, 2017 9:03 pm

Re: UI/UX suggestions for Addon Installer

Post by Kunda1 » Thu Sep 06, 2018 8:31 pm

kkremitzki wrote:ping
Hey man, where is that .ui file you were working on for the Addon Installer. Did you attach it to a post somewhere ?
yorik wrote:ping
How do I render out a .ui file from the python file that runs AddonManager ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

User avatar
Kunda1
Posts: 5531
Joined: Thu Jan 05, 2017 9:03 pm

Re: UI/UX suggestions for Addon Installer

Post by Kunda1 » Thu May 30, 2019 3:44 pm

Revisiting this thread.

Addon Manager is getting a lot more attention lately and the FreeCAD-addon repo along with the FreeCAD-macros repo are both growing. Which means the option list is growing. So there may be merit to revisit the idea of augmenting the UI of the addon manager.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

User avatar
yorik
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: UI/UX suggestions for Addon Installer

Post by yorik » Mon Jun 03, 2019 7:02 pm

We really need to redo it indeed. And integrate a bit more description of the addon (basically we need to fetch the whole readme, I think).
I'll also try to do a little mockup this week...
Kunda1 wrote:
Thu Sep 06, 2018 8:31 pm
How do I render out a .ui file from the python file that runs AddonManager ?
Showing an ui file is easy:

Code: Select all

import FreeCADGui
mydialog = FreeCADGui.PySideUic.loadUi("/path/to/my/dialog.ui")
mydialog.show()
But the real work is to write and tie the code behind each button and control... In the case of the Addon manager, most of it is there already, but it would still need some work to adapt.

Post Reply