1 /*************************************************************************** 2 modifyconstraintactivitiesoccupymaxdifferentroomsform.h - description 3 ------------------- 4 begin : Apr 29, 2012 5 copyright : (C) 2012 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 MODIFYCONSTRAINTACTIVITIESOCCUPYMAXDIFFERENTROOMSFORM_H 19 #define MODIFYCONSTRAINTACTIVITIESOCCUPYMAXDIFFERENTROOMSFORM_H 20 21 #include "ui_modifyconstraintactivitiesoccupymaxdifferentroomsform_template.h" 22 #include "timetable_defs.h" 23 #include "timetable.h" 24 #include "fet.h" 25 26 #include <QList> 27 28 class ModifyConstraintActivitiesOccupyMaxDifferentRoomsForm : public QDialog, Ui::ModifyConstraintActivitiesOccupyMaxDifferentRoomsForm_template { 29 Q_OBJECT 30 31 public: 32 ModifyConstraintActivitiesOccupyMaxDifferentRoomsForm(QWidget* parent, ConstraintActivitiesOccupyMaxDifferentRooms* ctr); 33 ~ModifyConstraintActivitiesOccupyMaxDifferentRoomsForm(); 34 35 bool filterOk(Activity* act); 36 37 public slots: 38 void addActivity(); 39 void addAllActivities(); 40 void removeActivity(); 41 42 void filterChanged(); 43 44 void clear(); 45 46 void ok(); 47 void cancel(); 48 49 private: 50 ConstraintActivitiesOccupyMaxDifferentRooms* _ctr; 51 52 //the id's of the activities listed in the activities list 53 QList<int> activitiesList; 54 //the id-s of the activities listed in the list of selected activities 55 QList<int> selectedActivitiesList; 56 }; 57 58 #endif 59