Omnidome
Fulldome Mapping Software Toolkit
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
app
ScreenSetupDragWidget.h
Go to the documentation of this file.
1
/* Copyright (c) 2014-2015 "Omnidome" by cr8tr
2
* Dome Mapping Projection Software (http://omnido.me).
3
* Omnidome was created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo)
4
*
5
* This file is part of Omnidome.
6
*
7
* Omnidome is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Affero General Public License as
9
* published by the Free Software Foundation, either version 3 of the
10
* License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU Affero General Public License for more details.
16
* You should have received a copy of the GNU Affero General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef OMNI_UI_SCREENSETUPDRAGWIDGET_H_
21
#define OMNI_UI_SCREENSETUPDRAGWIDGET_H_
22
23
#include <QWidget>
24
#include <QColor>
25
26
namespace
omni {
27
namespace
ui {
28
/// Widget which is shown when dragging a projector to a screen
29
class
ScreenSetupDragWidget
:
public
QWidget {
30
Q_OBJECT
31
32
public
:
33
ScreenSetupDragWidget
(QWidget * =
nullptr
);
34
~ScreenSetupDragWidget
();
35
36
/// Return widget color
37
QColor
color
()
const
;
38
39
/// Set widget color
40
void
setColor
(QColor
const
&);
41
42
/// Set rectangle for widget
43
void
setRect
(QRectF
const
&);
44
45
protected
:
46
/// Paint widget
47
void
paintEvent
(QPaintEvent *);
48
49
private
:
50
QColor
color_
;
51
};
52
}
53
}
54
55
56
#endif
/* OMNI_UI_SCREENSETUPDRAGWIDGET_H_ */
omni::ui::ScreenSetupDragWidget::setColor
void setColor(QColor const &)
Set widget color.
Definition:
ScreenSetupDragWidget.cpp:43
omni::ui::ScreenSetupDragWidget::ScreenSetupDragWidget
ScreenSetupDragWidget(QWidget *=nullptr)
Definition:
ScreenSetupDragWidget.cpp:26
omni::ui::ScreenSetupDragWidget::setRect
void setRect(QRectF const &)
Set rectangle for widget.
Definition:
ScreenSetupDragWidget.cpp:49
omni::ui::ScreenSetupDragWidget
Widget which is shown when dragging a projector to a screen.
Definition:
ScreenSetupDragWidget.h:29
omni::ui::ScreenSetupDragWidget::~ScreenSetupDragWidget
~ScreenSetupDragWidget()
Definition:
ScreenSetupDragWidget.cpp:35
omni::ui::ScreenSetupDragWidget::color
QColor color() const
Return widget color.
Definition:
ScreenSetupDragWidget.cpp:38
omni::ui::ScreenSetupDragWidget::color_
QColor color_
Definition:
ScreenSetupDragWidget.h:50
omni::ui::ScreenSetupDragWidget::paintEvent
void paintEvent(QPaintEvent *)
Paint widget.
Definition:
ScreenSetupDragWidget.cpp:55
Generated on Fri May 20 2016 13:38:19 for Omnidome by
1.8.6