aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/tap_parameter_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-11 11:48:07 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-12 20:17:35 +0000
commit5c80f08648ed14ecc03c20d8c52f25d71b03dd26 (patch)
treef931bbc8b684f15b692aa1fd009324310dd058df /ui/qt/tap_parameter_dialog.cpp
parent412f5b3716bce91d1b26a82012e5c28a611d91da (diff)
Add DCE-RPC and ONC-RPC service response time dialogs.
Add RpcServiceResponseTimeDialog, which handles DCE-RPC and ONC-RPC service response time statistics. Try to make it as lightweight as possible, since we might want to pull this into the RPC dissectors similar to the other SRT statistics. Allow program names on the command line in place of numbers or UUIDs. Make matches case-insensitive. E.g. the following are equivalent: -z rpc,srt,100003,3 -z rpc,srt,nfs,3 -z rpc,srt,NFS,3 as are the following: -z dcerpc,srt,f5cc5a18-4264-101a-8c59-08002b2f8426,56 -z dcerpc,srt,nspi,56 -z dcerpc,srt,NSPI,56 Change-Id: Ie451c64bf6fbc776f27d81e3bc248435c5cbc9e4 Reviewed-on: https://code.wireshark.org/review/9981 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/tap_parameter_dialog.cpp')
-rw-r--r--ui/qt/tap_parameter_dialog.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/ui/qt/tap_parameter_dialog.cpp b/ui/qt/tap_parameter_dialog.cpp
index 5e727e7268..dc44201fd9 100644
--- a/ui/qt/tap_parameter_dialog.cpp
+++ b/ui/qt/tap_parameter_dialog.cpp
@@ -75,13 +75,17 @@ const QString TapParameterDialog::action_name_ = "TapParameterAction";
TapParameterDialog::TapParameterDialog(QWidget &parent, CaptureFile &cf, int help_topic) :
WiresharkDialog(parent, cf),
ui(new Ui::TapParameterDialog),
- help_topic_(help_topic)
+ help_topic_(help_topic),
+ retap_on_show_(true)
{
ui->setupUi(this);
// XXX Use recent settings instead
resize(parent.width() * 2 / 3, parent.height() * 3 / 4);
+ // Only show a hint label if a subclass provides a hint.
+ ui->hintLabel->hide();
+
ctx_menu_.addAction(ui->actionCopyToClipboard);
ctx_menu_.addAction(ui->actionSaveAs);
@@ -137,6 +141,11 @@ QTreeWidget *TapParameterDialog::statsTreeWidget()
return ui->statsTreeWidget;
}
+QHBoxLayout *TapParameterDialog::filterLayout()
+{
+ return ui->filterLayout;
+}
+
const char *TapParameterDialog::displayFilter()
{
return ui->displayFilterLineEdit->text().toUtf8().constData();
@@ -149,6 +158,12 @@ void TapParameterDialog::setDisplayFilter(const QString &filter)
ui->displayFilterLineEdit->setText(filter);
}
+void TapParameterDialog::setHint(const QString &hint)
+{
+ ui->hintLabel->setText(hint);
+ ui->hintLabel->show();
+}
+
void TapParameterDialog::filterActionTriggered()
{
FilterAction *fa = qobject_cast<FilterAction *>(QObject::sender());
@@ -394,7 +409,7 @@ void TapParameterDialog::showEvent(QShowEvent *)
QString filter = ui->displayFilterLineEdit->text();
emit updateFilter(filter, true);
}
- fillTree();
+ if (retap_on_show_) fillTree();
}
void TapParameterDialog::contextMenuEvent(QContextMenuEvent *event)