mirror of https://gitlab.com/cppit/jucipp
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.
24 lines
587 B
24 lines
587 B
#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<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; |
|
}; |
|
|
|
#endif // JUCI_SELECTIONDIALOG_H_
|