1 /*************************************************************************** 2 modifyconstraintsubactivitiespreferredtimeslotsform.h - description 3 ------------------- 4 begin : 2008 5 copyright : (C) 2008 by Lalescu Liviu 6 email : Please see https://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail address) 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software: you can redistribute it and/or modify * 12 * it under the terms of the GNU Affero General Public License as * 13 * published by the Free Software Foundation, either version 3 of the * 14 * License, or (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 18 #ifndef MODIFYCONSTRAINTSUBACTIVITIESPREFERREDTIMESLOTSFORM_H 19 #define MODIFYCONSTRAINTSUBACTIVITIESPREFERREDTIMESLOTSFORM_H 20 21 #include "ui_modifyconstraintsubactivitiespreferredtimeslotsform_template.h" 22 #include "timetable_defs.h" 23 #include "timetable.h" 24 #include "fet.h" 25 26 class ModifyConstraintSubactivitiesPreferredTimeSlotsForm : public QDialog, Ui::ModifyConstraintSubactivitiesPreferredTimeSlotsForm_template { 27 Q_OBJECT 28 29 public: 30 ConstraintSubactivitiesPreferredTimeSlots* _ctr; 31 32 ModifyConstraintSubactivitiesPreferredTimeSlotsForm(QWidget* parent, ConstraintSubactivitiesPreferredTimeSlots* ctr); 33 ~ModifyConstraintSubactivitiesPreferredTimeSlotsForm(); 34 35 void updateTeachersComboBox(); 36 void updateStudentsComboBox(QWidget* parent); 37 void updateSubjectsComboBox(); 38 void updateActivityTagsComboBox(); 39 40 void colorItem(QTableWidgetItem* item); 41 42 public slots: 43 void ok(); 44 void cancel(); 45 46 void itemClicked(QTableWidgetItem* item); 47 void horizontalHeaderClicked(int col); 48 void verticalHeaderClicked(int row); 49 50 void setAllSlotsAllowed(); 51 void setAllSlotsNotAllowed(); 52 53 void on_durationCheckBox_toggled(); 54 }; 55 56 #endif 57