FET Forum

FET Support (English) => Programming Help => Topic started by: daniel79school on June 04, 2015, 06:41:34 PM

Title: Help customizing FET
Post by: daniel79school on June 04, 2015, 06:41:34 PM
Hi all!
Fist of all I would like to thank Liviu, Volker and all the people involved into this great project.
I 've been using the application for some time now for an institute in argentina and it has always given great results for assigning teachers to subjects according to their amount of hours and capacity.
The thing is I will not continue working for this institute next year and I would like to limit the amount of options in the FET menu so that people in school administration (not used to computer programs) can easily find just the options they need.
As I am not a programmer myself, I would like to ask you if there is any "easy" way to hide some of the stuff in the application that will not be used for this scenario.

Thanks in advance for your time.
Regards,
Daniel
Title: Re: Help customizing FET
Post by: Liviu Lalescu on June 04, 2015, 06:51:24 PM
It should be easy. If you intend to disable a button or a menu item, you can open fetmainform_template.ui with the Qt Designer and for each one make it disabled (click a single button in Designer). Or you can add a few instructions, of the type button->setEnabled(false), in the file fetmainform.cpp.

If you want to hide the item completely, you can add a few instructions of the type button->setVisible(false). But I would recommend just disabling the item.

If you want to disable functionality in other dialogs as well, it is similar to the above.
Title: Re: Help customizing FET
Post by: daniel79school on June 04, 2015, 10:16:41 PM
Thanks for the fast reply!
I managed to disable some of the form menus but when I attempt to compile I get this error:

C:\fet\build-fet-Desktop_Qt_5_4_2_MSVC2013_64bit-Debug\tmp\gui\ui_helpaboutform_template.h:758: error: C1091: compiler limit: string exceeds 65535 bytes in length

I am using MinGW 4.9.1 32bit compiler in QT 5.4.2

Sorry to bother you with some more questions..
Regards,
Daniel
Title: Re: Help customizing FET
Post by: Liviu Lalescu on June 05, 2015, 06:15:37 AM
No problem :)

But why appears MSVC2013 instead of MinGW? You should use "qmake" and then "mingw32-make" from the Qt/MinGW command prompt.