Add tooltips for the total number of streams.
svn path=/trunk/; revision=54585
This commit is contained in:
parent
2fa2f632ec
commit
d0f7a4fadf
|
@ -552,6 +552,8 @@ void FollowStreamDialog::setCaptureFile(capture_file *cf)
|
|||
if (!cf) { // We only want to know when the file closes.
|
||||
cap_file_ = NULL;
|
||||
ui->streamNumberSpinBox->setEnabled(false);
|
||||
ui->streamNumberSpinBox->setToolTip(QString());
|
||||
ui->streamNumberLabel->setToolTip(QString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -918,12 +920,17 @@ bool FollowStreamDialog::follow(QString previous_filter, bool use_tcp_index)
|
|||
switch (follow_type_)
|
||||
{
|
||||
case FOLLOW_TCP:
|
||||
{
|
||||
int stream_count = get_tcp_stream_count() - 1;
|
||||
ui->streamNumberSpinBox->blockSignals(true);
|
||||
ui->streamNumberSpinBox->setMaximum(get_tcp_stream_count() - 1);
|
||||
ui->streamNumberSpinBox->setMaximum(stream_count);
|
||||
ui->streamNumberSpinBox->setValue(get_follow_tcp_index());
|
||||
ui->streamNumberSpinBox->blockSignals(false);
|
||||
ui->streamNumberSpinBox->setToolTip(tr("%Ln total stream(s).", "", stream_count));
|
||||
ui->streamNumberLabel->setToolTip(ui->streamNumberSpinBox->toolTip());
|
||||
|
||||
break;
|
||||
}
|
||||
case FOLLOW_UDP:
|
||||
/* data will be passed via tap callback*/
|
||||
msg = register_tap_listener("udp_follow", &follow_info_,
|
||||
|
|
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
<context>
|
||||
<name>FollowStreamDialog</name>
|
||||
<message numerus="yes">
|
||||
<location filename="follow_stream_dialog.cpp" line="139"/>
|
||||
<location filename="follow_stream_dialog.cpp" line="145"/>
|
||||
<source>%Ln client pkt(s), </source>
|
||||
<translation>
|
||||
<numerusform>%Ln client pkt, </numerusform>
|
||||
|
@ -12,7 +12,7 @@
|
|||
</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="follow_stream_dialog.cpp" line="140"/>
|
||||
<location filename="follow_stream_dialog.cpp" line="146"/>
|
||||
<source>%Ln server pkt(s), </source>
|
||||
<translation>
|
||||
<numerusform>%Ln server pkt, </numerusform>
|
||||
|
@ -20,28 +20,34 @@
|
|||
</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="follow_stream_dialog.cpp" line="141"/>
|
||||
<location filename="follow_stream_dialog.cpp" line="147"/>
|
||||
<source>%Ln turn(s).</source>
|
||||
<translation>
|
||||
<numerusform>%Ln turn.</numerusform>
|
||||
<numerusform>%Ln turns.</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="follow_stream_dialog.cpp" line="928"/>
|
||||
<source>%Ln total stream(s).</source>
|
||||
<translation type="unfinished">
|
||||
<numerusform>%Ln stream.</numerusform>
|
||||
<numerusform>%Ln total streams.</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SequenceDialog</name>
|
||||
<message numerus="yes">
|
||||
<location filename="sequence_dialog.cpp" line="284"/>
|
||||
<source>%Ln node(s)</source>
|
||||
<translation>
|
||||
<translation type="obsolete">
|
||||
<numerusform>%Ln node</numerusform>
|
||||
<numerusform>%Ln nodes</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="sequence_dialog.cpp" line="285"/>
|
||||
<source>%Ln item(s)</source>
|
||||
<translation>
|
||||
<translation type="obsolete">
|
||||
<numerusform>%Ln item</numerusform>
|
||||
<numerusform>%Ln items</numerusform>
|
||||
</translation>
|
||||
|
|
Loading…
Reference in New Issue