SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
ribboncompactor.h
Go to the documentation of this file.
1#ifndef RIBBONCOMPACTOR_H
2#define RIBBONCOMPACTOR_H
3
14#include <QList>
15#include <QObject>
16#include <QPointer>
17#include <QVector>
18
19#include "ribbonlayoutsolver.h"
20
21class QToolBar;
22
23namespace openswmmvis::ui {
24
25class RibbonGroup;
26
27class RibbonCompactor : public QObject
28{
29 Q_OBJECT
30
31public:
34 RibbonCompactor(QToolBar *bar, const QList<RibbonGroup *> &groups);
35
38 void relayoutNow();
39
40protected:
41 bool eventFilter(QObject *watched, QEvent *event) override;
42
43private:
44 void scheduleRelayout();
45
46 QToolBar *mBar = nullptr;
47 QList<QPointer<RibbonGroup>> mGroups;
48 QVector<RibbonMode> mModes;
49 bool mPending = false;
50};
51
52} // namespace openswmmvis::ui
53
54#endif // RIBBONCOMPACTOR_H
Definition ribboncompactor.h:28
bool eventFilter(QObject *watched, QEvent *event) override
Definition ribboncompactor.cpp:30
void relayoutNow()
Definition ribboncompactor.cpp:57
Definition openswmmvislayer.h:43