Dialog that provides packet print and print-preview functionality for a live or saved capture file.
More...
#include <print_dialog.h>
|
| | PrintDialog (QWidget *parent=0, capture_file *cf=NULL, QString selRange=QString()) |
| | Constructs the Print dialog.
|
| |
|
| ~PrintDialog () |
| | Destroys the Print dialog and releases all associated resources.
|
| |
| bool | printHeader () |
| | Prints the page header for the current print job.
|
| |
| bool | printLine (int indent, const char *line) |
| | Prints a single line of packet data at the given indentation level.
|
| |
|
| virtual void | keyPressEvent (QKeyEvent *event) override |
| | Intercepts key press events, e.g. to suppress closing the dialog on Enter.
|
| |
Dialog that provides packet print and print-preview functionality for a live or saved capture file.
◆ PrintDialog()
| PrintDialog::PrintDialog |
( |
QWidget * |
parent = 0, |
|
|
capture_file * |
cf = NULL, |
|
|
QString |
selRange = QString() |
|
) |
| |
|
explicit |
Constructs the Print dialog.
- Parameters
-
| parent | Optional parent widget. |
| cf | Capture file whose packets are to be printed; may be NULL. |
| selRange | Optional string describing a pre-selected packet range to print. |
◆ keyPressEvent()
| void PrintDialog::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotectedvirtual |
Intercepts key press events, e.g. to suppress closing the dialog on Enter.
- Parameters
-
| event | The key event to handle. |
◆ printHeader()
| bool PrintDialog::printHeader |
( |
| ) |
|
Prints the page header for the current print job.
- Returns
true on success; false if the header could not be rendered.
◆ printLine()
| bool PrintDialog::printLine |
( |
int |
indent, |
|
|
const char * |
line |
|
) |
| |
Prints a single line of packet data at the given indentation level.
- Parameters
-
| indent | Number of indentation levels to apply before the line text. |
| line | NUL-terminated string containing the line text to render. |
- Returns
true on success; false if the line could not be rendered.
◆ cap_file_
Capture file being printed; publicly accessible for print stream callbacks.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/print_dialog.h
- /builds/wireshark/wireshark/ui/qt/print_dialog.cpp