/* * Copyright (c) 2021, Hunter Salyer * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace HackStudio { class EvaluateExpressionDialog : public GUI::Dialog { C_OBJECT(EvaluateExpressionDialog); private: explicit EvaluateExpressionDialog(Window* parent_window); void build(Window* parent_window); void handle_evaluation(const String& expression); void set_output(const StringView& html); NonnullOwnPtr m_interpreter; RefPtr m_text_editor; RefPtr m_output_view; RefPtr m_output_container; RefPtr m_evaluate_button; RefPtr m_close_button; }; }