/* * Copyright (c) 2021, Conor Byrne * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace HackStudio { using OnCommitCallback = Function; class GitCommitDialog final : public GUI::Dialog { C_OBJECT(GitCommitDialog); public: OnCommitCallback on_commit; private: GitCommitDialog(GUI::Window* parent); RefPtr m_commit_button; RefPtr m_cancel_button; RefPtr m_message_editor; RefPtr m_line_and_col_label; }; }