26 lines
745 B
C
26 lines
745 B
C
|
#ifndef VIEWSTACKEDBAR_H
|
||
|
#define VIEWSTACKEDBAR_H
|
||
|
|
||
|
#include <QHash>
|
||
|
#include <QToolBar>
|
||
|
#include <splitpanel.h>
|
||
|
|
||
|
namespace Components {
|
||
|
|
||
|
class ViewStackedBar : public QToolBar, public SplitFrame::FreedomViewsListener {
|
||
|
public:
|
||
|
ViewStackedBar(SplitFrame::ViewPresent *host, QWidget *parent = nullptr);
|
||
|
|
||
|
// FreedomViewsListener interface
|
||
|
public:
|
||
|
virtual void freedomAppended(SplitFrame::RectCom *ins, const QIcon &icon, const QString &title) override;
|
||
|
virtual void freedomRemoved(SplitFrame::RectCom *ins) override;
|
||
|
|
||
|
private:
|
||
|
SplitFrame::ViewPresent *const host_ptr;
|
||
|
QHash<SplitFrame::RectCom *, QAction *> freedom_views;
|
||
|
};
|
||
|
} // namespace Components
|
||
|
|
||
|
#endif // VIEWSTACKEDBAR_H
|