#pragma once #include #include #include "../json_nlohmann/json.hpp" using json = nlohmann::json; class InputBox : public Gtk::Dialog{ public: static InputBox *create(Gtk::Window &parent); InputBox(BaseObjectType *cobject, const Glib::RefPtr &ref_Glade); void set_game_time(int time); protected: void on_response(int response_id) override; private: int game_time; // Data to write to json file json data; std::vector names; std::vector times; // Builder Object Glib::RefPtr ref_builder; // Child widget Gtk::Entry *entry_name; // Signal Handlers void entry_activated(); };