A dialog for grabbing a screen shot. More...
#include <screenshot_dialog.h>
Signals | |
void | savedInDirectory (const QString &directory) |
Emitted when the user saves a file. More... | |
Public Member Functions | |
ScreenshotDialog (QWidget *main_window, QWidget *render_window, const QString &default_save_dir=QString()) | |
~ScreenshotDialog () override | |
Protected Slots | |
void | onButtonClicked (QAbstractButton *clicked) |
void | onTimeout () |
void | save () |
void | setSaveFullWindow (bool save_full_window) |
void | takeScreenshot () |
void | takeScreenshotNow () |
Protected Member Functions | |
void | showEvent (QShowEvent *event) override |
Private Attributes | |
QDialogButtonBox * | button_box_ |
QString | default_save_dir_ |
QTimer * | delay_timer_ |
bool | first_time_ |
ScaledImageWidget * | image_widget_ |
QWidget * | main_window_ |
QWidget * | render_window_ |
bool | save_full_window_ |
QSize | saved_size_ |
QPixmap | screenshot_ |
A dialog for grabbing a screen shot.
Takes the screenshot while in the constructor, then shows a half-size view of the screenshot in the dialog with buttons for save/try-again/cancel.
Definition at line 52 of file screenshot_dialog.h.
rviz::ScreenshotDialog::ScreenshotDialog | ( | QWidget * | main_window, |
QWidget * | render_window, | ||
const QString & | default_save_dir = QString() |
||
) |
Definition at line 49 of file screenshot_dialog.cpp.
|
inlineoverride |
Definition at line 59 of file screenshot_dialog.h.
|
protectedslot |
Definition at line 121 of file screenshot_dialog.cpp.
|
protectedslot |
Definition at line 106 of file screenshot_dialog.cpp.
|
protectedslot |
Definition at line 137 of file screenshot_dialog.cpp.
|
signal |
Emitted when the user saves a file.
|
protectedslot |
Definition at line 94 of file screenshot_dialog.cpp.
|
overrideprotected |
Definition at line 82 of file screenshot_dialog.cpp.
|
protectedslot |
Definition at line 100 of file screenshot_dialog.cpp.
|
protectedslot |
Definition at line 114 of file screenshot_dialog.cpp.
|
private |
Definition at line 83 of file screenshot_dialog.h.
|
private |
Definition at line 88 of file screenshot_dialog.h.
|
private |
Definition at line 85 of file screenshot_dialog.h.
|
private |
Definition at line 87 of file screenshot_dialog.h.
|
private |
Definition at line 79 of file screenshot_dialog.h.
|
private |
Definition at line 80 of file screenshot_dialog.h.
|
private |
Definition at line 81 of file screenshot_dialog.h.
|
private |
Definition at line 84 of file screenshot_dialog.h.
|
private |
Definition at line 86 of file screenshot_dialog.h.
|
private |
Definition at line 82 of file screenshot_dialog.h.