update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / ui / qt / time_shift_dialog.h
blob4e218ba4dbd262ff7299b08015135d7d27b637f7
1 /** @file
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
8 */
10 #ifndef TIME_SHIFT_DIALOG_H
11 #define TIME_SHIFT_DIALOG_H
13 #include <config.h>
15 #include "cfile.h"
17 #include <ui/qt/widgets/syntax_line_edit.h>
19 #include <QDialog>
20 #include <QPushButton>
22 namespace Ui {
23 class TimeShiftDialog;
26 class TimeShiftDialog : public QDialog
28 Q_OBJECT
30 public:
31 explicit TimeShiftDialog(QWidget *parent = 0, capture_file *cf = NULL);
32 ~TimeShiftDialog();
34 public slots:
35 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
37 signals:
38 void timeShifted();
40 private:
41 Ui::TimeShiftDialog *ts_ui_;
42 capture_file *cap_file_;
43 QPushButton *apply_button_;
44 QString syntax_err_;
46 void enableWidgets();
47 void checkFrameNumber(SyntaxLineEdit &frame_le);
48 void checkDateTime(SyntaxLineEdit &time_le);
50 private slots:
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