mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
b15a04b00a
fixes #251
43 lines
836 B
C++
43 lines
836 B
C++
#pragma once
|
|
|
|
#include <QAction>
|
|
#include <QHBoxLayout>
|
|
#include <QResizeEvent>
|
|
#include <QWidget>
|
|
|
|
#include "FlatButton.h"
|
|
#include "Menu.h"
|
|
|
|
namespace mtx {
|
|
namespace requests {
|
|
struct CreateRoom;
|
|
}
|
|
}
|
|
|
|
class SideBarActions : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SideBarActions(QWidget *parent = nullptr);
|
|
|
|
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_;
|
|
|
|
FlatButton *settingsBtn_;
|
|
FlatButton *createRoomBtn_;
|
|
FlatButton *joinRoomBtn_;
|
|
};
|