2015-01-01 19:41:03 +00:00
|
|
|
/* column_editor_frame.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef COLUMN_EDITOR_FRAME_H
|
|
|
|
#define COLUMN_EDITOR_FRAME_H
|
|
|
|
|
|
|
|
#include "accordion_frame.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ColumnEditorFrame;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ColumnEditorFrame : public AccordionFrame
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ColumnEditorFrame(QWidget *parent = 0);
|
|
|
|
~ColumnEditorFrame();
|
|
|
|
void editColumn(int column);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void columnEdited();
|
2017-09-17 16:57:25 +00:00
|
|
|
void pushFilterSyntaxStatus(const QString&);
|
|
|
|
|
|
|
|
protected:
|
2017-11-08 20:10:42 +00:00
|
|
|
virtual void showEvent(QShowEvent *event);
|
2017-11-24 18:17:55 +00:00
|
|
|
virtual void keyPressEvent(QKeyEvent *event);
|
2015-01-01 19:41:03 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_typeComboBox_activated(int index);
|
2015-12-11 08:34:08 +00:00
|
|
|
void on_fieldsNameLineEdit_textEdited(const QString &fields);
|
2015-01-01 19:41:03 +00:00
|
|
|
void on_occurrenceLineEdit_textEdited(const QString &occurrence);
|
2015-12-01 14:41:44 +00:00
|
|
|
void on_buttonBox_rejected();
|
|
|
|
void on_buttonBox_accepted();
|
2015-01-01 19:41:03 +00:00
|
|
|
|
|
|
|
private:
|
2017-09-17 16:52:10 +00:00
|
|
|
bool syntaxIsValid(void);
|
2015-01-01 19:41:03 +00:00
|
|
|
Ui::ColumnEditorFrame *ui;
|
|
|
|
int cur_column_;
|
2015-12-11 08:34:08 +00:00
|
|
|
QString saved_fields_;
|
2015-01-01 19:41:03 +00:00
|
|
|
QString saved_occurrence_;
|
2015-11-10 21:19:27 +00:00
|
|
|
void setFields(int index);
|
2015-01-01 19:41:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COLUMN_EDITOR_FRAME_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:
|
|
|
|
*/
|