Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
column_editor_frame.h
1 /* column_editor_frame.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef COLUMN_EDITOR_FRAME_H
11 #define COLUMN_EDITOR_FRAME_H
12 
13 #include "accordion_frame.h"
14 
15 namespace Ui {
16 class ColumnEditorFrame;
17 }
18 
20 {
21  Q_OBJECT
22 
23 public:
24  explicit ColumnEditorFrame(QWidget *parent = 0);
26  void editColumn(int column);
27 
28 signals:
29  void columnEdited();
30  void pushFilterSyntaxStatus(const QString&);
31 
32 protected:
33  virtual void showEvent(QShowEvent *event);
34  virtual void keyPressEvent(QKeyEvent *event);
35 
36 private slots:
37  void on_typeComboBox_activated(int index);
38  void on_fieldsNameLineEdit_textEdited(const QString &fields);
39  void on_occurrenceLineEdit_textEdited(const QString &occurrence);
40  void on_buttonBox_rejected();
41  void on_buttonBox_accepted();
42 
43 private:
44  bool syntaxIsValid(void);
46  int cur_column_;
47  QString saved_fields_;
48  QString saved_occurrence_;
49  void setFields(int index);
50 };
51 
52 #endif // COLUMN_EDITOR_FRAME_H
53 
54 /*
55  * Editor modelines
56  *
57  * Local Variables:
58  * c-basic-offset: 4
59  * tab-width: 8
60  * indent-tabs-mode: nil
61  * End:
62  *
63  * ex: set shiftwidth=4 tabstop=8 expandtab:
64  * :indentSize=4:tabSize=8:noTabs=true:
65  */
Definition: ui_about_dialog.h:291
Definition: ui_column_editor_frame.h:140
Definition: accordion_frame.h:17
Definition: column_editor_frame.h:19