FIX: modify UI of FilamentMapDialog

1. Modify dragging behavior
2. The swap button is grayed out in automatic mode
jira:none

Change-Id: Idff795bf092c4959c67d0711b0be316fba997684
(cherry picked from commit c7486e1c5e56667cab61ee9a97898f03b65b64b8)
This commit is contained in:
zhimin.zeng
2024-09-30 16:07:30 +08:00
committed by Noisyfox
parent 1658c6c54d
commit 1bcc4614b8
4 changed files with 32 additions and 10 deletions

View File

@@ -17,8 +17,8 @@ class DragDropPanel : public wxPanel
public:
DragDropPanel(wxWindow *parent, const wxString &label, bool is_auto);
void AddColorBlock(const wxColour &color, int filament_id);
void RemoveColorBlock(ColorPanel *panel);
void AddColorBlock(const wxColour &color, int filament_id, bool update_ui = true);
void RemoveColorBlock(ColorPanel *panel, bool update_ui = true);
void DoDragDrop(ColorPanel *panel, const wxColour &color, int filament_id);
std::vector<int> GetAllFilaments() const;