mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
62 lines
1.1 KiB
C++
62 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "util/helpers.hpp"
|
|
#include "widgets/basewindow.hpp"
|
|
#include "widgets/notebook.hpp"
|
|
|
|
//#ifdef USEWINSDK
|
|
//#include <platform/borderless/qwinwidget.h>
|
|
//#endif
|
|
|
|
#include <pajlada/settings/setting.hpp>
|
|
#include <pajlada/signals/signal.hpp>
|
|
|
|
namespace chatterino {
|
|
namespace singletons {
|
|
class ThemeManager;
|
|
} // namespace singletons
|
|
|
|
namespace widgets {
|
|
|
|
class Window : public BaseWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum WindowType { Main, Popup, Attached };
|
|
|
|
explicit Window(WindowType type);
|
|
|
|
void repaintVisibleChatWidgets(Channel *channel = nullptr);
|
|
|
|
SplitNotebook &getNotebook();
|
|
|
|
void refreshWindowTitle(const QString &username);
|
|
|
|
pajlada::Signals::NoArgSignal closed;
|
|
|
|
WindowType getType();
|
|
|
|
protected:
|
|
void closeEvent(QCloseEvent *event) override;
|
|
bool event(QEvent *event) override;
|
|
|
|
private:
|
|
RippleEffectLabel *userLabel = nullptr;
|
|
|
|
WindowType type;
|
|
float dpi;
|
|
|
|
void loadGeometry();
|
|
|
|
SplitNotebook notebook;
|
|
|
|
friend class Notebook;
|
|
|
|
public:
|
|
void save();
|
|
};
|
|
|
|
} // namespace widgets
|
|
} // namespace chatterino
|