| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
time_shift_dialog.h
Go to the documentation of this file.
1
9
10#ifndef TIME_SHIFT_DIALOG_H
11#define TIME_SHIFT_DIALOG_H
12
13#include <config.h>
14
15#include <epan/cfile.h>
16
17#include <ui/qt/widgets/syntax_line_edit.h>
18
19#include <QDialog>
20#include <QPushButton>
21
22 namespace Ui {
23 class TimeShiftDialog;
24}
25
31 class TimeShiftDialog : public QDialog
32{
33 Q_OBJECT
34
35 public:
41 explicit TimeShiftDialog(QWidget *parent = 0, capture_file *cf = NULL);
42
46 ~TimeShiftDialog();
47
48 public slots:
53 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
54
55signals:
60 void timeShifted();
61
62 private:
63 Ui::TimeShiftDialog *ts_ui_;
64 capture_file *cap_file_;
65 QPushButton *apply_button_;
66 QString syntax_err_;
67
72 void enableWidgets();
73
78 void checkFrameNumber(SyntaxLineEdit &frame_le);
79
84 void checkDateTime(SyntaxLineEdit &time_le);
85
86 private 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
cfile.h
capture_file
struct _capture_file capture_file
Represents a capture file and its associated metadata.
SyntaxLineEdit
QLineEdit subclass that adds syntax-state colouring, error messaging, and partial token-based autocom...
Definition syntax_line_edit.h:28
TimeShiftDialog::timeShifted
void timeShifted()
Emitted after a time-shift operation has been successfully applied, so that other views can refresh t...
TimeShiftDialog::TimeShiftDialog
TimeShiftDialog(QWidget *parent=0, capture_file *cf=NULL)
Constructs the Time Shift dialog.
Definition time_shift_dialog.cpp:20
TimeShiftDialog::setCaptureFile
void setCaptureFile(capture_file *cf)
Updates the capture file pointer when the active file changes.
Definition time_shift_dialog.h:53
TimeShiftDialog::~TimeShiftDialog
~TimeShiftDialog()
Destroys the dialog and releases UI resources.
Definition time_shift_dialog.cpp:61
syntax_line_edit.h