Refactor the profile and Cura specific import/export code, put the cura stuff in Cura itself.

Contributes to CURA-1667 Profile import/export
This commit is contained in:
Simon Edwards 2016-06-14 11:44:11 +02:00
parent c0b31d85fa
commit 175b5429b4
3 changed files with 173 additions and 2 deletions

View file

@ -264,7 +264,7 @@ UM.ManagementPage
id: importDialog;
title: catalog.i18nc("@title:window", "Import Profile");
selectExisting: true;
nameFilters: base.model.getFileNameFiltersRead()
nameFilters: base.model.getFileNameFilters("profile_reader")
folder: base.model.getDefaultPath()
onAccepted:
{
@ -291,7 +291,7 @@ UM.ManagementPage
id: exportDialog;
title: catalog.i18nc("@title:window", "Export Profile");
selectExisting: false;
nameFilters: base.model.getFileNameFiltersWrite()
nameFilters: base.model.getFileNameFilters("profile_writer")
folder: base.model.getDefaultPath()
onAccepted:
{