2011-11-12 09:51:06 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2014-10-21 15:48:00 +00:00
|
|
|
* Copyright (C) 2001 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
|
2023-03-02 14:04:37 +00:00
|
|
|
* Copyright (C) 2004-2023 KiCad Developers, see change_log.txt for contributors.
|
2011-11-12 09:51:06 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
2008-12-28 18:00:37 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
#include <widgets/bitmap_button.h>
|
2022-01-03 01:20:25 +00:00
|
|
|
#include <widgets/font_choice.h>
|
2022-06-11 19:58:12 +00:00
|
|
|
#include <widgets/color_swatch.h>
|
2020-10-31 01:27:16 +00:00
|
|
|
#include <symbol_edit_frame.h>
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <lib_text.h>
|
2020-05-23 15:50:08 +00:00
|
|
|
#include <settings/settings_manager.h>
|
2021-08-06 19:54:26 +00:00
|
|
|
#include <dialog_lib_text_properties.h>
|
2020-10-31 01:27:16 +00:00
|
|
|
#include <symbol_editor/symbol_editor_settings.h>
|
2020-12-12 03:13:52 +00:00
|
|
|
#include <tools/symbol_editor_drawing_tools.h>
|
2021-10-12 20:05:37 +00:00
|
|
|
#include <scintilla_tricks.h>
|
2022-07-11 02:37:06 +00:00
|
|
|
#include "confirm.h"
|
2008-12-28 18:00:37 +00:00
|
|
|
|
2021-08-06 19:54:26 +00:00
|
|
|
DIALOG_LIB_TEXT_PROPERTIES::DIALOG_LIB_TEXT_PROPERTIES( SYMBOL_EDIT_FRAME* aParent,
|
|
|
|
LIB_TEXT* aText ) :
|
|
|
|
DIALOG_LIB_TEXT_PROPERTIES_BASE( aParent ),
|
2022-06-11 19:58:12 +00:00
|
|
|
m_parent( aParent ),
|
|
|
|
m_graphicText( aText ),
|
2021-08-06 19:54:26 +00:00
|
|
|
m_textSize( aParent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits, true )
|
2008-12-28 18:00:37 +00:00
|
|
|
{
|
2022-06-11 19:58:12 +00:00
|
|
|
COLOR_SETTINGS* colorSettings = m_parent->GetColorSettings();
|
|
|
|
COLOR4D schematicBackground = colorSettings->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
2018-05-24 07:12:43 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_scintillaTricks = new SCINTILLA_TRICKS( m_StyledTextCtrl, wxT( "{}" ), false,
|
2023-08-02 19:11:59 +00:00
|
|
|
[this]( wxKeyEvent& aEvent )
|
2021-10-12 20:05:37 +00:00
|
|
|
{
|
|
|
|
wxPostEvent( this, wxCommandEvent( wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK ) );
|
|
|
|
} );
|
|
|
|
|
2022-01-25 22:33:37 +00:00
|
|
|
SetInitialFocus( m_StyledTextCtrl );
|
2018-05-24 07:12:43 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_separator1->SetIsSeparator();
|
|
|
|
|
2022-06-12 19:09:21 +00:00
|
|
|
m_horizontal->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_horizontal->SetBitmap( KiBitmap( BITMAPS::text_horizontal ) );
|
2022-06-12 19:09:21 +00:00
|
|
|
m_vertical->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_vertical->SetBitmap( KiBitmap( BITMAPS::text_vertical ) );
|
|
|
|
|
|
|
|
m_separator2->SetIsSeparator();
|
|
|
|
|
|
|
|
m_bold->SetIsCheckButton();
|
|
|
|
m_bold->SetBitmap( KiBitmap( BITMAPS::text_bold ) );
|
|
|
|
m_italic->SetIsCheckButton();
|
|
|
|
m_italic->SetBitmap( KiBitmap( BITMAPS::text_italic ) );
|
|
|
|
|
|
|
|
m_separator3->SetIsSeparator();
|
|
|
|
|
2022-06-12 19:09:21 +00:00
|
|
|
m_hAlignLeft->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_hAlignLeft->SetBitmap( KiBitmap( BITMAPS::text_align_left ) );
|
2022-06-12 19:09:21 +00:00
|
|
|
m_hAlignCenter->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_hAlignCenter->SetBitmap( KiBitmap( BITMAPS::text_align_center ) );
|
2022-06-12 19:09:21 +00:00
|
|
|
m_hAlignRight->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_hAlignRight->SetBitmap( KiBitmap( BITMAPS::text_align_right ) );
|
|
|
|
|
|
|
|
m_separator4->SetIsSeparator();
|
|
|
|
|
2022-06-12 19:09:21 +00:00
|
|
|
m_vAlignTop->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_vAlignTop->SetBitmap( KiBitmap( BITMAPS::text_valign_top ) );
|
2022-06-12 19:09:21 +00:00
|
|
|
m_vAlignCenter->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_vAlignCenter->SetBitmap( KiBitmap( BITMAPS::text_valign_center ) );
|
2022-06-12 19:09:21 +00:00
|
|
|
m_vAlignBottom->SetIsRadioButton();
|
2021-10-12 20:05:37 +00:00
|
|
|
m_vAlignBottom->SetBitmap( KiBitmap( BITMAPS::text_valign_bottom ) );
|
|
|
|
|
|
|
|
m_separator5->SetIsSeparator();
|
|
|
|
|
2022-06-11 19:58:12 +00:00
|
|
|
m_textColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
|
|
|
m_textColorSwatch->SetSwatchBackground( schematicBackground );
|
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_horizontal->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onOrientButton, this );
|
|
|
|
m_vertical->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onOrientButton, this );
|
|
|
|
|
|
|
|
m_hAlignLeft->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onHAlignButton, this );
|
|
|
|
m_hAlignCenter->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onHAlignButton, this );
|
|
|
|
m_hAlignRight->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onHAlignButton, this );
|
|
|
|
|
|
|
|
m_vAlignTop->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onVAlignButton, this );
|
|
|
|
m_vAlignCenter->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onVAlignButton, this );
|
|
|
|
m_vAlignBottom->Bind( wxEVT_BUTTON, &DIALOG_LIB_TEXT_PROPERTIES::onVAlignButton, this );
|
|
|
|
|
2021-11-16 19:39:58 +00:00
|
|
|
SetupStandardButtons();
|
|
|
|
|
|
|
|
if( !aParent->IsSymbolEditable() || aParent->IsSymbolAlias() )
|
|
|
|
{
|
|
|
|
m_sdbSizerButtonsCancel->SetDefault();
|
|
|
|
m_sdbSizerButtonsOK->SetLabel( _( "Read Only" ) );
|
|
|
|
m_sdbSizerButtonsOK->Enable( false );
|
|
|
|
}
|
|
|
|
|
2016-07-18 07:04:13 +00:00
|
|
|
// Now all widgets have the size fixed, call FinishDialogSettings
|
2020-11-16 11:16:44 +00:00
|
|
|
finishDialogSettings();
|
2008-12-28 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
DIALOG_LIB_TEXT_PROPERTIES::~DIALOG_LIB_TEXT_PROPERTIES()
|
|
|
|
{
|
|
|
|
delete m_scintillaTricks;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-08-06 19:54:26 +00:00
|
|
|
bool DIALOG_LIB_TEXT_PROPERTIES::TransferDataToWindow()
|
2008-12-28 18:00:37 +00:00
|
|
|
{
|
2023-03-06 12:12:11 +00:00
|
|
|
wxCHECK( m_CommonUnit, false );
|
|
|
|
|
2023-03-02 14:04:37 +00:00
|
|
|
LIB_SYMBOL* symbol = nullptr;
|
2023-02-28 20:58:58 +00:00
|
|
|
|
2017-01-23 20:30:11 +00:00
|
|
|
if( m_graphicText )
|
2009-09-04 18:57:37 +00:00
|
|
|
{
|
2023-03-02 14:04:37 +00:00
|
|
|
symbol = m_graphicText->GetParent();
|
|
|
|
|
|
|
|
wxCHECK( symbol, false );
|
|
|
|
|
2018-05-24 07:12:43 +00:00
|
|
|
m_textSize.SetValue( m_graphicText->GetTextWidth() );
|
2022-01-25 22:33:37 +00:00
|
|
|
m_StyledTextCtrl->SetValue( m_graphicText->GetText() );
|
2022-10-14 21:00:54 +00:00
|
|
|
m_StyledTextCtrl->EmptyUndoBuffer();
|
2009-09-04 18:57:37 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
m_fontCtrl->SetFontSelection( m_graphicText->GetFont() );
|
2022-06-11 19:58:12 +00:00
|
|
|
m_textColorSwatch->SetSwatchColor( m_graphicText->GetTextColor(), false );
|
2022-01-03 01:20:25 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_italic->Check( m_graphicText->IsItalic() );
|
|
|
|
m_bold->Check( m_graphicText->IsBold() );
|
2022-01-25 22:33:37 +00:00
|
|
|
|
|
|
|
m_privateCheckbox->SetValue( m_graphicText->IsPrivate() );
|
2023-02-28 20:58:58 +00:00
|
|
|
m_CommonUnit->SetValue(
|
|
|
|
symbol && symbol->GetUnitCount() > 1 && m_graphicText->GetUnit() == 0 );
|
2018-05-24 07:12:43 +00:00
|
|
|
m_CommonConvert->SetValue( m_graphicText->GetConvert() == 0 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
2021-12-28 22:13:54 +00:00
|
|
|
if( m_graphicText->GetTextAngle().IsHorizontal() )
|
2021-10-12 20:05:37 +00:00
|
|
|
m_horizontal->Check();
|
|
|
|
else
|
|
|
|
m_vertical->Check();
|
2009-09-04 18:57:37 +00:00
|
|
|
|
2013-03-18 19:36:07 +00:00
|
|
|
switch ( m_graphicText->GetHorizJustify() )
|
2009-06-11 14:26:17 +00:00
|
|
|
{
|
2021-12-28 22:13:54 +00:00
|
|
|
case GR_TEXT_H_ALIGN_LEFT: m_hAlignLeft->Check( true ); break;
|
|
|
|
case GR_TEXT_H_ALIGN_CENTER: m_hAlignCenter->Check( true ); break;
|
|
|
|
case GR_TEXT_H_ALIGN_RIGHT: m_hAlignRight->Check( true ); break;
|
2009-06-11 14:26:17 +00:00
|
|
|
}
|
|
|
|
|
2013-03-18 19:36:07 +00:00
|
|
|
switch ( m_graphicText->GetVertJustify() )
|
2009-06-11 14:26:17 +00:00
|
|
|
{
|
2021-12-28 22:13:54 +00:00
|
|
|
case GR_TEXT_V_ALIGN_TOP: m_vAlignTop->Check( true ); break;
|
|
|
|
case GR_TEXT_V_ALIGN_CENTER: m_vAlignCenter->Check( true ); break;
|
|
|
|
case GR_TEXT_V_ALIGN_BOTTOM: m_vAlignBottom->Check( true ); break;
|
2009-06-11 14:26:17 +00:00
|
|
|
}
|
2009-09-04 18:57:37 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-06-06 22:36:31 +00:00
|
|
|
SYMBOL_EDITOR_SETTINGS* cfg = m_parent->GetSettings();
|
2020-12-12 03:13:52 +00:00
|
|
|
auto* tools = m_parent->GetToolManager()->GetTool<SYMBOL_EDITOR_DRAWING_TOOLS>();
|
2023-03-03 20:39:07 +00:00
|
|
|
symbol = m_parent->GetCurSymbol();
|
2020-05-23 15:50:08 +00:00
|
|
|
|
2023-03-06 12:12:11 +00:00
|
|
|
wxCHECK( cfg && symbol && tools, false );
|
|
|
|
|
2022-09-16 23:42:20 +00:00
|
|
|
m_textSize.SetValue( schIUScale.MilsToIU( cfg->m_Defaults.text_size ) );
|
2009-09-04 18:57:37 +00:00
|
|
|
|
2023-03-06 12:12:11 +00:00
|
|
|
m_CommonUnit->SetValue( symbol->GetUnitCount() > 1 && !tools->GetDrawSpecificUnit() );
|
2020-05-23 15:50:08 +00:00
|
|
|
m_CommonConvert->SetValue( !tools->GetDrawSpecificConvert() );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
2021-12-28 22:13:54 +00:00
|
|
|
if( tools->GetLastTextAngle().IsHorizontal() )
|
2021-10-12 20:05:37 +00:00
|
|
|
m_horizontal->Check();
|
|
|
|
else
|
|
|
|
m_vertical->Check();
|
2018-05-24 07:12:43 +00:00
|
|
|
}
|
2015-04-17 18:31:30 +00:00
|
|
|
|
2023-02-28 20:58:58 +00:00
|
|
|
m_CommonUnit->Enable( symbol && symbol->GetUnitCount() > 1 );
|
|
|
|
|
2018-05-24 07:12:43 +00:00
|
|
|
return true;
|
2008-12-28 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
void DIALOG_LIB_TEXT_PROPERTIES::onOrientButton( wxCommandEvent& aEvent )
|
|
|
|
{
|
|
|
|
for( BITMAP_BUTTON* btn : { m_horizontal, m_vertical } )
|
|
|
|
{
|
|
|
|
if( btn->IsChecked() && btn != aEvent.GetEventObject() )
|
|
|
|
btn->Check( false );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void DIALOG_LIB_TEXT_PROPERTIES::onHAlignButton( wxCommandEvent& aEvent )
|
|
|
|
{
|
|
|
|
for( BITMAP_BUTTON* btn : { m_hAlignLeft, m_hAlignCenter, m_hAlignRight } )
|
|
|
|
{
|
|
|
|
if( btn->IsChecked() && btn != aEvent.GetEventObject() )
|
|
|
|
btn->Check( false );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void DIALOG_LIB_TEXT_PROPERTIES::onVAlignButton( wxCommandEvent& aEvent )
|
|
|
|
{
|
2022-06-19 19:56:13 +00:00
|
|
|
for( BITMAP_BUTTON* btn : { m_vAlignTop, m_vAlignCenter, m_vAlignBottom } )
|
2021-10-12 20:05:37 +00:00
|
|
|
{
|
|
|
|
if( btn->IsChecked() && btn != aEvent.GetEventObject() )
|
|
|
|
btn->Check( false );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-06 19:54:26 +00:00
|
|
|
bool DIALOG_LIB_TEXT_PROPERTIES::TransferDataFromWindow()
|
2008-12-28 18:00:37 +00:00
|
|
|
{
|
2012-02-21 17:47:30 +00:00
|
|
|
if( m_graphicText )
|
2009-09-04 18:57:37 +00:00
|
|
|
{
|
2022-01-25 22:33:37 +00:00
|
|
|
if( m_StyledTextCtrl->GetValue().IsEmpty() )
|
2022-07-11 02:37:06 +00:00
|
|
|
{
|
|
|
|
// Other text items do not have defined extents, and so will disappear if empty
|
|
|
|
DisplayError( this, _( "Text can not be empty." ) );
|
|
|
|
return false;
|
|
|
|
}
|
2018-05-24 07:12:43 +00:00
|
|
|
else
|
2022-07-11 02:37:06 +00:00
|
|
|
{
|
2022-01-25 22:33:37 +00:00
|
|
|
m_graphicText->SetText( m_StyledTextCtrl->GetValue() );
|
2022-07-11 02:37:06 +00:00
|
|
|
}
|
2009-09-04 18:57:37 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
if( m_fontCtrl->HaveFontSelection() )
|
|
|
|
{
|
|
|
|
m_graphicText->SetFont( m_fontCtrl->GetFontSelection( m_bold->IsChecked(),
|
|
|
|
m_italic->IsChecked() ) );
|
|
|
|
}
|
|
|
|
|
2021-09-03 18:25:23 +00:00
|
|
|
if( m_textSize.GetValue() != m_graphicText->GetTextWidth() )
|
2023-02-19 03:40:07 +00:00
|
|
|
m_graphicText->SetTextSize( VECTOR2I( m_textSize.GetValue(), m_textSize.GetValue() ) );
|
2009-09-04 18:57:37 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
if( m_horizontal->IsChecked() )
|
2022-01-13 12:29:46 +00:00
|
|
|
m_graphicText->SetTextAngle( ANGLE_HORIZONTAL );
|
2021-10-12 20:05:37 +00:00
|
|
|
else
|
2022-01-13 12:29:46 +00:00
|
|
|
m_graphicText->SetTextAngle( ANGLE_VERTICAL );
|
2020-05-23 15:50:08 +00:00
|
|
|
|
2022-01-25 22:33:37 +00:00
|
|
|
m_graphicText->SetPrivate( m_privateCheckbox->GetValue() );
|
|
|
|
|
2020-05-23 15:50:08 +00:00
|
|
|
if( !m_CommonUnit->GetValue() )
|
2012-02-21 17:47:30 +00:00
|
|
|
m_graphicText->SetUnit( m_parent->GetUnit() );
|
2009-09-04 18:57:37 +00:00
|
|
|
else
|
2012-02-21 17:47:30 +00:00
|
|
|
m_graphicText->SetUnit( 0 );
|
2009-09-04 18:57:37 +00:00
|
|
|
|
2020-05-23 15:50:08 +00:00
|
|
|
if( !m_CommonConvert->GetValue() )
|
2012-02-21 17:47:30 +00:00
|
|
|
m_graphicText->SetConvert( m_parent->GetConvert() );
|
2009-09-04 18:57:37 +00:00
|
|
|
else
|
2012-02-21 17:47:30 +00:00
|
|
|
m_graphicText->SetConvert( 0 );
|
2009-09-04 18:57:37 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_graphicText->SetItalic( m_italic->IsChecked() );
|
|
|
|
m_graphicText->SetBold( m_bold->IsChecked() );
|
2022-06-11 19:58:12 +00:00
|
|
|
m_graphicText->SetTextColor( m_textColorSwatch->GetSwatchColor() );
|
2008-12-28 18:00:37 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
if( m_hAlignLeft->IsChecked() )
|
2021-12-28 22:13:54 +00:00
|
|
|
m_graphicText->SetHorizJustify( GR_TEXT_H_ALIGN_LEFT );
|
2021-10-12 20:05:37 +00:00
|
|
|
else if( m_hAlignCenter->IsChecked() )
|
2021-12-28 22:13:54 +00:00
|
|
|
m_graphicText->SetHorizJustify( GR_TEXT_H_ALIGN_CENTER );
|
2021-10-12 20:05:37 +00:00
|
|
|
else
|
2021-12-28 22:13:54 +00:00
|
|
|
m_graphicText->SetHorizJustify( GR_TEXT_H_ALIGN_RIGHT );
|
2009-06-11 14:26:17 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
if( m_vAlignTop->IsChecked() )
|
2021-12-28 22:13:54 +00:00
|
|
|
m_graphicText->SetVertJustify( GR_TEXT_V_ALIGN_TOP );
|
2021-10-12 20:05:37 +00:00
|
|
|
else if( m_vAlignCenter->IsChecked() )
|
2021-12-28 22:13:54 +00:00
|
|
|
m_graphicText->SetVertJustify( GR_TEXT_V_ALIGN_CENTER );
|
2021-10-12 20:05:37 +00:00
|
|
|
else
|
2021-12-28 22:13:54 +00:00
|
|
|
m_graphicText->SetVertJustify( GR_TEXT_V_ALIGN_BOTTOM );
|
2020-05-23 15:50:08 +00:00
|
|
|
|
|
|
|
// Record settings used for next time:
|
2020-12-12 03:13:52 +00:00
|
|
|
auto* tools = m_parent->GetToolManager()->GetTool<SYMBOL_EDITOR_DRAWING_TOOLS>();
|
2020-05-23 15:50:08 +00:00
|
|
|
tools->SetLastTextAngle( m_graphicText->GetTextAngle() );
|
|
|
|
tools->SetDrawSpecificConvert( !m_CommonConvert->GetValue() );
|
|
|
|
tools->SetDrawSpecificUnit( !m_CommonUnit->GetValue() );
|
2009-09-04 18:57:37 +00:00
|
|
|
}
|
2008-12-28 18:00:37 +00:00
|
|
|
|
2019-05-08 18:56:03 +00:00
|
|
|
m_parent->SetMsgPanel( m_graphicText );
|
2008-12-28 18:00:37 +00:00
|
|
|
|
2018-05-24 07:12:43 +00:00
|
|
|
return true;
|
2008-12-28 18:00:37 +00:00
|
|
|
}
|
2021-10-12 20:05:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
void DIALOG_LIB_TEXT_PROPERTIES::onMultiLineTCLostFocus( wxFocusEvent& event )
|
|
|
|
{
|
|
|
|
if( m_scintillaTricks )
|
|
|
|
m_scintillaTricks->CancelAutocomplete();
|
|
|
|
|
|
|
|
event.Skip();
|
|
|
|
}
|