X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fmathsignal.hpp;fp=pv%2Fviews%2Ftrace%2Fmathsignal.hpp;h=6af708e502e97e752e9ddeba7f5eacb2ca7bdd59;hp=4b8fcb180e15ddf5a7a9940869596bda8e2e6fda;hb=2823de2c821f01b9b6d8df7fc972e290518075ae;hpb=5a8f700cd1adfcfc316393969d11fba8173e9bbf diff --git a/pv/views/trace/mathsignal.hpp b/pv/views/trace/mathsignal.hpp index 4b8fcb18..6af708e5 100644 --- a/pv/views/trace/mathsignal.hpp +++ b/pv/views/trace/mathsignal.hpp @@ -20,15 +20,22 @@ #ifndef PULSEVIEW_PV_VIEWS_TRACE_MATHSIGNAL_HPP #define PULSEVIEW_PV_VIEWS_TRACE_MATHSIGNAL_HPP +#include +#include + #include #include +#include #include #include #include #include +using std::pair; using std::shared_ptr; +using std::string; +using std::vector; namespace pv { namespace views { @@ -38,10 +45,15 @@ class MathEditDialog : public QDialog { Q_OBJECT +private: + static const vector< pair > Examples; + public: MathEditDialog(pv::Session &session, shared_ptr math_signal, QWidget *parent = nullptr); + void set_expr(const QString &expr); + private Q_SLOTS: void accept(); void reject(); @@ -49,7 +61,9 @@ private Q_SLOTS: private: pv::Session &session_; shared_ptr math_signal_; - QString expression_, old_expression_; + QString old_expression_; + + QPlainTextEdit *expr_edit_; };