Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
type_selector.h
1#pragma once
2
3#include <QWidget>
4
5#include "typing/type_reference.h"
6
7class QComboBox;
8
9namespace maki
10{
11
12class TypeSelector : public QWidget
13{
14 Q_OBJECT
15public:
16 TypeSelector(const QString& objectName, QWidget* parent = nullptr);
17
18 koda::types::TypeReference getReference() const;
19 void setReference(const koda::types::TypeReference& reference);
20
21 void setPrimitive();
22 void setEditorTitle(const QString& title);
23 void populateTypes(const koda::types::QualifiedName* currentName = nullptr);
24
25 QList<QWidget*> focusWidgets() const;
26
27signals:
28 void typeChanged(const koda::types::TypeReference& reference);
29
30protected:
31 void focusInEvent(QFocusEvent* event) override;
32
33private:
34 QComboBox* mSelector;
35 bool mUsesPrimitives;
36 QString mTitle;
37
38 QComboBox* createComboBox();
39};
40
41}; // namespace maki
Contains UI helper widgets and layout grouping utilities used by MAKI.
Definition generator.h:10