mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2017-11-07 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDLogFilter' widget.
This commit is contained in:
63
lib/rdlogfilter.h
Normal file
63
lib/rdlogfilter.h
Normal file
@@ -0,0 +1,63 @@
|
||||
// rdlogfilter.h
|
||||
//
|
||||
// Filter widget for picking Rivendell logs.
|
||||
//
|
||||
// (C) Copyright 2017 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
// published by the Free Software Foundation.
|
||||
//
|
||||
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#ifndef RDLOGFILTER_H
|
||||
#define RDLOGFILTER_H
|
||||
|
||||
#include <qcheckbox.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qlabel.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
class RDLogFilter : public QWidget
|
||||
{
|
||||
Q_OBJECT;
|
||||
public:
|
||||
RDLogFilter(QWidget *parent=0);
|
||||
~RDLogFilter();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
QString whereSql() const;
|
||||
|
||||
signals:
|
||||
void filterChanged(const QString &where_sql);
|
||||
|
||||
private slots:
|
||||
void filterChangedData(const QString &str);
|
||||
void filterChangedData();
|
||||
void serviceChangedData(int n);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private:
|
||||
QLabel *filter_service_label;
|
||||
QComboBox *filter_service_box;
|
||||
QLabel *filter_filter_label;
|
||||
QLineEdit *filter_filter_edit;
|
||||
QPushButton *filter_clear_button;
|
||||
QCheckBox *filter_recent_check;
|
||||
QLabel *filter_recent_label;
|
||||
};
|
||||
|
||||
|
||||
#endif // RDLOGFILTER_H
|
Reference in New Issue
Block a user