You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
486 B

#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<std::string, std::string>& rows);
bool close(GdkEventFocus*);
std::function<void(Gtk::ListViewText& list_view_text)> on_select;
private:
void adjust(int current_x, int current_y);
Gtk::TextView& text_view;
Gtk::ScrolledWindow scrolled_window;
Gtk::ListViewText list_view_text;
};