FilterDialog.h
Go to the documentation of this file.
/***************************************************************************
File : FilterDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2011 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Filter options dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef FILTERDIALOG_H
#define FILTERDIALOG_H
#include <QDialog>
class QPushButton;
class QComboBox;
class QCheckBox;
class Graph;
class ColorButton;
class DoubleSpinBox;
class FilterDialog : public QDialog
{
Q_OBJECT
public:
FilterDialog(int type, QWidget* parent = 0, Qt::WFlags fl = 0 );
public slots:
void setGraph(Graph *g);
void filter();
private:
Graph *graph;
int filter_type;
QPushButton* buttonFilter;
QPushButton* buttonCancel;
QComboBox* boxName;
QCheckBox* boxOffset;
DoubleSpinBox* boxStart;
DoubleSpinBox* boxEnd;
ColorButton* boxColor;
};
#endif
FilterDialog::boxColor
ColorButton * boxColor
Definition: FilterDialog.h:63
FilterDialog::boxEnd
DoubleSpinBox * boxEnd
Definition: FilterDialog.h:62
Graph
A 2D-plotting widget.
Definition: Graph.h:123
FilterDialog
Filter options dialog.
Definition: FilterDialog.h:42
FilterDialog::filter
void filter()
Definition: FilterDialog.cpp:119
ColorButton
A customized QtColorPicker used for color selection.
Definition: ColorButton.h:39
FilterDialog::boxName
QComboBox * boxName
Definition: FilterDialog.h:59
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
FilterDialog::boxOffset
QCheckBox * boxOffset
Definition: FilterDialog.h:60
FilterDialog::graph
Graph * graph
Definition: FilterDialog.h:54
FilterDialog::FilterDialog
FilterDialog(int type, QWidget *parent=0, Qt::WFlags fl=0)
Definition: FilterDialog.cpp:43
FilterDialog::buttonCancel
QPushButton * buttonCancel
Definition: FilterDialog.h:58
FilterDialog::boxStart
DoubleSpinBox * boxStart
Definition: FilterDialog.h:61
FilterDialog::filter_type
int filter_type
Definition: FilterDialog.h:55
FilterDialog::setGraph
void setGraph(Graph *g)
Definition: FilterDialog.cpp:150
FilterDialog::buttonFilter
QPushButton * buttonFilter
Definition: FilterDialog.h:57