File indexing completed on 2024-04-21 14:43:52

0001 /*************************************************************************************
0002  *  Copyright (C) 2012 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com>      *
0003  *                                                                                   *
0004  *  This program is free software; you can redistribute it and/or                    *
0005  *  modify it under the terms of the GNU General Public License                      *
0006  *  as published by the Free Software Foundation; either version 2                   *
0007  *  of the License, or (at your option) any later version.                           *
0008  *                                                                                   *
0009  *  This program is distributed in the hope that it will be useful,                  *
0010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of                   *
0011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                    *
0012  *  GNU General Public License for more details.                                     *
0013  *                                                                                   *
0014  *  You should have received a copy of the GNU General Public License                *
0015  *  along with this program; if not, write to the Free Software                      *
0016  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA   *
0017  *************************************************************************************/
0018 
0019 #ifndef KEOMATH_VIEWER2D_H_OPTS_filter
0020 #define KEOMATH_VIEWER2D_H_OPTS_filter
0021 
0022 //Analitza includes
0023 #include <analitzaplot/plottingenums.h>
0024 
0025 //Qt includes
0026 #include <QWidget>
0027 #include <QDockWidget>
0028 #include <QModelIndex>
0029 
0030 //local includes
0031 #include "dashboard.h"
0032 
0033 namespace Ui
0034 {
0035     class FilterWidget;
0036 }
0037 
0038 class Filter : public QWidget
0039 {
0040     Q_OBJECT
0041 public:
0042     explicit Filter(QWidget *parent);
0043     ~ Filter() override;
0044 
0045 public slots:
0046     void setFilterVisible(bool b);
0047 
0048 signals: //TODO better names for signals adn slots
0049     void filterByText(const QString &text); // any text on the title or description
0050 
0051 private slots:
0052     void getDimIndex(int index);
0053     
0054 public:
0055     void setFilterDashboard(Dashboard *sourceDashboard);
0056 
0057 private:
0058     QScopedPointer<Ui::FilterWidget> m_ui;
0059     Dashboard *m_dashboard;
0060 };
0061 
0062 #endif
0063 
0064