#ifndef JUCI_SELECTIONDIALOG_H_ #define JUCI_SELECTIONDIALOG_H_ #include "gtkmm.h" #include "logging.h" #include "source.h" class SelectionDialog : public Gtk::Dialog { public: SelectionDialog(Gtk::TextView& text_view); void show(const std::map& rows); bool close(GdkEventFocus*); std::function on_select; private: void adjust(int current_x, int current_y); Gtk::TextView& text_view; Gtk::ScrolledWindow scrolled_window; Gtk::ListViewText list_view_text; }; #endif // JUCI_SELECTIONDIALOG_H_