ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
toolx::streams::PlayerFullscreen Class Reference

Adds fullscreen toggling to a player dialog. The dialog is returned to its previous geometry when fullscreen is left. Owned by (and destroyed with) the dialog. More...

#include <player_fullscreen.h>

Inheritance diagram for toolx::streams::PlayerFullscreen:
Inheritance graph
Collaboration diagram for toolx::streams::PlayerFullscreen:
Collaboration graph

Public Member Functions

 PlayerFullscreen (QDialog *dialog, QPushButton *button)
 Attach fullscreen handling to a player dialog.
 PlayerFullscreen (const PlayerFullscreen &)=delete
PlayerFullscreen & operator= (const PlayerFullscreen &)=delete
void toggle ()
 Toggle fullscreen on / off.

Private Member Functions

void showHint ()
 Show the hint at the top centre, then fade it out.
void hideHint ()
 Hide the hint immediately.
void setChromeHidden (bool hidden)
 Hide (or restore) everything except the video view, so the video fills the screen.
void updateButton ()
 Update the button text and tooltip for the current state.

Private Attributes

QDialog * m_dialog
 The player dialog.
QPushButton * m_button
 The toggle button.
QRect m_normal_geometry
 The geometry before entering fullscreen.
bool m_was_maximized = false
 Whether the window was maximised before entering fullscreen.
QShortcut * m_escape = nullptr
 Esc shortcut, enabled only while fullscreen.
QList< QPointer< QWidget > > m_hidden_widgets
 Widgets hidden while fullscreen (status bar, buttons).
QMargins m_margins
 The layout margins before entering fullscreen.
int m_spacing = 0
 The layout spacing before entering fullscreen.
QString m_style_sheet
 The dialog style sheet before entering fullscreen.
QLabel * m_hint = nullptr
 The "exit fullscreen" hint overlay.
QGraphicsOpacityEffect * m_hint_effect = nullptr
 Opacity effect of the hint.
QPropertyAnimation * m_hint_animation = nullptr
 Fade out animation of the hint.

Detailed Description

Adds fullscreen toggling to a player dialog. The dialog is returned to its previous geometry when fullscreen is left. Owned by (and destroyed with) the dialog.

Constructor & Destructor Documentation

◆ PlayerFullscreen()

toolx::streams::PlayerFullscreen::PlayerFullscreen ( QDialog * dialog,
QPushButton * button )
explicit

Attach fullscreen handling to a player dialog.

Parameters
dialogThe player dialog (must be a top level window)
buttonThe button that toggles fullscreen (may be nullptr)

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