Implemented disabling of Add buttons if next layer range couldn't be added

+ Fixed "Layer ranges" expand.
This commit is contained in:
YuSanka 2020-03-12 14:50:20 +01:00
parent c145d60df4
commit 6a6790b8e7
3 changed files with 41 additions and 5 deletions

View file

@ -327,6 +327,7 @@ public:
// may have been postponed from the "kill focus" event of a text field, if the focus was lost for the "add layer" button.
// Rather providing the range by a value than by a reference, so that the memory referenced cannot be invalidated.
void add_layer_range_after_current(const t_layer_height_range current_range);
wxString can_add_new_range_after_current( t_layer_height_range current_range);
void add_layer_item (const t_layer_height_range& range,
const wxDataViewItem layers_item,
const int layer_idx = -1);