Widget for fullscreen display.
More...
#include <FullScreen.h>
Widget for fullscreen display.
omni::ui::FullScreen::FullScreen |
( |
const QScreen * |
_screen | ) |
|
31 setStyleSheet(
"* { background:black; }");
32 setWindowFlags(Qt::CustomizeWindowHint);
33 setWindowFlags(Qt::FramelessWindowHint);
34 QWidget::setGeometry(_screen->geometry());
37 connect(QGuiApplication::instance(),SIGNAL(screenRemoved(QScreen*)),
void deleteIfScreenRemoved(QScreen *)
Definition: FullScreen.cpp:41
QUniquePtr< ScreenSetupDragWidget > dragWidget_
Definition: FullScreen.h:60
QScreen const * screen_
Definition: FullScreen.h:58
omni::ui::FullScreen::~FullScreen |
( |
| ) |
|
void detachAll()
Definition: FullScreen.cpp:53
void omni::ui::FullScreen::attach |
( |
int |
_subIndex, |
|
|
QWidget * |
_widget |
|
) |
| |
87 _widget->setParent(
this);
void setGeometry(QWidget *, int _subIndex) const
Definition: FullScreen.cpp:104
std::map< int, QWidget * > widgets_
Definition: FullScreen.h:59
void hideDragWidget()
Definition: FullScreen.cpp:95
void detach(int _subIndex)
Definition: FullScreen.cpp:64
void omni::ui::FullScreen::closeEvent |
( |
QCloseEvent * |
_event | ) |
|
|
protected |
void detachAll()
Definition: FullScreen.cpp:53
void omni::ui::FullScreen::deleteIfScreenRemoved |
( |
QScreen * |
_screen | ) |
|
|
slot |
QScreen const * screen_
Definition: FullScreen.h:58
static QScreen const * standardScreen()
Return standard screen, where omnidome has to be placed.
Definition: ScreenSetup.cpp:52
void omni::ui::FullScreen::detach |
( |
int |
_subIndex | ) |
|
66 if (
widgets_.count(_subIndex) == 0)
return;
69 widgets_[_subIndex]->setParent(
nullptr);
std::map< int, QWidget * > widgets_
Definition: FullScreen.h:59
void omni::ui::FullScreen::detachAll |
( |
| ) |
|
57 _widget.second->hide();
58 _widget.second->setParent(
nullptr);
std::map< int, QWidget * > widgets_
Definition: FullScreen.h:59
void omni::ui::FullScreen::hideDragWidget |
( |
| ) |
|
QUniquePtr< ScreenSetupDragWidget > dragWidget_
Definition: FullScreen.h:60
std::map< int, QWidget * > widgets_
Definition: FullScreen.h:59
void omni::ui::FullScreen::resizeEvent |
( |
QResizeEvent * |
_event | ) |
|
|
protected |
132 if (this->geometry() !=
screen_->geometry()) {
void deleteIfScreenRemoved(QScreen *)
Definition: FullScreen.cpp:41
QScreen const * screen_
Definition: FullScreen.h:58
void omni::ui::FullScreen::setGeometry |
( |
QWidget * |
_widget, |
|
|
int |
_subIndex |
|
) |
| const |
|
private |
Todo
109 if (_subIndex < 0) _subIndex = 0;
111 if (_subIndex >= _subScreenCount) _subIndex = _subScreenCount - 1;
114 _widget->setGeometry(ScreenSetup::subScreenRectForScreen(_subIndex,
screen_));
QScreen const * screen_
Definition: FullScreen.h:58
Singleton class which manages the current screen setup.
Definition: ScreenSetup.h:34
static int subScreenCountForScreen(QScreen const *)
Static method for getting subscreen count for screen Screen must not be nullptr! ...
Definition: ScreenSetup.cpp:136
void omni::ui::FullScreen::showDragWidget |
( |
int |
_subIndex, |
|
|
QColor const & |
_color |
|
) |
| |
QUniquePtr< ScreenSetupDragWidget > dragWidget_
Definition: FullScreen.h:60
void setGeometry(QWidget *, int _subIndex) const
Definition: FullScreen.cpp:104
QScreen const* omni::ui::FullScreen::screen_ |
|
private |
std::map<int, QWidget *> omni::ui::FullScreen::widgets_ |
|
private |
The documentation for this class was generated from the following files: