FET Forum

FET Development => Suggestions => Topic started by: Fernando A F Lordão on October 07, 2015, 06:52:35 PM

Title: Sort time constraints to make systematic modifications easier
Post by: Fernando A F Lordão on October 07, 2015, 06:52:35 PM
By default, teachers time constraints are permanently shown at same sequence that we add.
It would be useful if we could sort them by teachers' name in order to reduce time wasting for systematic modifications in time restrictions for many teachers. By the proposed way we could do modifications teacher-by-teacher following the name sequence without having to apply filter for each of them.
Similar sort options could be designed to other restrictions.
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Liviu Lalescu on October 07, 2015, 06:58:40 PM
I'd suggest you to go to "All time constraints" dialog, filter "Contains" "Teacher not available", then "Sorted". Because the weight is always 100% and the teacher is after the weight in the constraint description, it works :)

If this does not exactly solve your suggestion, please tell me and I'll add your words in the TODO.
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Volker Dirr on October 07, 2015, 07:21:55 PM
That doesn't help.
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Volker Dirr on October 07, 2015, 07:25:17 PM
In fact nearly all constraints and activities should be sorted. For TODO:

Add a new dialog in FET->advanced->sort

there should be checkboxes and a sort pushbutton.
the checkboxes should be:
sort teacher constraints by teacher names.
sort students constraints by students names.
sort room constraints by room name.
sort teacher names of all activities
sort students names of all activities
sort activity tags of all activities
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Liviu Lalescu on October 07, 2015, 08:00:59 PM
Quote from: Volker Dirr on October 07, 2015, 07:21:55 PM
That doesn't help.

Yes it does, please see the attached screen shot.
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Liviu Lalescu on October 07, 2015, 08:02:50 PM
OK, I'll add fernandolordao's words and Volker's words in the TODO.
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Volker Dirr on October 07, 2015, 08:06:58 PM
Yes, please add into TODO. Because the request is to save time. You don't save time if you always need to click a filter, write some stuff and also click sort. Very unhandy.
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Fernando A F Lordão on October 07, 2015, 11:49:46 PM
In fact, Liviu, it really worked in the way I expected!
Nice tip!

Quote from: Liviu Lalescu on October 07, 2015, 06:58:40 PM
I'd suggest you to go to "All time constraints" dialog, filter "Contains" "Teacher not available", then "Sorted". Because the weight is always 100% and the teacher is after the weight in the constraint description, it works :)

If this does not exactly solve your suggestion, please tell me and I'll add your words in the TODO.
Title: Re: Sort time constraints to make systematic modifications easier
Post by: Volker Dirr on October 17, 2015, 03:56:13 PM
Hallo Fernando,

I coded that sorting for you. Even a bit more then you requested, because I also sort the teachers, students and activity tags of activities and some more stuff. I didn't code an own interface. It is "hidden" FET->Data->Subjects->Sort. Get the attached files and replace them in the source folder and compile the source.
I didn't code an interface, because Liviu won't add the sorting source. I sadly used qSort for sorting, but qSort is tagged obsolete in the Qt-documentation, so it might not work in further Qt Versions.
I am to lazy to convert the source, since never need to rename the subjects myself, so i will just use this version myself. I tested it also on my old datasets and it work fine. My datasets are now very tidy again :-)