Back to index

fet  5.18.0
addconstraintactivitiessamestartingtimeform.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           addconstraintactivitiessamestartingtimeform.h  -  description
00003                              -------------------
00004     begin                : June 23, 2004
00005     copyright            : (C) 2004 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 ADDCONSTRAINTACTIVITIESSAMESTARTINGTIMEFORM_H
00019 #define ADDCONSTRAINTACTIVITIESSAMESTARTINGTIMEFORM_H
00020 
00021 #include "ui_addconstraintactivitiessamestartingtimeform_template.h"
00022 #include "timetable_defs.h"
00023 #include "timetable.h"
00024 #include "fet.h"
00025 
00026 #include <QList>
00027 
00028 class AddConstraintActivitiesSameStartingTimeForm : public QDialog, Ui::AddConstraintActivitiesSameStartingTimeForm_template  {
00029        Q_OBJECT
00030        
00031 public:
00032        AddConstraintActivitiesSameStartingTimeForm(QWidget* parent);
00033        ~AddConstraintActivitiesSameStartingTimeForm();
00034 
00035        void updateActivitiesListWidget();
00036 
00037        bool filterOk(Activity* a);
00038 
00039 public slots:
00040        void blockChanged();
00041        
00042        void filterChanged();
00043 
00044        void addActivity();
00045        void addAllActivities();
00046        void removeActivity();
00047        void clear();
00048 
00049        void addConstraint();
00050        
00051        void help();
00052        
00053 private:
00054        //the id's of the activities listed in the activities list
00055        QList<int> activitiesList;
00056        //the id-s of the activities listed in the list of simultaneous activities
00057        QList<int> simultaneousActivitiesList;
00058 };
00059 
00060 #endif