From e024c31ce54434b7c17fd8dd4a0c4f1fd57d771e Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Sun, 24 Jun 2012 10:31:00 +0200 Subject: [PATCH] Use settings title to make save dialogs and tooltips more clear --- lib/Slic3r/GUI/Tab.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index e00a8387f..2633097b5 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -43,7 +43,7 @@ sub new { # buttons $self->{btn_save_preset} = Wx::BitmapButton->new($self, -1, Wx::Bitmap->new("$Slic3r::var/disk.png", &Wx::wxBITMAP_TYPE_PNG)); $self->{btn_delete_preset} = Wx::BitmapButton->new($self, -1, Wx::Bitmap->new("$Slic3r::var/delete.png", &Wx::wxBITMAP_TYPE_PNG)); - $self->{btn_save_preset}->SetToolTipString("Save current settings"); + $self->{btn_save_preset}->SetToolTipString("Save current " . lc($title)); $self->{btn_delete_preset}->SetToolTipString("Delete this preset"); $self->{btn_delete_preset}->Disable; @@ -88,6 +88,7 @@ sub new { $default =~ s/\.ini$//i; my $dlg = Slic3r::GUI::SavePresetWindow->new($self, + title => lc($title), default => $default, values => [ map { my $filename = basename($_); $filename =~ /^(.*?)\.ini$/i; $1 } @{$self->{presets}} ], ); @@ -500,7 +501,7 @@ sub new { my ($parent, %params) = @_; my $self = $class->SUPER::new($parent, -1, "Save preset", [-1, -1], [-1, -1]); - my $text = Wx::StaticText->new($self, -1, "Save settings as:", [-1, -1], [-1, -1]); + my $text = Wx::StaticText->new($self, -1, "Save " . lc($params{title}) . " as:", [-1, -1], [-1, -1]); $self->{combo} = Wx::ComboBox->new($self, -1, $params{default}, [-1, -1], [-1, -1], $params{values}, &Wx::wxTE_PROCESS_ENTER); my $buttons = $self->CreateStdDialogButtonSizer(&Wx::wxOK | &Wx::wxCANCEL);