3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef TIME_SHIFT_DIALOG_H
11 #define TIME_SHIFT_DIALOG_H
17 #include <ui/qt/widgets/syntax_line_edit.h>
20 #include <QPushButton>
23 class TimeShiftDialog
;
26 class TimeShiftDialog
: public QDialog
31 explicit TimeShiftDialog(QWidget
*parent
= 0, capture_file
*cf
= NULL
);
35 void setCaptureFile(capture_file
*cf
) { cap_file_
= cf
; }
41 Ui::TimeShiftDialog
*ts_ui_
;
42 capture_file
*cap_file_
;
43 QPushButton
*apply_button_
;
47 void checkFrameNumber(SyntaxLineEdit
&frame_le
);
48 void checkDateTime(SyntaxLineEdit
&time_le
);
51 void on_shiftAllButton_toggled(bool checked
);
52 void on_setOneButton_toggled(bool checked
);
53 void on_unshiftAllButton_toggled(bool checked
);
54 void on_setTwoCheckBox_toggled(bool checked
);
55 void on_shiftAllTimeLineEdit_textChanged(const QString
&sa_text
);
56 void on_setOneTimeLineEdit_textChanged(const QString
&so_text
);
57 void on_setOneFrameLineEdit_textChanged(const QString
&frame_text
);
58 void on_setTwoFrameLineEdit_textChanged(const QString
&frame_text
);
59 void on_setTwoTimeLineEdit_textChanged(const QString
&st_text
);
60 void applyTimeShift();
61 void on_buttonBox_helpRequested();
64 #endif // TIME_SHIFT_DIALOG_H