Activite/Deactivite button on every constraints dialog

Started by Zsolt Udvari, August 18, 2017, 07:20:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zsolt Udvari

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).

Liviu Lalescu

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.

Zsolt Udvari

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) so it seems it's possible.

Liviu Lalescu

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.

Zsolt Udvari

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 :)

Liviu Lalescu