Back to index

fet  5.18.0
modifyconstraintactivitiespreferredtimeslotsform.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           modifyconstraintactivitiespreferredtimeslotsform.h  -  description
00003                              -------------------
00004     begin                : 11 Feb 2005
00005     copyright            : (C) 2005 by Lalescu Liviu
00006     email                : Please see http://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail address)
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef MODIFYCONSTRAINTACTIVITIESPREFERREDTIMESLOTSFORM_H
00019 #define MODIFYCONSTRAINTACTIVITIESPREFERREDTIMESLOTSFORM_H
00020 
00021 #include "ui_modifyconstraintactivitiespreferredtimeslotsform_template.h"
00022 #include "timetable_defs.h"
00023 #include "timetable.h"
00024 #include "fet.h"
00025 
00026 class ModifyConstraintActivitiesPreferredTimeSlotsForm : public QDialog, Ui::ModifyConstraintActivitiesPreferredTimeSlotsForm_template  {
00027        Q_OBJECT
00028 
00029 public:
00030        ConstraintActivitiesPreferredTimeSlots* _ctr;
00031 
00032        ModifyConstraintActivitiesPreferredTimeSlotsForm(QWidget* parent, ConstraintActivitiesPreferredTimeSlots* ctr);
00033        ~ModifyConstraintActivitiesPreferredTimeSlotsForm();
00034 
00035        void updateTeachersComboBox();
00036        void updateStudentsComboBox();
00037        void updateSubjectsComboBox();
00038        void updateActivityTagsComboBox();
00039 
00040        void colorItem(QTableWidgetItem* item);
00041 
00042 public slots:
00043        void ok();
00044        void cancel();
00045        
00046        void itemClicked(QTableWidgetItem* item);
00047        void horizontalHeaderClicked(int col);
00048        void verticalHeaderClicked(int row);
00049        
00050        void setAllSlotsAllowed();
00051        void setAllSlotsNotAllowed();
00052 };
00053 
00054 #endif