SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
sdrgui
gui
sdrangelsplash.cpp
Go to the documentation of this file.
1
// Copyright (C) 2019 Edouard Griffiths, F4EXB. //
3
// //
4
// Swagger server adapter interface //
5
// //
6
// This program is free software; you can redistribute it and/or modify //
7
// it under the terms of the GNU General Public License as published by //
8
// the Free Software Foundation as version 3 of the License, or //
9
// (at your option) any later version. //
10
// //
11
// This program is distributed in the hope that it will be useful, //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14
// GNU General Public License V3 for more details. //
15
// //
16
// You should have received a copy of the GNU General Public License //
17
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
19
20
#include "
sdrangelsplash.h
"
21
22
SDRangelSplash::SDRangelSplash
(
const
QPixmap& pixmap)
23
{
24
QSplashScreen::setPixmap(pixmap);
25
};
26
27
SDRangelSplash::~SDRangelSplash
()
28
{
29
};
30
31
void
SDRangelSplash::drawContents
(QPainter *painter)
32
{
33
QPixmap textPix = QSplashScreen::pixmap();
34
painter->setPen(this->
color
);
35
painter->drawText(this->
rect
, this->
alignement
, this->
message
);
36
};
37
38
void
SDRangelSplash::showStatusMessage
(
const
QString &
message
,
const
QColor &
color
)
39
{
40
this->message =
message
;
41
this->color =
color
;
42
this->showMessage(this->message, this->
alignement
, this->color);
43
};
44
45
void
SDRangelSplash::setMessageRect
(QRect
rect
,
int
alignement
)
46
{
47
this->rect =
rect
;
48
this->alignement =
alignement
;
49
};
SDRangelSplash::setMessageRect
void setMessageRect(QRect rect, int alignment=Qt::AlignLeft)
Definition:
sdrangelsplash.cpp:45
sdrangelsplash.h
SDRangelSplash::~SDRangelSplash
~SDRangelSplash()
Definition:
sdrangelsplash.cpp:27
SDRangelSplash::rect
QRect rect
Definition:
sdrangelsplash.h:38
SDRangelSplash::alignement
int alignement
Definition:
sdrangelsplash.h:36
SDRangelSplash::SDRangelSplash
SDRangelSplash(const QPixmap &pixmap)
Definition:
sdrangelsplash.cpp:22
SDRangelSplash::color
QColor color
Definition:
sdrangelsplash.h:37
SDRangelSplash::showStatusMessage
void showStatusMessage(const QString &message, const QColor &color=Qt::black)
Definition:
sdrangelsplash.cpp:38
SDRangelSplash::drawContents
virtual void drawContents(QPainter *painter)
Definition:
sdrangelsplash.cpp:31
SDRangelSplash::message
QString message
Definition:
sdrangelsplash.h:35
Generated on Fri Aug 2 2019 17:56:34 for SDRAngel by
1.8.13