Menu

[r647]: / src / projectordisplayscreen.h  Maximize  Restore  History

Download this file

66 lines (54 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef PROJECTORDISPLAYSCREEN_H
#define PROJECTORDISPLAYSCREEN_H
#include <QWidget>
#include <QQmlEngine>
#include <QQuickView>
#include <QQuickItem>
#include <QtQml>
//#include <QPixmap>
#include "spimageprovider.h"
#include "imagegenerator.h"
#include "settings.h"
#include "bible.h"
#include "song.h"
#include "announcement.h"
//#include "slideshow.h"
namespace Ui {
class ProjectorDisplayScreen;
}
class ProjectorDisplayScreen : public QWidget
{
Q_OBJECT
public:
explicit ProjectorDisplayScreen(QWidget *parent = 0);
~ProjectorDisplayScreen();
public slots:
void resetImGenSize();
void renderNotText();
void renderPassiveText(QPixmap &back,bool useBack);
void renderBibleText(Verse bVerse, BibleSettings &bSets);
void renderSongText(Stanza stanza, SongSettings &sSets);
void renderAnnounceText(AnnounceSlide announce, TextSettings &aSets);
void renderSlideShow(QPixmap slide,SlideShowSettings &ssSets);
// void renderVideo();
void positionControls(DisplayControlsSettings & dSettings);
void setControlsVisible(bool visible);
private slots:
void setBackPixmap(QPixmap p,int fillMode); // 0 = Strech, 1 = keep aspect, 2 = keep aspect by expanding
void setBackPixmap(QPixmap p, QColor c);
void setTextPixmap(QPixmap p);
void setVideoSource(QString path);
void updateScreen();
private:
Ui::ProjectorDisplayScreen *ui;
QQuickView *dispView;
SpImageProvider *imProvider;
ImageGenerator imGen;
bool backImSwitch1, textImSwitch1, backImSwitch2, textImSwitch2;
bool isNewBack, back1to2, text1to2;
int tranType,backType;
QColor m_color;
// DisplayControlsSettings mySettings;
QPixmap back;
};
#endif // PROJECTORDISPLAYSCREEN_H
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.