UniversalIndentGUI 1.2.0
|
A container for the real AboutDialog. Makes the 3D animation possible. More...
#include <AboutDialogGraphicsView.h>
Public Slots | |
void | hide () |
Does not directly hide the AboutDialog but instead starts the "fade out" 3D animation. | |
void | show () |
Grabs a screenshot of the full desktop and shows that as background. Above that background the AboutDialog 3D animation is shown. Also grabs the content of the AboutDialog itself. | |
Public Member Functions | |
AboutDialogGraphicsView (AboutDialog *aboutDialog, QWidget *parentWindow=NULL) | |
The constructor initializes everything needed for the 3D animation. | |
~AboutDialogGraphicsView (void) | |
Private Slots | |
void | hideReally () |
This slot really hides this AboutDialog container. | |
void | showAboutDialog () |
Stops the 3D animation, moves the AboutDialog to the correct place and really shows it. | |
void | updateStep (int step) |
Does the next calculation/transformation step. | |
Private Attributes | |
AboutDialog * | _aboutDialog |
QSplashScreen * | _aboutDialogAsSplashScreen |
QGraphicsProxyWidget * | _graphicsProxyWidget |
QWidget * | _parentWindow |
QTimeLine * | _timeLine |
int | _windowPosOffset |
int | _windowTitleBarWidth |
A container for the real AboutDialog. Makes the 3D animation possible.
The 3D animation shall suggest the user, that he is looking at his desktop, while this animation is done. Since this is not directly possible, AboutDialogGraphicsView when shown starts in frameless fullscreen mode with a screenshot of the desktop as background.
Definition at line 30 of file AboutDialogGraphicsView.h.
AboutDialogGraphicsView::AboutDialogGraphicsView | ( | AboutDialog * | aboutDialog, |
QWidget * | parentWindow = NULL |
||
) |
The constructor initializes everything needed for the 3D animation.
Definition at line 42 of file AboutDialogGraphicsView.cpp.
References _aboutDialog, _aboutDialogAsSplashScreen, _graphicsProxyWidget, _parentWindow, _timeLine, _windowPosOffset, _windowTitleBarWidth, hide(), and updateStep().
AboutDialogGraphicsView::~AboutDialogGraphicsView | ( | void | ) |
Definition at line 93 of file AboutDialogGraphicsView.cpp.
void AboutDialogGraphicsView::hide | ( | ) | [slot] |
Does not directly hide the AboutDialog but instead starts the "fade out" 3D animation.
Definition at line 177 of file AboutDialogGraphicsView.cpp.
References _graphicsProxyWidget, _parentWindow, _timeLine, _windowPosOffset, _windowTitleBarWidth, hideReally(), and show().
Referenced by AboutDialogGraphicsView(), and hideReally().
void AboutDialogGraphicsView::hideReally | ( | ) | [private, slot] |
This slot really hides this AboutDialog container.
Definition at line 202 of file AboutDialogGraphicsView.cpp.
References _parentWindow, _timeLine, and hide().
Referenced by hide().
void AboutDialogGraphicsView::show | ( | ) | [slot] |
Grabs a screenshot of the full desktop and shows that as background. Above that background the AboutDialog 3D animation is shown. Also grabs the content of the AboutDialog itself.
Definition at line 101 of file AboutDialogGraphicsView.cpp.
References _aboutDialog, _aboutDialogAsSplashScreen, _graphicsProxyWidget, _parentWindow, _timeLine, _windowPosOffset, _windowTitleBarWidth, and showAboutDialog().
Referenced by hide(), and MainWindow::showAboutDialog().
void AboutDialogGraphicsView::showAboutDialog | ( | ) | [private, slot] |
Stops the 3D animation, moves the AboutDialog to the correct place and really shows it.
Definition at line 166 of file AboutDialogGraphicsView.cpp.
References _aboutDialog, _graphicsProxyWidget, _parentWindow, _timeLine, _windowPosOffset, _windowTitleBarWidth, and AboutDialog::exec().
Referenced by show().
void AboutDialogGraphicsView::updateStep | ( | int | step | ) | [private, slot] |
Does the next calculation/transformation step.
Definition at line 150 of file AboutDialogGraphicsView.cpp.
References _graphicsProxyWidget, and _windowTitleBarWidth.
Referenced by AboutDialogGraphicsView().
AboutDialog* AboutDialogGraphicsView::_aboutDialog [private] |
Definition at line 47 of file AboutDialogGraphicsView.h.
Referenced by AboutDialogGraphicsView(), show(), and showAboutDialog().
QSplashScreen* AboutDialogGraphicsView::_aboutDialogAsSplashScreen [private] |
Definition at line 51 of file AboutDialogGraphicsView.h.
Referenced by AboutDialogGraphicsView(), and show().
QGraphicsProxyWidget* AboutDialogGraphicsView::_graphicsProxyWidget [private] |
Definition at line 48 of file AboutDialogGraphicsView.h.
Referenced by AboutDialogGraphicsView(), hide(), show(), showAboutDialog(), and updateStep().
QWidget* AboutDialogGraphicsView::_parentWindow [private] |
Definition at line 49 of file AboutDialogGraphicsView.h.
Referenced by AboutDialogGraphicsView(), hide(), hideReally(), show(), and showAboutDialog().
QTimeLine* AboutDialogGraphicsView::_timeLine [private] |
Definition at line 50 of file AboutDialogGraphicsView.h.
Referenced by AboutDialogGraphicsView(), hide(), hideReally(), show(), and showAboutDialog().
int AboutDialogGraphicsView::_windowPosOffset [private] |
Definition at line 53 of file AboutDialogGraphicsView.h.
Referenced by AboutDialogGraphicsView(), hide(), show(), and showAboutDialog().
int AboutDialogGraphicsView::_windowTitleBarWidth [private] |
Definition at line 52 of file AboutDialogGraphicsView.h.
Referenced by AboutDialogGraphicsView(), hide(), show(), showAboutDialog(), and updateStep().