summaryrefslogtreecommitdiff
path: root/ui/qt/address_editor_frame.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-21 09:51:12 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-21 22:43:05 +0000
commite30a0ff765ff63d4f461df7aafc7c8a365dc265b (patch)
tree0801b89fc98e1695be76dccc856e53a94bdde31f /ui/qt/address_editor_frame.h
parente8f24f319ed28d9b419201f431f028c691fc396f (diff)
downloadwireshark-e30a0ff765ff63d4f461df7aafc7c8a365dc265b.tar.gz
Add manual name address resolution.
Make it an editor frame instead of a dialog similar to the column editor and prototocol preference editor. Change-Id: If1a0cdf02dcab0eca98e8d39c94a3c2fe236df5a Reviewed-on: https://code.wireshark.org/review/9743 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/address_editor_frame.h')
-rw-r--r--ui/qt/address_editor_frame.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/ui/qt/address_editor_frame.h b/ui/qt/address_editor_frame.h
new file mode 100644
index 0000000000..92b3463e4c
--- /dev/null
+++ b/ui/qt/address_editor_frame.h
@@ -0,0 +1,79 @@
+/* address_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 ADDRESS_EDITOR_FRAME_H
+#define ADDRESS_EDITOR_FRAME_H
+
+#include "accordion_frame.h"
+
+#include "capture_file.h"
+
+namespace Ui {
+class AddressEditorFrame;
+}
+
+struct epan_column_info;
+
+class AddressEditorFrame : public AccordionFrame
+{
+ Q_OBJECT
+
+public:
+ explicit AddressEditorFrame(QWidget *parent = 0);
+ ~AddressEditorFrame();
+
+public slots:
+ void editAddresses(CaptureFile &cf, int column = -1);
+
+signals:
+ void showNameResolutionPreferences(const QString module_name);
+ void editAddressStatus(const QString &status);
+ void redissectPackets();
+
+private slots:
+ void updateWidgets();
+ void on_nameResolutionPreferencesToolButton_clicked();
+ void on_addressComboBox_currentIndexChanged(const QString &);
+ void on_nameLineEdit_textEdited(const QString &);
+ void on_nameLineEdit_returnPressed();
+ void on_okButton_clicked();
+ void on_cancelButton_clicked();
+
+private:
+ Ui::AddressEditorFrame *ui;
+
+ bool isAddressColumn(struct epan_column_info *cinfo, int column);
+};
+
+#endif // ADDRESS_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:
+ */