Improve message dialog texts a bit.

This commit is contained in:
Henrik Brix Andersen 2012-07-15 22:25:04 +02:00
parent 8042d5d701
commit 314772b314

View file

@ -76,7 +76,7 @@ sub do_slice {
$copies = $Slic3r::duplicate if $Slic3r::duplicate > 1; $copies = $Slic3r::duplicate if $Slic3r::duplicate > 1;
if ($copies > 1) { if ($copies > 1) {
my $confirmation = Wx::MessageDialog->new($self, "Are you sure you want to slice $copies copies?", my $confirmation = Wx::MessageDialog->new($self, "Are you sure you want to slice $copies copies?",
'Confirm', wxICON_QUESTION | wxOK | wxCANCEL); 'Multiple Copies', wxICON_QUESTION | wxOK | wxCANCEL);
return unless $confirmation->ShowModal == wxID_OK; return unless $confirmation->ShowModal == wxID_OK;
} }
@ -95,13 +95,13 @@ sub do_slice {
$last_input_file = $input_file; $last_input_file = $input_file;
} else { } else {
if (!defined $last_input_file) { if (!defined $last_input_file) {
Wx::MessageDialog->new($self, "No previously sliced file", Wx::MessageDialog->new($self, "No previously sliced file.",
'Confirm', wxICON_ERROR | wxOK)->ShowModal(); 'Error', wxICON_ERROR | wxOK)->ShowModal();
return; return;
} }
if (! -e $last_input_file) { if (! -e $last_input_file) {
Wx::MessageDialog->new($self, "Cannot find previously sliced file!", Wx::MessageDialog->new($self, "Previously sliced file ($last_input_file) not found.",
'Confirm', wxICON_ERROR | wxOK)->ShowModal(); 'File Not Found', wxICON_ERROR | wxOK)->ShowModal();
return; return;
} }
$input_file = $last_input_file; $input_file = $last_input_file;
@ -166,7 +166,7 @@ sub do_slice {
} }
$message .= "."; $message .= ".";
Slic3r::GUI::notify($message); Slic3r::GUI::notify($message);
Wx::MessageDialog->new($self, $message, 'Done!', Wx::MessageDialog->new($self, $message, 'Slicing Done!',
wxOK | wxICON_INFORMATION)->ShowModal; wxOK | wxICON_INFORMATION)->ShowModal;
}; };
Slic3r::GUI::catch_error($self, sub { $process_dialog->Destroy if $process_dialog }); Slic3r::GUI::catch_error($self, sub { $process_dialog->Destroy if $process_dialog });