Back to index

fet  5.18.0
alltimeconstraintsform.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           alltimeconstraintsform.h  -  description
00003                              -------------------
00004     begin                : Feb 10, 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 ALLTIMECONSTRAINTSFORM_H
00019 #define ALLTIMECONSTRAINTSFORM_H
00020 
00021 #include "ui_alltimeconstraintsform_template.h"
00022 #include "timetable_defs.h"
00023 #include "timetable.h"
00024 #include "fet.h"
00025 
00026 #include "advancedfilterform.h"
00027 
00028 class AllTimeConstraintsForm : public QDialog, Ui::AllTimeConstraintsForm_template  {
00029        Q_OBJECT
00030        
00031 private:
00032        AdvancedFilterForm* filterForm;
00033 
00034        QList<TimeConstraint*> visibleTimeConstraintsList;
00035        
00036        bool all; //all or any, true means all, false means any
00037        QList<int> descrDetDescr;
00038        QList<int> contains;
00039        QStringList text;
00040        bool caseSensitive;
00041        
00042        bool useFilter;
00043        
00044 public:
00045        AllTimeConstraintsForm(QWidget* parent);
00046        ~AllTimeConstraintsForm();
00047        
00048        bool filterOk(TimeConstraint* ctr);
00049        
00050        void filterChanged();
00051        
00052 public slots:
00053        void constraintChanged();
00054        void modifyConstraint();
00055        void removeConstraint();
00056        void filter(bool active);
00057        
00058        void sortConstraintsByComments();
00059        void activateConstraint();
00060        void deactivateConstraint();
00061        void constraintComments();
00062 };
00063 
00064 #endif