2020-08-13 19:25:51 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "widgets/dialogs/switcher/AbstractSwitcherItem.hpp"
|
|
|
|
|
|
|
|
#include "singletons/WindowManager.hpp"
|
|
|
|
#include "widgets/Notebook.hpp"
|
|
|
|
#include "widgets/Window.hpp"
|
|
|
|
#include "widgets/helper/NotebookTab.hpp"
|
|
|
|
#include "widgets/splits/Split.hpp"
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class SwitchSplitItem : public AbstractSwitcherItem
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SwitchSplitItem(Split *split);
|
|
|
|
SwitchSplitItem(SplitContainer *container);
|
|
|
|
|
|
|
|
virtual void action() override;
|
|
|
|
|
2020-10-04 12:47:23 +02:00
|
|
|
virtual void paint(QPainter *painter, const QRect &rect) const override;
|
|
|
|
virtual QSize sizeHint(const QRect &rect) const override;
|
2020-08-13 19:25:51 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Split *split_{};
|
|
|
|
SplitContainer *container_{};
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|