3 #include <State/Expression.hpp>
5 #include <Scenario/Inspector/ExpressionValidator.hpp>
14 struct DocumentContext;
23 class AddressAccessorEditWidget;
29 enum ExpressionEditorComparator
52 QMenu* menu =
nullptr);
55 std::optional<State::BinaryOperator> binOperator();
61 void setOperator(State::BinaryOperator o);
62 void setOperator(State::UnaryOperator u);
64 QString currentRelation();
65 QString currentOperator();
67 void enableRemoveButton(
bool);
68 void enableAddButton(
bool);
69 void enableMenuButton(
bool);
74 void editingFinished() W_SIGNAL(editingFinished);
75 void addTerm() W_SIGNAL(addTerm);
76 void removeTerm(
int index) W_SIGNAL(removeTerm, index);
79 void on_editFinished();
80 void on_comparatorChanged(
int i);
86 QComboBox* m_comparator{};
88 QComboBox* m_binOperator{};
89 QToolButton* m_rmBtn{};
90 QToolButton* m_addBtn{};
91 QToolButton* m_menuBtn{};
99 Q_DECLARE_METATYPE(Scenario::ExpressionEditorComparator)
100 W_REGISTER_ARGTYPE(Scenario::ExpressionEditorComparator)
Definition: ExpressionValidator.hpp:10
Manipulation of Devices from Qt.
Definition: AddressSettings.cpp:14
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: Relation.hpp:71
Definition: Relation.hpp:19
Definition: DocumentContext.hpp:18