Back to index

fet  5.18.0
addactivityform.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           addactivityform.h  -  description
00003                              -------------------
00004     begin                : Wed Apr 23 2003
00005     copyright            : (C) 2003 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 ADDACTIVITYFORM_H
00019 #define ADDACTIVITYFORM_H
00020 
00021 #include "ui_addactivityform_template.h"
00022 
00023 #include "timetable_defs.h"
00024 #include "timetable.h"
00025 #include "fet.h"
00026 
00027 #include <QList>
00028 
00029 class AddActivityForm : public QDialog, Ui::AddActivityForm_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        AddActivityForm(QWidget* parent, const QString& teacherName, const QString& studentsSetName, const QString& subjectName, const QString& activityTagName);
00043        ~AddActivityForm();
00044 
00045        void updateStudentsListWidget();
00046        void updateTeachersListWidget();
00047        void updateSubjectsComboBox();
00048        void updateActivityTagsListWidget();
00049        void updatePreferredDaysComboBox();
00050        void updatePreferredHoursComboBox();
00051 
00052 public slots:
00053        void addTeacher();
00054        void removeTeacher();
00055        void addStudents();
00056        void removeStudents();
00057 
00058        void addActivityTag();
00059        void removeActivityTag();
00060 
00061        void splitChanged();
00062        
00063        void clearTeachers();
00064        void clearStudents();
00065        void clearActivityTags();
00066        
00067        void showYearsChanged();
00068        void showGroupsChanged();
00069        void showSubgroupsChanged();
00070 
00071        void addActivity();
00072        void help();
00073        
00074        void minDaysChanged();
00075 };
00076 
00077 class SecondMinDaysDialog: public QDialog
00078 {
00079        Q_OBJECT
00080 public:
00081        SecondMinDaysDialog(QWidget* p, int minD, double weight);
00082        ~SecondMinDaysDialog();
00083        
00084        double weight;
00085        QLineEdit* percText;
00086 
00087 public slots:
00088        void yesPressed();
00089 };
00090 
00091 #endif