Increase MAX_DAYS_PER_WEEK

Started by xavier, September 24, 2013, 04:02:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xavier

Hi,

We need make a timmetable witn a variable duration subjects. I read forum and i undestand is need to have all scolar period as a one week.

I increase  MAX_DAYS_PER_WEEK in timetable_defs.h, compile, modify the FET file and not open the days dialog box never.  And i thik ok this.

But wen i add activities, i need inrease MAX_SPLIT_OF_AN_ACTIVITY too. For this, i changed this value in timetable_defs.h too, and with qt4 change code in addactivityform.cpp, adding similars lines in functions AddActivityForm::AddActivityForm. wen i compile show error:

interface/addactivityform.cpp:114:17: error: 'duration36SpinBox' was not declared in this scope

for each line: 36, 37, 38.... to 200 i need.

Can you help me?

thank you very much

Liviu Lalescu

In addactivitityform.cpp after line 108 add to above similar, then after line 148 add similar to above.

Then, open addactivityform_template.ui with Qt designer. In subactivitiesTabWidget add similar tabs.

xavier

thanks for the reply so fast

I'll prove what you say and will comment

Xavier

xavier

In addactivitityform.cpp after line 108 add to above similar, then after line 148 add similar to above.
I have
Then, open addactivityform_template.ui with Qt designer. In subactivitiesTabWidget add similar tabs.
I have too

Compile ok, in run time I can make activities. but modify activities the program close.
I work in ububtu 12.04

then i open modifyactivityform_template.ui with Qt designer. and In subactivitiesTabWidget I added similar tabs

but spend the same in run time when clic modify activities.

I not know how run FET in QT-dessigner for follow errors in runtime (my programing experiance is qbasic, and years ago, litle conceps in C)

no other rutines that should be modified?

thank you very much

Liviu Lalescu

src/interface/modifyactivityform.cpp, after line 88 and 128, add similar to above.

Let me know.

xavier

src/interface/modifyactivityform.cpp, after line 88 and 128, add similar to above.
ok!! runtime no erro when clic modify activity bouton

Now is time to test FET whit end users.
I will explain the idea of ​​a week of 264 days, and that they try to apply it. And I let you know.

one more thing that could help us:
Restrictions may like putting massively? because I feel that this part of the work will be the heaviest.

Liviu Lalescu

Quote from: xavier on October 10, 2013, 11:21:37 AM
Restrictions may like putting massively? because I feel that this part of the work will be the heaviest.

I am not sure; I did my best to optimize that, but it depends on your data.