qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ScreenshotGrabber Class Reference

#include <screenshotgrabber.h>

Inheritance diagram for ScreenshotGrabber:
Inheritance graph
Collaboration diagram for ScreenshotGrabber:
Collaboration graph

Public Slots

void acceptRegion ()
 
void reInit ()
 

Signals

void screenshotTaken (const QPixmap &pixmap)
 
void regionChosen (QRect region)
 
void rejected ()
 

Public Member Functions

 ScreenshotGrabber ()
 
 ~ScreenshotGrabber () override
 
bool eventFilter (QObject *object, QEvent *event) override
 
void showGrabber ()
 

Private Member Functions

void setupScene ()
 
void useNothingSelectedTooltip ()
 
void useRegionSelectedTooltip ()
 
void chooseHelperTooltipText (QRect rect)
 
void adjustTooltipPosition ()
 
bool handleKeyPress (QKeyEvent *event)
 
void reject ()
 
QPixmap grabScreen ()
 
void hideVisibleWindows ()
 
void restoreHiddenWindows ()
 
void beginRectChooser (QGraphicsSceneMouseEvent *event)
 

Private Attributes

bool mKeysBlocked
 
QPixmap screenGrab
 
QGraphicsScene * scene
 
QGraphicsView * window
 
QGraphicsPixmapItem * screenGrabDisplay
 
ScreenGrabberOverlayItemoverlay
 
ScreenGrabberChooserRectItemchooserRect
 
ToolBoxGraphicsItemhelperToolbox
 
QGraphicsTextItem * helperTooltip
 
qreal pixRatio = 1.0
 
bool mQToxVisible
 
QVector< QPointer< QWidget > > mHiddenWindows
 

Friends

class ScreenGrabberOverlayItem
 

Detailed Description

Definition at line 36 of file screenshotgrabber.h.

Constructor & Destructor Documentation

◆ ScreenshotGrabber()

ScreenshotGrabber::ScreenshotGrabber ( )

Definition at line 38 of file screenshotgrabber.cpp.

Here is the call graph for this function:

◆ ~ScreenshotGrabber()

ScreenshotGrabber::~ScreenshotGrabber ( )
override

Definition at line 64 of file screenshotgrabber.cpp.

Member Function Documentation

◆ acceptRegion

void ScreenshotGrabber::acceptRegion ( )
slot

Definition at line 121 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjustTooltipPosition()

void ScreenshotGrabber::adjustTooltipPosition ( )
private

Definition at line 203 of file screenshotgrabber.cpp.

Here is the caller graph for this function:

◆ beginRectChooser()

void ScreenshotGrabber::beginRectChooser ( QGraphicsSceneMouseEvent *  event)
private

Definition at line 258 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chooseHelperTooltipText()

void ScreenshotGrabber::chooseHelperTooltipText ( QRect  rect)
private

Definition at line 191 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventFilter()

bool ScreenshotGrabber::eventFilter ( QObject *  object,
QEvent *  event 
)
override

Definition at line 70 of file screenshotgrabber.cpp.

Here is the call graph for this function:

◆ grabScreen()

QPixmap ScreenshotGrabber::grabScreen ( )
private

Definition at line 225 of file screenshotgrabber.cpp.

Here is the caller graph for this function:

◆ handleKeyPress()

bool ScreenshotGrabber::handleKeyPress ( QKeyEvent *  event)
private

Definition at line 96 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hideVisibleWindows()

void ScreenshotGrabber::hideVisibleWindows ( )
private

Definition at line 235 of file screenshotgrabber.cpp.

Here is the caller graph for this function:

◆ regionChosen

void ScreenshotGrabber::regionChosen ( QRect  region)
signal
Here is the caller graph for this function:

◆ reInit

void ScreenshotGrabber::reInit ( )
slot

Definition at line 56 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reject()

void ScreenshotGrabber::reject ( )
private

Definition at line 219 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rejected

void ScreenshotGrabber::rejected ( )
signal

◆ restoreHiddenWindows()

void ScreenshotGrabber::restoreHiddenWindows ( )
private

Definition at line 247 of file screenshotgrabber.cpp.

Here is the caller graph for this function:

◆ screenshotTaken

void ScreenshotGrabber::screenshotTaken ( const QPixmap &  pixmap)
signal
Here is the caller graph for this function:

◆ setupScene()

void ScreenshotGrabber::setupScene ( )
private

Definition at line 140 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showGrabber()

void ScreenshotGrabber::showGrabber ( )

Definition at line 78 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useNothingSelectedTooltip()

void ScreenshotGrabber::useNothingSelectedTooltip ( )
private

Definition at line 168 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useRegionSelectedTooltip()

void ScreenshotGrabber::useRegionSelectedTooltip ( )
private

Definition at line 179 of file screenshotgrabber.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ScreenGrabberOverlayItem

friend class ScreenGrabberOverlayItem
friend

Definition at line 57 of file screenshotgrabber.h.

Member Data Documentation

◆ chooserRect

ScreenGrabberChooserRectItem* ScreenshotGrabber::chooserRect
private

Definition at line 83 of file screenshotgrabber.h.

◆ helperToolbox

ToolBoxGraphicsItem* ScreenshotGrabber::helperToolbox
private

Definition at line 84 of file screenshotgrabber.h.

◆ helperTooltip

QGraphicsTextItem* ScreenshotGrabber::helperTooltip
private

Definition at line 85 of file screenshotgrabber.h.

◆ mHiddenWindows

QVector<QPointer<QWidget> > ScreenshotGrabber::mHiddenWindows
private

Definition at line 90 of file screenshotgrabber.h.

◆ mKeysBlocked

bool ScreenshotGrabber::mKeysBlocked
private

Definition at line 58 of file screenshotgrabber.h.

◆ mQToxVisible

bool ScreenshotGrabber::mQToxVisible
private

Definition at line 89 of file screenshotgrabber.h.

◆ overlay

ScreenGrabberOverlayItem* ScreenshotGrabber::overlay
private

Definition at line 82 of file screenshotgrabber.h.

◆ pixRatio

qreal ScreenshotGrabber::pixRatio = 1.0
private

Definition at line 87 of file screenshotgrabber.h.

◆ scene

QGraphicsScene* ScreenshotGrabber::scene
private

Definition at line 79 of file screenshotgrabber.h.

◆ screenGrab

QPixmap ScreenshotGrabber::screenGrab
private

Definition at line 78 of file screenshotgrabber.h.

◆ screenGrabDisplay

QGraphicsPixmapItem* ScreenshotGrabber::screenGrabDisplay
private

Definition at line 81 of file screenshotgrabber.h.

◆ window

QGraphicsView* ScreenshotGrabber::window
private

Definition at line 80 of file screenshotgrabber.h.


The documentation for this class was generated from the following files: