Loading...
Searching...
No Matches
ScriptTabBar.hpp
1#pragma once
2#include <QTabBar>
3#include <QTabWidget>
4
5#include <score_lib_process_export.h>
6
7#include <verdigris>
8
9namespace Process
10{
18class SCORE_LIB_PROCESS_EXPORT ScriptTabBar final : public QTabBar
19{
20 W_OBJECT(ScriptTabBar)
21public:
22 using QTabBar::QTabBar;
23
24 bool flat() const noexcept { return m_flat; }
25 void setFlat(bool flat);
26
27protected:
28 void paintEvent(QPaintEvent* ev) override;
29 QSize tabSizeHint(int index) const override;
30
31private:
32 bool m_flat{};
33};
34
36class SCORE_LIB_PROCESS_EXPORT ScriptTabWidget final : public QTabWidget
37{
38 W_OBJECT(ScriptTabWidget)
39public:
40 explicit ScriptTabWidget(QWidget* parent = nullptr);
41
42 ScriptTabBar& scriptTabBar() const noexcept { return *m_bar; }
43
44private:
45 ScriptTabBar* m_bar{};
46};
47}
Tab bar of the script editors.
Definition ScriptTabBar.hpp:19
A QTabWidget with a ScriptTabBar.
Definition ScriptTabBar.hpp:37
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115