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
19 #include <ui/qt/widgets/syntax_line_edit.h>
22 #include <QPushButton>
25 class TimeShiftDialog;
28 class TimeShiftDialog : public QDialog
33 explicit TimeShiftDialog(QWidget *parent = 0, capture_file *cf = NULL);
37 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
43 Ui::TimeShiftDialog *ts_ui_;
44 capture_file *cap_file_;
45 QPushButton *apply_button_;
49 void checkFrameNumber(SyntaxLineEdit &frame_le);
50 void checkDateTime(SyntaxLineEdit &time_le);
53 void on_shiftAllButton_toggled(bool checked);
54 void on_setOneButton_toggled(bool checked);
55 void on_unshiftAllButton_toggled(bool checked);
56 void on_setTwoCheckBox_toggled(bool checked);
57 void on_shiftAllTimeLineEdit_textChanged(const QString &sa_text);
58 void on_setOneTimeLineEdit_textChanged(const QString &so_text);
59 void on_setOneFrameLineEdit_textChanged(const QString &frame_text);
60 void on_setTwoFrameLineEdit_textChanged(const QString &frame_text);
61 void on_setTwoTimeLineEdit_textChanged(const QString &st_text);
62 void applyTimeShift();
63 void on_buttonBox_helpRequested();
66 #endif // TIME_SHIFT_DIALOG_H