Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
time_shift_dialog.h
Go to the documentation of this file.
1
10#ifndef TIME_SHIFT_DIALOG_H
11#define TIME_SHIFT_DIALOG_H
12
13#include <config.h>
14
15#include <epan/cfile.h>
16
18
19#include <QDialog>
20#include <QPushButton>
21
22namespace Ui {
23class TimeShiftDialog;
24}
25
31class TimeShiftDialog : public QDialog
32{
33 Q_OBJECT
34
35public:
41 explicit TimeShiftDialog(QWidget *parent = 0, capture_file *cf = NULL);
42
47
48public slots:
53 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
54
55signals:
61
62private:
63 Ui::TimeShiftDialog *ts_ui_;
64 capture_file *cap_file_;
65 QPushButton *apply_button_;
66 QString syntax_err_;
72 void enableWidgets();
73
78 void checkFrameNumber(SyntaxLineEdit &frame_le);
79
84 void checkDateTime(SyntaxLineEdit &time_le);
85
86private slots:
91 void on_shiftAllButton_toggled(bool checked);
92
97 void on_setOneButton_toggled(bool checked);
98
103 void on_unshiftAllButton_toggled(bool checked);
104
109 void on_setTwoCheckBox_toggled(bool checked);
110
115 void on_shiftAllTimeLineEdit_textChanged(const QString &sa_text);
116
121 void on_setOneTimeLineEdit_textChanged(const QString &so_text);
122
127 void on_setOneFrameLineEdit_textChanged(const QString &frame_text);
128
133 void on_setTwoFrameLineEdit_textChanged(const QString &frame_text);
134
139 void on_setTwoTimeLineEdit_textChanged(const QString &st_text);
140
145 void applyTimeShift();
146
150 void on_buttonBox_helpRequested();
151};
152
153#endif // TIME_SHIFT_DIALOG_H
QLineEdit subclass that adds syntax-state colouring, error messaging, and partial token-based autocom...
Definition syntax_line_edit.h:28
Dialog for shifting packet timestamps in the current capture file, supporting uniform shifts across a...
Definition time_shift_dialog.h:32
void timeShifted()
Emitted after a time-shift operation has been successfully applied, so that other views can refresh t...
void setCaptureFile(capture_file *cf)
Updates the capture file pointer when the active file changes.
Definition time_shift_dialog.h:53
~TimeShiftDialog()
Destroys the dialog and releases UI resources.
Definition time_shift_dialog.cpp:61
Represents a capture file and its associated metadata.
Definition cfile.h:84