From 306729f3b76728280e4638240aaa1d0ef84e7f44 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 23 Jul 2018 15:48:28 +0200 Subject: [PATCH] DIALOG_ANNOTATE: fix a minor cosmetic issue, and make translation of 2 texts more easy. --- eeschema/dialogs/dialog_annotate.cpp | 4 ++-- eeschema/dialogs/dialog_annotate_base.cpp | 6 +++--- eeschema/dialogs/dialog_annotate_base.fbp | 2 +- eeschema/dialogs/dialog_annotate_base.h | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/eeschema/dialogs/dialog_annotate.cpp b/eeschema/dialogs/dialog_annotate.cpp index f56a40e02f..e6f3a7f178 100644 --- a/eeschema/dialogs/dialog_annotate.cpp +++ b/eeschema/dialogs/dialog_annotate.cpp @@ -238,10 +238,10 @@ void DIALOG_ANNOTATE::OnClearAnnotationCmpClick( wxCommandEvent& event ) else message = _( "Clear the existing annotation for the current sheet?" ); - message += _( "\n\nThis operation will clear the existing annotation and cannot \nbe undone." ); + message += _( "\n\nThis operation will clear the existing annotation and cannot be undone." ); KIDIALOG dlg( this, message, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING ); - dlg.SetOKLabel( _( "Clear" ) ); + dlg.SetOKLabel( _( "Clear Annotation" ) ); dlg.DoNotShowCheckbox(); if( dlg.ShowModal() == wxID_CANCEL ) diff --git a/eeschema/dialogs/dialog_annotate_base.cpp b/eeschema/dialogs/dialog_annotate_base.cpp index c0eec8f450..d94eacf95a 100644 --- a/eeschema/dialogs/dialog_annotate_base.cpp +++ b/eeschema/dialogs/dialog_annotate_base.cpp @@ -1,8 +1,8 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 30 2017) +// C++ code generated with wxFormBuilder (version Aug 4 2017) // http://www.wxformbuilder.org/ // -// PLEASE DO *NOT* EDIT THIS FILE! +// PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #include "wx_html_report_panel.h" @@ -124,7 +124,7 @@ DIALOG_ANNOTATE_BASE::DIALOG_ANNOTATE_BASE( wxWindow* parent, wxWindowID id, con m_buttonsSizer = new wxBoxSizer( wxHORIZONTAL ); m_btnClear = new wxButton( this, ID_CLEAR_ANNOTATION_CMP, _("Clear Annotation"), wxDefaultPosition, wxDefaultSize, 0 ); - m_buttonsSizer->Add( m_btnClear, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 ); + m_buttonsSizer->Add( m_btnClear, 0, wxEXPAND|wxALL, 10 ); m_sdbSizer1 = new wxStdDialogButtonSizer(); m_sdbSizer1OK = new wxButton( this, wxID_OK ); diff --git a/eeschema/dialogs/dialog_annotate_base.fbp b/eeschema/dialogs/dialog_annotate_base.fbp index f02e07241b..24280433f7 100644 --- a/eeschema/dialogs/dialog_annotate_base.fbp +++ b/eeschema/dialogs/dialog_annotate_base.fbp @@ -1270,7 +1270,7 @@ none 10 - wxEXPAND|wxRIGHT|wxLEFT + wxEXPAND|wxALL 0 1 diff --git a/eeschema/dialogs/dialog_annotate_base.h b/eeschema/dialogs/dialog_annotate_base.h index c69b799852..f7fab7c2e1 100644 --- a/eeschema/dialogs/dialog_annotate_base.h +++ b/eeschema/dialogs/dialog_annotate_base.h @@ -1,8 +1,8 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 30 2017) +// C++ code generated with wxFormBuilder (version Aug 4 2017) // http://www.wxformbuilder.org/ // -// PLEASE DO *NOT* EDIT THIS FILE! +// PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #ifndef __DIALOG_ANNOTATE_BASE_H__ @@ -11,6 +11,7 @@ #include #include #include +class DIALOG_SHIM; class WX_HTML_REPORT_PANEL; #include "dialog_shim.h"