Back to index

fet  5.18.0
modifyactivityform.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           modifyactivityform.h  -  description
00003                              -------------------
00004     begin                : Feb 9, 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 MODIFYACTIVITYFORM_H
00019 #define MODIFYACTIVITYFORM_H
00020 
00021 #include "ui_modifyactivityform_template.h"
00022 
00023 #include "timetable_defs.h"
00024 #include "timetable.h"
00025 #include "fet.h"
00026 
00027 #include <QList>
00028 
00029 class ModifyActivityForm : public QDialog, Ui::ModifyActivityForm_template  {
00030        Q_OBJECT
00031 
00032 private:
00033        QList<QSpinBox*> durList;
00034        QList<QCheckBox*> activList;
00035 
00036        QSpinBox* dur(int i);
00037        QCheckBox* activ(int i);
00038 
00039 public:
00040        QList<QString> canonicalStudentsSetsNames;
00041 
00042        int _id;
00043        int _activityGroupId;
00044        Activity* _activity;
00045        QStringList _teachers;
00046        QString _subject;
00047        QStringList _activityTags;
00048        QStringList _students;
00049 
00050        ModifyActivityForm(QWidget* parent, int id, int activityGroupId);
00051        ~ModifyActivityForm();
00052 
00053        void updateStudentsListWidget();
00054        void updateTeachersListWidget();
00055        void updateSubjectsComboBox();
00056        void updateActivityTagsListWidget();
00057        
00058 public slots:
00059        void ok();
00060        void cancel();
00061 
00062        void addTeacher();
00063        void removeTeacher();
00064 
00065        void addStudents();
00066        void removeStudents();
00067 
00068        void clearTeachers();
00069        void clearStudents();
00070        void clearActivityTags();
00071 
00072        void addActivityTag();
00073        void removeActivityTag();
00074 
00075        void showYearsChanged();
00076        void showGroupsChanged();
00077        void showSubgroupsChanged();
00078        
00079        void help();
00080 };
00081 
00082 #endif