customizable values for width and height (css file) in the settings

Started by math_user, July 16, 2016, 08:48:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

math_user

It would be great if the user could change the default values for width and height (disabled and 8ex) in the settings: enable/disable and enter values (default: 8 and 8).
Like that, the user does not have to change the values manually after each generation.

Liviu Lalescu

I will add this in the TODO list.

But there are too many possible settings like this. We cannot care about them all.

math_user

QuoteBut there are too many possible settings like this. We cannot care about them all.
Yes.

Maybe just uncomment "width" in the css file?
th.xAxis {
  width: 8em;
}

th.yAxis {
  height: 8ex;
}

instead of
th.xAxis {
/* width: 8em; */
}

th.yAxis {
  height: 8ex;
}


I think that the (minimal) width is useful. Like this I can easily change the default values 8em and 8ex. Uncommenting is a bit tedious ...

Liviu Lalescu

I don't know if it is good. Volker knows better. But I think we should keep timetables small.

math_user


Volker Dirr

the disadvantage if small yAxis is, that many teachers read the table incorrect if the hours are on the yAxis.
if the teacher have got several unused timeslots, then it is very difficult to see if it has got duration 1,2 or 3. it look nearly the same.
especially on the large tables in the teacher room. you can't read those tables without a long ruler then.
but with a larger y-Axis you can just read them by looking. in worst case by using your finger. (You can't do that on long tables with 50 teachers, you will jump into the wrong row then.

if you think that is better, you can just change it in the source and compiler yourself. so you will never need to change the css file yourself.

Liviu Lalescu

Volker, I am not sure I understand. We are talking about xAxis, not yAxis, and increasing it, not decreasing. But I am sure you know better, because it is your part. Maybe you could show us some screen shots to explain.

math user, if you want to modify the sources, it is in timetableexport.cpp, line 2256.

math_user

Quotemath user, if you want to modify the sources, it is in timetableexport.cpp, line 2256.
Thanks, Liviu!

Volker Dirr


Liviu Lalescu

So, what should we do? How is better? Should we uncomment the "width 8em;"?

Volker Dirr

but the xAxis is very easy to handle. You just "need" to write longer names. So if you have got days on xAxis, just write "Monday" instead of "Mo". Or just use longer subject names instead of shortcuts.

Volker Dirr

or, if you have hours on the xAxis don't write hour "1", "2", ... Write times like "08:00 - 08:45", "08:50 - 09:35", ...
so the xAchis is very easy to handle indirectly.

Liviu Lalescu

It is easier for us to make a change in the code, but only if it is a good change.

In the attached screen shots, it is clear that it is nicer with uncommented width (as math user suggests). But I am not sure in other timetables, or maybe some users would like smaller dimension.

Volker Dirr

please check a teacher with a free day and a shortcut as day.
or if you swap axis:
check a timetable with a break at a special hour (all days) and a shortcut as hour name.

Liviu Lalescu