+ Added 'Save all parameters' option to the main menu

This commit is contained in:
utak3r
2005-06-29 19:02:43 +00:00
parent 8e77ea06e8
commit 82243aaf59
3 changed files with 52 additions and 4 deletions

View File

@ -85,11 +85,13 @@ begin
else if caption = 'Save Gradient' then
warn := 'gradient'
else if caption = 'Export UPR' then
warn := 'UPR';
warn := 'UPR'
else if caption = 'Save All Parameters' then
warn := 'allparameters';
t := Trim(txtTitle.Text);
f := Trim(txtFilename.Text);
if t = '' then
if ((t = '') and txtTitle.Enabled) then
begin
Application.MessageBox(PChar('Please enter a title for the ' + warn + '.'), 'Apophysis', 48);
Exit;
@ -109,6 +111,10 @@ begin
begin
check := XMLEntryExists(t, f);
end
else if warn = 'allparameters' then
begin
check := false;
end
else
begin
t := CleanIdentifier(t);
@ -155,6 +161,12 @@ begin
SaveDialog.Title := 'Select Ultra Fractal Parameter File';
SaveDialog.DefaultExt := 'upr';
SaveDialog.Filter := 'UPR Files (*.upr)|*.upr';
end
else if caption = 'Save All Parameters' then
begin
SaveDialog.Title := 'Select Parameter File';
SaveDialog.DefaultExt := 'flame';
SaveDialog.Filter := 'Flame files (*.flame)|*.flame';
end;
SaveDialog.InitialDir := ExtractFilePath(txtFilename.Text);
if SaveDialog.Execute then