10 ToolPopover(Gtk::Widget *parent, ActionCatalogItem::Availability av);
11 typedef sigc::signal<void, ActionToolID> type_signal_action_activated;
12 type_signal_action_activated signal_action_activated()
14 return s_signal_action_activated;
16 void set_can_begin(
const std::map<ActionToolID, bool> &can_begin);
17 void set_key_sequences(
ActionToolID action_id,
const std::vector<KeySequence> &seqs);
20 Gtk::SearchEntry *search_entry;
21 class ListColumns :
public Gtk::TreeModelColumnRecord {
25 Gtk::TreeModelColumnRecord::add(name);
26 Gtk::TreeModelColumnRecord::add(action_id);
27 Gtk::TreeModelColumnRecord::add(can_begin);
28 Gtk::TreeModelColumnRecord::add(keys);
30 Gtk::TreeModelColumn<Glib::ustring> name;
31 Gtk::TreeModelColumn<ActionToolID> action_id;
32 Gtk::TreeModelColumn<bool> can_begin;
33 Gtk::TreeModelColumn<Glib::ustring> keys;
35 ListColumns list_columns;
37 class ListColumnsGroup :
public Gtk::TreeModelColumnRecord {
41 Gtk::TreeModelColumnRecord::add(name);
42 Gtk::TreeModelColumnRecord::add(group);
44 Gtk::TreeModelColumn<Glib::ustring> name;
45 Gtk::TreeModelColumn<ActionGroup> group;
47 ListColumnsGroup list_columns_group;
49 Glib::RefPtr<Gtk::ListStore> store;
50 Glib::RefPtr<Gtk::TreeModelFilter> store_filtered;
53 Gtk::TreeView *view_group;
54 Glib::RefPtr<Gtk::ListStore> store_group;
55 Gtk::Revealer *revealer =
nullptr;
57 void emit_tool_activated();
58 type_signal_action_activated s_signal_action_activated;
59 void on_show()
override;
60 std::unique_ptr<Glib::PatternSpec> pattern;
61 ActionGroup selected_group = ActionGroup::ALL;
63 Gtk::ScrolledWindow *sc =
nullptr;