mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 23:54:00 -06:00
UnsavedChangesDialog : added correct icons for the categories
+ fixed a crash when try to save changes for the SLA printer preset
This commit is contained in:
parent
e40593f2ef
commit
bcc23428fa
7 changed files with 65 additions and 19 deletions
|
@ -76,7 +76,7 @@ public:
|
|||
wxString m_new_value;
|
||||
|
||||
// preset(root) node
|
||||
ModelNode(Preset::Type preset_type, const wxString& text, wxWindow* parent_win);
|
||||
ModelNode(Preset::Type preset_type, wxWindow* parent_win, const wxString& text, const std::string& icon_name);
|
||||
|
||||
// category node
|
||||
ModelNode(ModelNode* parent, const wxString& text, const std::string& icon_name);
|
||||
|
@ -141,7 +141,8 @@ class UnsavedChangesModel : public wxDataViewModel
|
|||
wxString group_name,
|
||||
wxString option_name,
|
||||
wxString old_value,
|
||||
wxString new_value);
|
||||
wxString new_value,
|
||||
const std::string category_icon_name);
|
||||
|
||||
public:
|
||||
enum {
|
||||
|
@ -157,9 +158,9 @@ public:
|
|||
|
||||
void SetAssociatedControl(wxDataViewCtrl* ctrl) { m_ctrl = ctrl; }
|
||||
|
||||
wxDataViewItem AddPreset(Preset::Type type, wxString preset_name);
|
||||
wxDataViewItem AddPreset(Preset::Type type, wxString preset_name, PrinterTechnology pt);
|
||||
wxDataViewItem AddOption(Preset::Type type, wxString category_name, wxString group_name, wxString option_name,
|
||||
wxString old_value, wxString new_value);
|
||||
wxString old_value, wxString new_value, const std::string category_icon_name);
|
||||
|
||||
void UpdateItemEnabling(wxDataViewItem item);
|
||||
bool IsEnabledItem(const wxDataViewItem& item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue