forked from osmocom/wireshark
53 lines
996 B
C++
53 lines
996 B
C++
/* display_filter_combo.h
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef DISPLAY_FILTER_COMBO_H
|
|
#define DISPLAY_FILTER_COMBO_H
|
|
|
|
#include <QComboBox>
|
|
#include <QList>
|
|
|
|
class DisplayFilterCombo : public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DisplayFilterCombo(QWidget *parent = 0);
|
|
bool addRecentCapture(const char *filter);
|
|
void writeRecent(FILE *rf);
|
|
|
|
protected:
|
|
virtual bool event(QEvent *event);
|
|
|
|
private:
|
|
void updateStyleSheet();
|
|
|
|
public slots:
|
|
bool checkDisplayFilter();
|
|
void applyDisplayFilter();
|
|
void setDisplayFilter(QString filter);
|
|
|
|
private slots:
|
|
void updateMaxCount();
|
|
};
|
|
|
|
#endif // DISPLAY_FILTER_COMBO_H
|
|
|
|
/*
|
|
* Editor modelines
|
|
*
|
|
* Local Variables:
|
|
* c-basic-offset: 4
|
|
* tab-width: 8
|
|
* indent-tabs-mode: nil
|
|
* End:
|
|
*
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
*/
|