Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
NotificationManagerUI.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 7/21/23.
3//
4
5#pragma once
6#ifndef ATLASGAMEMANAGER_NOTIFICATIONMANAGERUI_HPP
7#define ATLASGAMEMANAGER_NOTIFICATIONMANAGERUI_HPP
8
9#include <QDialog>
10
11class Notification;
12
13QT_BEGIN_NAMESPACE
14
15namespace Ui
16{
18}
19
20QT_END_NAMESPACE
21
22class Notification;
23
24class NotificationManagerUI final : public QDialog
25{
26 Q_OBJECT
27 Q_DISABLE_COPY_MOVE( NotificationManagerUI )
28
29 std::uint64_t active_notifications { 0 };
30
31 std::vector< Notification* > notifications() const;
32
33 public:
34
35 void setHeight();
36
37 void addNotification( Notification* notif );
38
39 void resizeEvent( QResizeEvent* ) override;
40 void moveEvent( QMoveEvent* event ) override;
41
42 explicit NotificationManagerUI( QWidget* parent = nullptr );
43 ~NotificationManagerUI() override;
44
45 private:
46
47 Ui::NotificationManagerUI* ui;
48
49 private slots:
53
54 signals:
56};
57
58#endif //ATLASGAMEMANAGER_NOTIFICATIONMANAGERUI_HPP
Definition NotificationManagerUI.hpp:25
void deleteNotification(Notification *ptr)
Definition NotificationManagerUI.cpp:118
void setHeight()
Definition NotificationManagerUI.cpp:69
std::uint64_t active_notifications
Definition NotificationManagerUI.hpp:29
std::vector< Notification * > notifications() const
Definition NotificationManagerUI.cpp:34
~NotificationManagerUI() override
Definition NotificationManagerUI.cpp:29
void on_btnClearNotifications_pressed()
Definition NotificationManagerUI.cpp:130
NotificationManagerUI(QWidget *parent=nullptr)
Definition NotificationManagerUI.cpp:17
void resizeEvent(QResizeEvent *) override
Definition NotificationManagerUI.cpp:107
Ui::NotificationManagerUI * ui
Definition NotificationManagerUI.hpp:47
void addNotification(Notification *notif)
Definition NotificationManagerUI.cpp:49
void on_btnMinimize_pressed()
Definition NotificationManagerUI.cpp:149
void moveEvent(QMoveEvent *event) override
Definition NotificationManagerUI.cpp:113
Definition Notification.hpp:19
Definition AboutAtlas.hpp:9