mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 10:00:46 +03:00
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <QAction>
|
|
#include <QHBoxLayout>
|
|
#include <QResizeEvent>
|
|
#include <QWidget>
|
|
|
|
#include "FlatButton.h"
|
|
#include "Menu.h"
|
|
|
|
#include "dialogs/CreateRoom.h"
|
|
#include "dialogs/JoinRoom.h"
|
|
|
|
class OverlayModal;
|
|
|
|
class SideBarActions : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SideBarActions(QWidget *parent = nullptr);
|
|
~SideBarActions();
|
|
|
|
signals:
|
|
void showSettings();
|
|
void joinRoom(const QString &room);
|
|
void createRoom(const mtx::requests::CreateRoom &request);
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
void paintEvent(QPaintEvent *event) override;
|
|
|
|
private:
|
|
QHBoxLayout *layout_;
|
|
|
|
Menu *addMenu_;
|
|
QAction *createRoomAction_;
|
|
QAction *joinRoomAction_;
|
|
|
|
QSharedPointer<OverlayModal> joinRoomModal_;
|
|
QSharedPointer<dialogs::JoinRoom> joinRoomDialog_;
|
|
|
|
QSharedPointer<OverlayModal> createRoomModal_;
|
|
QSharedPointer<dialogs::CreateRoom> createRoomDialog_;
|
|
|
|
FlatButton *settingsBtn_;
|
|
FlatButton *createRoomBtn_;
|
|
FlatButton *joinRoomBtn_;
|
|
};
|