FET Forum

FET Development => Suggestions => Topic started by: Zsolt Udvari on August 18, 2017, 07:20:47 PM

Title: Activite/Deactivite button on every constraints dialog
Post by: Zsolt Udvari on August 18, 2017, 07:20:47 PM
I try to find the impossible constraint(s) in my FET-file and I think it's uncomfortable that only on "Time/All" dialog can activite/deactivite the constraints.
I think it would be nice when can activite/deactivite for example on "An activity has a preferred starting time" dialog (and on the others too).
Title: Re: Activite/Deactivite button on every constraints dialog
Post by: Liviu Lalescu on August 18, 2017, 07:57:52 PM
Yes, you are right. The reasons why this is not done yet is that many dialogs are already full, and there are a lot of files to modify (there are over 100 types of constraints, each one with its dialog). It would be a long and tedious job.

But I added this in the TODO.
Title: Re: Activite/Deactivite button on every constraints dialog
Post by: Zsolt Udvari on August 18, 2017, 08:42:11 PM
I don't know the programming of Qt but does exist any method of UI inheritence or include a skeleton UI file?
I think the most of FET's dialogs are similar: same buttons (OK, Cancel, Modify,...), and same layout - so maybe a more general, abstract solution would better.

I found a stackoverflow question (and answer) (https://stackoverflow.com/questions/23676283/splitting-qt-forms-between-multiple-ui-files) so it seems it's possible.
Title: Re: Activite/Deactivite button on every constraints dialog
Post by: Liviu Lalescu on August 18, 2017, 09:19:12 PM
You are right, but now it is too late to come up with an efficient design of sharing the dialogs. I should redesign all FET, but on one hand I am not good at designing interfaces, and on the other hand it would be a tedious and risky job.
Title: Re: Activite/Deactivite button on every constraints dialog
Post by: Zsolt Udvari on August 18, 2017, 09:25:31 PM
Yes, I know the refactoring is a very big work - and maybe a bit risky.
It was only an idea and if you've many free time you doesn't have to be bored :)
Title: Re: Activite/Deactivite button on every constraints dialog
Post by: Liviu Lalescu on August 18, 2017, 09:28:16 PM
:)