FET Forum

FET Support (English) => Programming Help => Topic started by: xavier on September 24, 2013, 04:02:35 PM

Title: Increase MAX_DAYS_PER_WEEK
Post by: xavier on September 24, 2013, 04:02:35 PM
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
Title: Re: Increase MAX_DAYS_PER_WEEK
Post by: Liviu Lalescu on September 24, 2013, 04:12:59 PM
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.
Title: Re: Increase MAX_DAYS_PER_WEEK
Post by: xavier on September 24, 2013, 09:53:32 PM
thanks for the reply so fast

I'll prove what you say and will comment

Xavier
Title: Re: Increase MAX_DAYS_PER_WEEK
Post by: xavier on October 09, 2013, 12:39:54 PM
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
Title: Re: Increase MAX_DAYS_PER_WEEK
Post by: Liviu Lalescu on October 09, 2013, 12:55:16 PM
src/interface/modifyactivityform.cpp, after line 88 and 128, add similar to above.

Let me know.
Title: Re: Increase MAX_DAYS_PER_WEEK
Post by: xavier on October 10, 2013, 11:21:37 AM
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.
Title: Re: Increase MAX_DAYS_PER_WEEK
Post by: Liviu Lalescu on October 10, 2013, 12:07:01 PM
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.