VTK
vtkQtSeriesFilterLineEdit.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtSeriesFilterLineEdit.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
23 
24 #ifndef _vtkQtSeriesFilterLineEdit_h
25 #define _vtkQtSeriesFilterLineEdit_h
26 
27 #include "vtkQtChartExport.h"
28 
29 #include <QLineEdit>
30 
32 
36 class VTKQTCHART_EXPORT vtkQtSeriesFilterLineEdit : public QLineEdit
37 {
38  Q_OBJECT
39 
40 public:
41  vtkQtSeriesFilterLineEdit(QWidget* parent = 0);
42  virtual ~vtkQtSeriesFilterLineEdit();
43 
44  void setLayer(vtkQtChartSeriesLayer* layer);
45  vtkQtChartSeriesLayer* getLayer();
46 
47  //If true, the filter only looks at the start of the series for a match
48  //If false, the filter looks for any substring match
49  void setSearchBeginningOnly(bool searchBeginningOnly);
50  bool getSearchBeginningOnly();
51 
52 private slots:
53  void filterSeries(const QString& text);
54 
55 private:
56  vtkQtChartSeriesLayer* Layer;
57  bool mySearchBeginningOnly;
58 };
59 
60 #endif