Teacher not available times - Button for swap X with empty

Started by infoo_, February 21, 2025, 06:05:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

infoo_

Hello

I had a hard time confusing crosses (not available) with empty spaces (available) in Teacher not available times constraint menu.

Most teachers do not cover all hours, so it would save a lot of time to only check the available boxes, instead of unchecking the unavailable ones.

I know that I can mark everything with X and then unmark those that I need, but it takes longer and visually I get lost. It would be better to do it the other way around.

Is it possible to add this feature?

Thank you!

Liviu Lalescu


infoo_

Quote from: Liviu Lalescu on February 21, 2025, 07:31:04 AMCan't you press "Toggle all" more times?

Pressing that button several times checks/unchecks all slots. What I mean is when adding a new constraint

Liviu Lalescu


infoo_

Quote from: Liviu Lalescu on February 21, 2025, 08:51:18 AMI added this in the TODO, but I don't agree/like.


Thanks  ;D

Teachers are asked to fill a form with times. For them, it is easier to check they available times rather than uncheck slots. When a slot is filled, a checkmark is added (instead a cross).

When the administrator loads the data into FET, what would be easier? Checking a few slots or unchecking a lot of slots?

I see it in that way

Liviu Lalescu

The FET terminology is that constraint teacher not available times denies some slots. Teacher available times means that teachers who have no such constraint are not available at all?

infoo_

Quote from: Liviu Lalescu on February 21, 2025, 12:17:51 PMThe FET terminology is that constraint teacher not available times denies some slots. Teacher available times means that teachers who have no such constraint are not available at all?


We don't have teachers with no such constraint.

For simplicity, maybe marking with crosses its available times and then pushing a button that converts cross to empty and empty to cross would be easier to implement. It is like swapping 0's to 1's, and vice versa

I am using the Official mode

Liviu Lalescu

This is a good idea.

It is very easy to change the symbols, but I am afraid of possible wrong uses. I'll think of the idea.

Meanwhile, do you know that you can enable colors in interface (from the Settings) and available will be green and X will be red? Maybe you can work better in this way.

infoo_

Quote from: Liviu Lalescu on February 21, 2025, 12:35:57 PMIt is very easy to change the symbols, but I am afraid of possible wrong uses. I'll think of the idea.

No change at all. I mean for example creating a button like this:

You cannot view this attachment.

When clicking on Swap, the slots change to:

You cannot view this attachment.

I think it would be useful, and people won't confuse.

Quote from: Liviu Lalescu on February 21, 2025, 12:35:57 PMMeanwhile, do you know that you can enable colors in interface (from the Settings) and available will be green and X will be red? Maybe you can work better in this way.

Ooh didn't know about that interface submenu! Thank you for the suggestion, Liviu

Liviu Lalescu

Good suggestion! I'll see what I can do.

So the functions will stay the same, but only add a button "Swap" which does not affect the constraint, but only invert all the table?

infoo_

Quote from: Liviu Lalescu on February 21, 2025, 10:31:04 PMSo the functions will stay the same, but only add a button "Swap" which does not affect the constraint, but only invert all the table?

Exactly! After clicking it, we can then click Add constraint and save as it is. Also the button should be present when editing a constraint

Liviu Lalescu


Volker Dirr

hmm... reminds me, that the "toggle all" button might be unneeded at all, since in "normal" case that should be done by pressing on the empty cell in the upper left corner (so in the header, where you can see the hour and days names). But that feature is currently not included.

Liviu Lalescu

Thank you, infoo_, for the good suggestion! I just released the new version.

Volker, I knew this is a good approach, and tried it, but Qt QTableWidget/QTableView does not react/include to clicking on the upper-left corner.

Volker Dirr