Back to index

fet  5.18.0
modifyconstraintactivitiessamestartingtimeform.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           modifyconstraintactivitiessamestartingtimeform.h  -  description
00003                              -------------------
00004     begin                : Feb 11, 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 MODIFYCONSTRAINTACTIVITIESSAMESTARTINGTIMEFORM_H
00019 #define MODIFYCONSTRAINTACTIVITIESSAMESTARTINGTIMEFORM_H
00020 
00021 #include "ui_modifyconstraintactivitiessamestartingtimeform_template.h"
00022 #include "timetable_defs.h"
00023 #include "timetable.h"
00024 #include "fet.h"
00025 
00026 #include <QList>
00027 
00028 class ModifyConstraintActivitiesSameStartingTimeForm : public QDialog, Ui::ModifyConstraintActivitiesSameStartingTimeForm_template  {
00029        Q_OBJECT
00030 public:
00031        ModifyConstraintActivitiesSameStartingTimeForm(QWidget* parent, ConstraintActivitiesSameStartingTime* ctr);
00032        ~ModifyConstraintActivitiesSameStartingTimeForm();
00033 
00034        bool filterOk(Activity* ac);
00035        
00036 public slots:
00037        void addActivity();
00038        void addAllActivities();
00039        void removeActivity();
00040 
00041        void clear();
00042 
00043        void ok();
00044        void cancel();
00045        
00046        void filterChanged();
00047        
00048 private:
00049        ConstraintActivitiesSameStartingTime* _ctr;
00050        //the id's of the activities listed in the activities list
00051        QList<int> activitiesList;
00052        //the id-s of the activities listed in the list of selected activities
00053        QList<int> selectedActivitiesList;
00054 };
00055 
00056 #endif