summaryrefslogtreecommitdiff
path: root/src/dialogs/textinput.hpp
blob: fd2d2b86fb266ef38f19911f27d97e04ec1bd891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once
#include <gtkmm/dialog.h>
#include <gtkmm/entry.h>

class TextInputDialog : public Gtk::Dialog {
public:
    TextInputDialog(const Glib::ustring &prompt, const Glib::ustring &title, const Glib::ustring &placeholder, Gtk::Window &parent);

    Glib::ustring GetInput() const;

private:
    Gtk::Label m_label;
    Gtk::Entry m_entry;
};