summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/qt/export_object_dialog.cpp5
-rw-r--r--ui/qt/export_object_dialog.h2
-rw-r--r--ui/qt/main_window.h1
-rw-r--r--ui/qt/main_window.ui23
-rw-r--r--ui/qt/main_window_slots.cpp5
5 files changed, 22 insertions, 14 deletions
diff --git a/ui/qt/export_object_dialog.cpp b/ui/qt/export_object_dialog.cpp
index ef3363b79b..4c65cdc6ab 100644
--- a/ui/qt/export_object_dialog.cpp
+++ b/ui/qt/export_object_dialog.cpp
@@ -99,6 +99,11 @@ ExportObjectDialog::ExportObjectDialog(QWidget *parent, capture_file *cf, Object
tap_packet_ = eo_smb_packet;
eo_protocoldata_resetfn_ = eo_smb_cleanup;
break;
+ case Tftp:
+ tap_name_ = "tftp_eo";
+ name_ = "TFTP";
+ tap_packet_ = eo_tftp_packet;
+ break;
}
save_bt_ = eo_ui_->buttonBox->button(QDialogButtonBox::Save);
diff --git a/ui/qt/export_object_dialog.h b/ui/qt/export_object_dialog.h
index 281314d019..be1534efa9 100644
--- a/ui/qt/export_object_dialog.h
+++ b/ui/qt/export_object_dialog.h
@@ -55,7 +55,7 @@ class ExportObjectDialog : public QDialog
Q_OBJECT
public:
- enum ObjectType { Dicom, Http, Smb };
+ enum ObjectType { Dicom, Http, Smb, Tftp };
explicit ExportObjectDialog(QWidget *parent, capture_file *cf, ObjectType object_type);
~ExportObjectDialog();
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h
index 1ea43582dc..87b3ac5a2d 100644
--- a/ui/qt/main_window.h
+++ b/ui/qt/main_window.h
@@ -232,6 +232,7 @@ private slots:
void on_actionFileExportObjectsDICOM_triggered();
void on_actionFileExportObjectsHTTP_triggered();
void on_actionFileExportObjectsSMB_triggered();
+ void on_actionFileExportObjectsTFTP_triggered();
void on_actionFilePrint_triggered();
void on_actionFileExportPDU_triggered();
diff --git a/ui/qt/main_window.ui b/ui/qt/main_window.ui
index 5407b7bf10..e6d6df8045 100644
--- a/ui/qt/main_window.ui
+++ b/ui/qt/main_window.ui
@@ -28,16 +28,7 @@
</sizepolicy>
</property>
<layout class="QGridLayout" name="gridLayout">
- <property name="leftMargin">
- <number>0</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
- <property name="bottomMargin">
+ <property name="margin">
<number>0</number>
</property>
<property name="spacing">
@@ -68,7 +59,7 @@
<item>
<widget class="QLineEdit" name="goToLineEdit">
<property name="inputMask">
- <string>900000000</string>
+ <string>900000000; </string>
</property>
</widget>
</item>
@@ -106,7 +97,7 @@
<x>0</x>
<y>0</y>
<width>960</width>
- <height>22</height>
+ <height>27</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@@ -145,6 +136,7 @@
<addaction name="actionFileExportObjectsDICOM"/>
<addaction name="actionFileExportObjectsHTTP"/>
<addaction name="actionFileExportObjectsSMB"/>
+ <addaction name="actionFileExportObjectsTFTP"/>
</widget>
<addaction name="actionFileOpen"/>
<addaction name="menuOpenRecentCaptureFile"/>
@@ -362,7 +354,7 @@
<addaction name="menu29WestQueues"/>
<addaction name="menu29WestUIM"/>
<addaction name="actionStatistics29WestLBTRM"/>
- <addaction name="actionStatistics29WestLBTRU"/>
+ <addaction name="actionStatistics29WestLBTRU"/>
</widget>
<addaction name="actionSummary"/>
<addaction name="actionProtocol_Hierarchy"/>
@@ -1707,6 +1699,11 @@
<string>Show/hide the display filter toolbar</string>
</property>
</action>
+ <action name="actionFileExportObjectsTFTP">
+ <property name="text">
+ <string>&amp;TFTP</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index be4a5ad8a0..e9d8166743 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -1393,6 +1393,11 @@ void MainWindow::on_actionFileExportObjectsSMB_triggered()
new ExportObjectDialog(this, cap_file_, ExportObjectDialog::Smb);
}
+void MainWindow::on_actionFileExportObjectsTFTP_triggered()
+{
+ new ExportObjectDialog(this, cap_file_, ExportObjectDialog::Tftp);
+}
+
void MainWindow::on_actionFilePrint_triggered()
{
PrintDialog pdlg(this, cap_file_);