diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-02-04 08:53:44 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-02-04 18:26:01 +0000 |
commit | a748e831438c52be7d40f1a28874d4f04ac2cda5 (patch) | |
tree | b09573600c09fd3321923a9be01f90917521bb52 /ui/qt/protocol_hierarchy_dialog.h | |
parent | a8cc3318b18c60fa713123c56fa35d2b49b12351 (diff) | |
download | wireshark-a748e831438c52be7d40f1a28874d4f04ac2cda5.tar.gz |
Qt: Add "Copy As..." to the Protocol Hierarchy stats.
This implementation is slightly different compared to other dialogs
since we have nested items.
Tweak the bar highlight color look better on Windows while we're here.
Change-Id: If0607c4624f304042fe3d6c8a941756b342e703d
Reviewed-on: https://code.wireshark.org/review/6953
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/protocol_hierarchy_dialog.h')
-rw-r--r-- | ui/qt/protocol_hierarchy_dialog.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/protocol_hierarchy_dialog.h b/ui/qt/protocol_hierarchy_dialog.h index e7d6e7aced..1c0fb47c59 100644 --- a/ui/qt/protocol_hierarchy_dialog.h +++ b/ui/qt/protocol_hierarchy_dialog.h @@ -27,6 +27,9 @@ #include <QMenu> +class QPushButton; +class QTreeWidgetItem; + namespace Ui { class ProtocolHierarchyDialog; } @@ -63,10 +66,13 @@ signals: private slots: void showProtoHierMenu(QPoint pos); void filterActionTriggered(); + void on_actionCopyAsCsv_triggered(); + void on_actionCopyAsYaml_triggered(); void on_buttonBox_helpRequested(); private: Ui::ProtocolHierarchyDialog *ui; + QPushButton *copy_button_; QMenu ctx_menu_; PercentBarDelegate percent_bar_delegate_; QString display_filter_; @@ -74,6 +80,7 @@ private: // Callback for g_node_children_foreach static void addTreeNode(GNode *node, gpointer data); void updateWidgets(); + QList<QVariant> protoHierRowData(QTreeWidgetItem *item) const; }; #endif // PROTOCOL_HIERARCHY_DIALOG_H |