blob: a15e0e713bc857515948de5d8dcd25d95779aaf5 (
plain)
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
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef FLUID_LAUNCHER_H
#define FLUID_LAUNCHER_H
#include <QtWidgets>
#include <QTimer>
#include "pictureflow.h"
#include "slideshow.h"
#include "demoapplication.h"
class FluidLauncher : public QStackedWidget
{
Q_OBJECT
public:
FluidLauncher(QStringList* args);
~FluidLauncher();
public slots:
void launchApplication(int index);
void switchToLauncher();
void resetInputTimeout();
void inputTimedout();
void demoFinished();
protected:
void changeEvent(QEvent *event) override;
private:
PictureFlow* pictureFlowWidget;
SlideShow* slideShowWidget;
QTimer* inputTimer;
QList<DemoApplication*> demoList;
bool loadConfig(QString configPath);
void populatePictureFlow();
void switchToSlideshow();
void parseDemos(QXmlStreamReader& reader);
void parseSlideshow(QXmlStreamReader& reader);
};
#endif
|