update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / ui / qt / filter_expression_frame.h
blob4a5c21f972461ea2045752db457f4c130c55618b
1 /** @file
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef FILTER_EXPRESSION_FRAME_H
11 #define FILTER_EXPRESSION_FRAME_H
13 #include "accordion_frame.h"
15 namespace Ui {
16 class FilterExpressionFrame;
19 class FilterExpressionFrame : public AccordionFrame
21 Q_OBJECT
23 public:
24 explicit FilterExpressionFrame(QWidget *parent = 0);
25 ~FilterExpressionFrame();
27 void addExpression(const QString filter_text);
28 void editExpression(int exprIdx);
30 signals:
31 void showPreferencesDialog(QString pane_name);
32 void filterExpressionsChanged();
34 protected:
35 virtual void showEvent(QShowEvent *event);
36 virtual void keyPressEvent(QKeyEvent *event);
38 private:
39 Ui::FilterExpressionFrame *ui;
41 int editExpression_;
43 private slots:
44 void updateWidgets();
45 void on_filterExpressionPreferencesPushButton_clicked();
46 void on_labelLineEdit_textChanged(const QString);
47 void on_displayFilterLineEdit_textChanged(const QString);
48 void on_buttonBox_accepted();
49 void on_buttonBox_rejected();
52 #endif // FILTER_EXPRESSION_FRAME_H