"Fossies" - the Fresh Open Source Software Archive

Member "fet-5.41.0/src/interface/addactivityform.h" (22 Jun 2018, 2896 Bytes) of package /linux/privat/fet-5.41.0.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "addactivityform.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2                           addactivityform.h  -  description
    3                              -------------------
    4     begin                : Wed Apr 23 2003
    5     copyright            : (C) 2003 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 ADDACTIVITYFORM_H
   19 #define ADDACTIVITYFORM_H
   20 
   21 #include "ui_addactivityform_template.h"
   22 
   23 #include "timetable_defs.h"
   24 #include "timetable.h"
   25 #include "fet.h"
   26 
   27 #include <QSet>
   28 //#include <QHash>
   29 #include <QList>
   30 
   31 class AddActivityForm : public QDialog, Ui::AddActivityForm_template  {
   32     Q_OBJECT
   33     
   34 private:
   35     QList<QSpinBox*> durList;
   36     QList<QCheckBox*> activList;
   37 
   38     QSpinBox* dur(int i);
   39     QCheckBox* activ(int i);
   40     
   41     QSet<QString> teacherNamesSet;
   42     QSet<QString> subjectNamesSet;
   43     QSet<QString> activityTagNamesSet;
   44     //QHash<QString, int> numberOfStudentsHash;
   45 
   46 public:
   47     QList<QString> canonicalStudentsSetsNames;
   48 
   49     AddActivityForm(QWidget* parent, const QString& teacherName, const QString& studentsSetName, const QString& subjectName, const QString& activityTagName);
   50     ~AddActivityForm();
   51 
   52     void updateStudentsListWidget();
   53     void updateSubjectsComboBox();
   54     void updateActivityTagsListWidget();
   55     void updatePreferredDaysComboBox();
   56     void updatePreferredHoursComboBox();
   57 
   58 public slots:
   59     void allTeachersRadioButtonToggled(bool checked);
   60     void qualifiedTeachersRadioButtonToggled(bool checked);
   61     void updateAllTeachersListWidget();
   62 
   63     void addTeacher();
   64     void removeTeacher();
   65     void addStudents();
   66     void removeStudents();
   67 
   68     void addActivityTag();
   69     void removeActivityTag();
   70 
   71     void splitChanged();
   72     
   73     void clearTeachers();
   74     void clearStudents();
   75     void clearActivityTags();
   76     
   77     void showYearsChanged();
   78     void showGroupsChanged();
   79     void showSubgroupsChanged();
   80 
   81     void addActivity();
   82     void help();
   83     
   84     void minDaysChanged();
   85 };
   86 
   87 class SecondMinDaysDialog: public QDialog
   88 {
   89     Q_OBJECT
   90 public:
   91     SecondMinDaysDialog(QWidget* p, int minD, double weight);
   92     ~SecondMinDaysDialog();
   93     
   94     double weight;
   95     QLineEdit* percText;
   96 
   97 public slots:
   98     void yesPressed();
   99 };
  100 
  101 #endif