-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindow.h
81 lines (78 loc) · 3.17 KB
/
window.h
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#pragma once
#include <QMainWindow>
#include <QAction>
#include <queue>
#include "panes.h"
#include "settings.h"
class Window : public QMainWindow
{
Q_OBJECT
public:
Window();
ApplicationSetting& BackgroundColor();
ApplicationSetting& Dimensions();
protected:
QWidget *background;
PersistentPane *livePersistentPane;
std::queue<EphemeralPane*> highPriorityEphemeralPanes;
std::queue<EphemeralPane*> lowPriorityEphemeralPanes;
ApplicationSetting settingWindowSize;
ApplicationSetting settingBackgroundColor;
QAction configureOptions;
QAction configureCommands;
QAction configureEventSubscriptions;
QAction metrics;
QAction vibePlaylist;
QAction status;
void SwapPersistentPane(PersistentPane *pane);
void ReleaseLiveEphemeralPane();
const QSize ScreenThird();
void contextMenuEvent(QContextMenuEvent *event) override;
void closeEvent(QCloseEvent *event) override;
signals:
void Print(const QString &message);
void Print(const QString &message,const QString &operation,const QString &subsystem="main window");
void ChatMessage(std::shared_ptr<Chat::Message> message);
void DeleteChatMessage(const QString &id);
void SetAgenda(const QString &agenda);
void RefreshChat();
void SuppressMusic();
void RestoreMusic();
void ConfigureOptions();
void ConfigureCommands();
void ConfigureEventSubscriptions();
void ShowMetrics();
void ShowVibePlaylist();
void ShowStatus();
void CloseRequested(QCloseEvent *event);
public slots:
void ShowChat();
void AnnounceArrival(const QString &name,std::shared_ptr<QImage> profileImage,const QString &audioPath);
void AnnounceRedemption(const QString &name,const QString &rewardTitle,const QString &message);
void AnnounceSubscription(const QString &name,const QString &audioPath);
void AnnounceRaid(const QString &name,const unsigned int viewers,const QString &audioPath);
void AnnounceCheer(const QString &name,const unsigned int count,const QString &message,const QString &videoPath);
void AnnounceTextWall(const QString &message,const QString &audioPath);
void AnnounceDeniedCommand(const QString &videoPath);
void AnnounceHypeTrainProgress(int level,double progress);
void PlayVideo(const QString &path);
void PlayAudio(const QString &viewer,const QString &message,const QString &path);
void ShowPortraitVideo(const QString &path);
void ShowCurrentSong(const QString &song,const QString &album,const QString &artist,const QImage coverArt);
void ShowCurrentSong(const QString &song,const QString &artist,const QImage coverArt);
void ShowCommandList(std::vector<std::tuple<QString,QStringList,QString>> descriptions);
void ShowCommand(const QString &name,const QString &description);
void ShowPanicText(const QString &text);
void Shoutout(const QString &name,const QString &description,std::shared_ptr<QImage> profileImage);
void ShowFollowage(const QString &name,std::chrono::years years,std::chrono::months months,std::chrono::days days);
void ShowTimezone(const QString &timezone);
void ShowUptime(std::chrono::hours hours,std::chrono::minutes minutes,std::chrono::seconds seconds);
void Resize(const QSize &dimensions);
protected slots:
void StageEphemeralPane(EphemeralPane *pane);
};
class Win32Window : public Window
{
public:
Win32Window();
};