#pragma once #include class GButton; class GTextEditor; class GInputBox : public GDialog { C_OBJECT(GInputBox) public: explicit GInputBox(const StringView& prompt, const StringView& title, CObject* parent = nullptr); virtual ~GInputBox() override; String text_value() const { return m_text_value; } private: void build(); String m_prompt; String m_text_value; RefPtr m_ok_button; RefPtr m_cancel_button; RefPtr m_text_editor; };