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.
19 lines
474 B
19 lines
474 B
|
11 years ago
|
#include "gtkmm.h"
|
||
|
|
#include "logging.h"
|
||
|
|
#include "source.h"
|
||
|
|
|
||
|
|
class SelectionDialog : public Gtk::Dialog {
|
||
|
|
public:
|
||
|
|
SelectionDialog(Source::View& 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);
|
||
|
|
|
||
|
|
Source::View& view;
|
||
|
|
Gtk::ScrolledWindow scrolled_window;
|
||
|
|
Gtk::ListViewText list_view_text;
|
||
|
|
};
|