GalleryDialog: Added context menu for custom shapes

+ Added possibility to delete custom shaped by "DELETE" key
This commit is contained in:
YuSanka 2021-10-14 12:13:21 +02:00
parent 64a3866ad5
commit aecd7e2b93
2 changed files with 52 additions and 19 deletions

View file

@ -33,10 +33,17 @@ class GalleryDialog : public DPIDialog
void load_label_icon_list();
void add_custom_shapes(wxEvent& event);
void del_custom_shapes(wxEvent& event);
void replace_custom_png(wxEvent& event);
void del_custom_shapes();
void del_custom_shapes(wxEvent& event) { del_custom_shapes(); }
void change_thumbnail();
void change_thumbnail(wxEvent& event) { change_thumbnail(); }
void select(wxListEvent& event);
void deselect(wxListEvent& event);
void show_context_menu(wxListEvent& event);
void key_down(wxListEvent& event);
bool can_delete();
bool can_change_thumbnail();
void update();