You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nheko/include/SideBarActions.h

44 lines
836 B

7 years ago
#pragma once
#include <QAction>
#include <QHBoxLayout>
#include <QResizeEvent>
7 years ago
#include <QWidget>
7 years ago
#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;
7 years ago
void paintEvent(QPaintEvent *event) override;
private:
QHBoxLayout *layout_;
Menu *addMenu_;
QAction *createRoomAction_;
QAction *joinRoomAction_;
FlatButton *settingsBtn_;
FlatButton *createRoomBtn_;
FlatButton *joinRoomBtn_;
};