9class SelectionFilterDialog :
public Gtk::Window,
public Changeable {
14 void set_work_layer(
int layer);
15 void force_work_layer_only(
bool force);
20 Gtk::ListBox *listbox =
nullptr;
24 Gtk::ToggleButton *expand_button =
nullptr;
25 Gtk::CheckButton *checkbutton =
nullptr;
26 std::map<int, Gtk::CheckButton *> layer_buttons;
27 Gtk::CheckButton *other_layer_checkbutton =
nullptr;
29 bool get_all_active();
30 bool expanded =
false;
32 bool work_layer_only_enabled =
false;
35 std::map<ObjectType, Type> checkbuttons;
36 Gtk::Button *reset_button =
nullptr;
38 void set_all(
bool state);
39 void connect_doubleclick(Gtk::CheckButton *cb);
40 Gtk::CheckButton *add_layer_button(ObjectType type,
int layer,
int index,
bool active =
true);
42 Gtk::CheckButton *work_layer_only_cb =
nullptr;
43 void update_work_layer_only();
44 bool work_layer_only_before =
false;
45 bool work_layer_only =
false;
46 std::map<ObjectType, std::set<int>> saved;
49 bool work_layer_only_before_force =
false;
51 std::map<int, Layer> last_layers;