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.

33 lines
783 B

#ifndef JUCI_SELECTIONDIALOG_H_
#define JUCI_SELECTIONDIALOG_H_
#include "gtkmm.h"
#include "logging.h"
class SelectionDialog {
public:
SelectionDialog(Gtk::TextView& text_view);
void show();
void hide();
bool close(GdkEventFocus*);
void select(bool hide_window=true);
void move();
bool on_key_release(GdkEventKey* key);
bool on_key_press(GdkEventKey* key);
std::map<std::string, std::string> rows;
bool shown=false;
Gtk::Entry search_entry;
Glib::RefPtr<Gtk::TextBuffer::Mark> start_mark;
int start_offset;
private:
void resize();
Gtk::TextView& text_view;
std::unique_ptr<Gtk::Window> window;
std::unique_ptr<Gtk::ScrolledWindow> scrolled_window;
std::unique_ptr<Gtk::ListViewText> list_view_text;
};
#endif // JUCI_SELECTIONDIALOG_H_