Back to index

fet  5.18.0
advancedfilterform.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           advancedfilterform.h  -  description
00003                              -------------------
00004     begin                : 2009
00005     copyright            : (C) 2009 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 ADVANCEDFILTERFORM_H
00019 #define ADVANCEDFILTERFORM_H
00020 
00021 #include <QtGui>
00022 
00023 const int ADVANCED_FILTER_MAX_ROWS=8;
00024 const int ADVANCED_FILTER_MIN_ROWS=1;
00025 
00026 class AdvancedFilterForm : public QDialog {
00027        Q_OBJECT
00028        
00029 public:
00030        int rows;
00031        
00032        QRadioButton* allRadio;
00033        QRadioButton* anyRadio;
00034        
00035        QCheckBox* caseSensitiveCheckBox;
00036        QHBoxLayout* caseSensitiveLayout;
00037 
00038        QPushButton* morePushButton;
00039        QPushButton* fewerPushButton;
00040        QList<QComboBox*> descrDetDescrComboBoxList;
00041        QList<QComboBox*> contNContReNReComboBoxList;
00042        QList<QLineEdit*> textLineEditList;
00043        QPushButton* resetPushButton;
00044        QPushButton* okPushButton;
00045        QPushButton* cancelPushButton;
00046        
00047        QVBoxLayout* allAnyLayout;
00048        
00049        QGridLayout* filtersLayout;
00050        QHBoxLayout* moreFewerLayout;
00051        QHBoxLayout* buttonsLayout;
00052        
00053        QVBoxLayout* layout;
00054        
00055        QString atts;
00056        
00057 public:
00058        AdvancedFilterForm(QWidget* parent, bool all, QList<int> descrDetDescr, QList<int> contNCont, QStringList text, bool caseSensitive, const QString& textToSettings);
00059        ~AdvancedFilterForm();
00060        
00061 public slots:
00062        void reset();
00063        void more();
00064        void fewer();
00065 };
00066 
00067 #endif