1 /*************************************************************************** 2 modifyconstraintteacherroomnotavailabletimesform.h - description 3 ------------------- 4 begin : 2019 5 copyright : (C) 2019 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 MODIFYCONSTRAINTTEACHERROOMNOTAVAILABLETIMESFORM_H 19 #define MODIFYCONSTRAINTTEACHERROOMNOTAVAILABLETIMESFORM_H 20 21 #include "ui_modifyconstraintteacherroomnotavailabletimesform_template.h" 22 #include "timetable_defs.h" 23 #include "timetable.h" 24 #include "fet.h" 25 26 class ModifyConstraintTeacherRoomNotAvailableTimesForm : public QDialog, Ui::ModifyConstraintTeacherRoomNotAvailableTimesForm_template { 27 Q_OBJECT 28 29 ConstraintTeacherRoomNotAvailableTimes* _ctr; 30 public: 31 ModifyConstraintTeacherRoomNotAvailableTimesForm(QWidget* parent, ConstraintTeacherRoomNotAvailableTimes* ctr); 32 ~ModifyConstraintTeacherRoomNotAvailableTimesForm(); 33 34 void updateTeachersComboBox(); 35 void updateRoomsComboBox(); 36 37 void colorItem(QTableWidgetItem* item); 38 39 public slots: 40 void ok(); 41 void cancel(); 42 43 void itemClicked(QTableWidgetItem* item); 44 void horizontalHeaderClicked(int col); 45 void verticalHeaderClicked(int row); 46 47 void setAllAvailable(); 48 void setAllNotAvailable(); 49 }; 50 51 #endif 52