2023-11-25 12:38:24 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2024-05-26 21:12:51 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 4.1.0-0-g733bf3d)
|
2023-11-25 12:38:24 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "widgets/bitmap_button.h"
|
|
|
|
#include "widgets/color_swatch.h"
|
|
|
|
#include "widgets/font_choice.h"
|
|
|
|
#include "widgets/wx_infobar.h"
|
|
|
|
|
|
|
|
#include "dialog_tablecell_properties_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_TABLECELL_PROPERTIES_BASE::DIALOG_TABLECELL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_infoBar = new WX_INFOBAR( this );
|
|
|
|
m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
|
|
|
|
m_infoBar->SetEffectDuration( 500 );
|
|
|
|
m_infoBar->Hide();
|
|
|
|
|
|
|
|
bMainSizer->Add( m_infoBar, 0, wxEXPAND|wxBOTTOM, 5 );
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxBoxSizer* bSizer13;
|
|
|
|
bSizer13 = new wxBoxSizer( wxVERTICAL );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxBoxSizer* bMargins;
|
|
|
|
bMargins = new wxBoxSizer( wxVERTICAL );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxFlexGridSizer* fgTextStyleSizer;
|
|
|
|
fgTextStyleSizer = new wxFlexGridSizer( 0, 2, 5, 5 );
|
|
|
|
fgTextStyleSizer->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgTextStyleSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxStaticText* hAlignLabel;
|
|
|
|
hAlignLabel = new wxStaticText( this, wxID_ANY, _("Horizontal alignment:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
hAlignLabel->Wrap( -1 );
|
|
|
|
hAlignLabel->SetToolTip( _("Horizontal alignment") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
fgTextStyleSizer->Add( hAlignLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxBoxSizer* hAlignButtons;
|
|
|
|
hAlignButtons = new wxBoxSizer( wxHORIZONTAL );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-05-26 21:12:51 +00:00
|
|
|
m_hAlignLeft = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
|
2024-02-03 13:43:41 +00:00
|
|
|
m_hAlignLeft->SetToolTip( _("Align left") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
hAlignButtons->Add( m_hAlignLeft, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-05-26 21:12:51 +00:00
|
|
|
m_hAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
|
2024-02-03 13:43:41 +00:00
|
|
|
m_hAlignCenter->SetToolTip( _("Align horizontal center") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
hAlignButtons->Add( m_hAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-05-26 21:12:51 +00:00
|
|
|
m_hAlignRight = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
|
2024-02-03 13:43:41 +00:00
|
|
|
m_hAlignRight->SetToolTip( _("Align right") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
hAlignButtons->Add( m_hAlignRight, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
fgTextStyleSizer->Add( hAlignButtons, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
vAlignLabel = new wxStaticText( this, wxID_ANY, _("Vertical alignment:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
vAlignLabel->Wrap( -1 );
|
|
|
|
vAlignLabel->SetToolTip( _("Vertical alignment") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
fgTextStyleSizer->Add( vAlignLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxBoxSizer* vAlignButtons;
|
|
|
|
vAlignButtons = new wxBoxSizer( wxHORIZONTAL );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-05-26 21:12:51 +00:00
|
|
|
m_vAlignTop = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
|
2024-02-03 13:43:41 +00:00
|
|
|
m_vAlignTop->SetToolTip( _("Align top") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
vAlignButtons->Add( m_vAlignTop, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-05-26 21:12:51 +00:00
|
|
|
m_vAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
|
2024-02-03 13:43:41 +00:00
|
|
|
m_vAlignCenter->SetToolTip( _("Align vertical center") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
vAlignButtons->Add( m_vAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-05-26 21:12:51 +00:00
|
|
|
m_vAlignBottom = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
|
2024-02-03 13:43:41 +00:00
|
|
|
m_vAlignBottom->SetToolTip( _("Align bottom") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
vAlignButtons->Add( m_vAlignBottom, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
fgTextStyleSizer->Add( vAlignButtons, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bMargins->Add( fgTextStyleSizer, 0, wxEXPAND|wxBOTTOM, 6 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxGridBagSizer* gbFontSizer;
|
|
|
|
gbFontSizer = new wxGridBagSizer( 6, 5 );
|
|
|
|
gbFontSizer->SetFlexibleDirection( wxBOTH );
|
|
|
|
gbFontSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
gbFontSizer->SetEmptyCellSize( wxSize( -1,5 ) );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_styleLabel = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_styleLabel->Wrap( -1 );
|
|
|
|
gbFontSizer->Add( m_styleLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxBoxSizer* bSizer14;
|
|
|
|
bSizer14 = new wxBoxSizer( wxHORIZONTAL );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_bold = new wxCheckBox( this, wxID_ANY, _("Bold"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
|
|
|
|
bSizer14->Add( m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_italic = new wxCheckBox( this, wxID_ANY, _("Italic"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
|
|
|
|
bSizer14->Add( m_italic, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 45 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
gbFontSizer->Add( bSizer14, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_fontLabel = new wxStaticText( this, wxID_ANY, _("Font:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2023-11-25 12:38:24 +00:00
|
|
|
m_fontLabel->Wrap( -1 );
|
2024-02-03 13:43:41 +00:00
|
|
|
gbFontSizer->Add( m_fontLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 1 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
wxString m_fontCtrlChoices[] = { _("Default Font"), _("KiCad Font") };
|
|
|
|
int m_fontCtrlNChoices = sizeof( m_fontCtrlChoices ) / sizeof( wxString );
|
2024-02-03 13:43:41 +00:00
|
|
|
m_fontCtrl = new FONT_CHOICE( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fontCtrlNChoices, m_fontCtrlChoices, 0 );
|
2023-11-25 12:38:24 +00:00
|
|
|
m_fontCtrl->SetSelection( 0 );
|
2024-02-03 13:43:41 +00:00
|
|
|
gbFontSizer->Add( m_fontCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 3 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2023-11-25 12:38:24 +00:00
|
|
|
m_textSizeLabel->Wrap( -1 );
|
2024-02-03 13:43:41 +00:00
|
|
|
gbFontSizer->Add( m_textSizeLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizer15;
|
|
|
|
bSizer15 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
|
2023-11-25 12:38:24 +00:00
|
|
|
bSizer15->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
2023-11-25 12:38:24 +00:00
|
|
|
m_textSizeUnits->Wrap( -1 );
|
|
|
|
bSizer15->Add( m_textSizeUnits, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 3 );
|
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
gbFontSizer->Add( bSizer15, wxGBPosition( 1, 1 ), wxGBSpan( 1, 3 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
gbFontSizer->AddGrowableCol( 1 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bMargins->Add( gbFontSizer, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxFlexGridSizer* fgColorSizer;
|
|
|
|
fgColorSizer = new wxFlexGridSizer( 0, 2, 4, 5 );
|
|
|
|
fgColorSizer->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgColorSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_textColorLabel = new wxStaticText( this, wxID_ANY, _("Text color:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2023-11-25 12:38:24 +00:00
|
|
|
m_textColorLabel->Wrap( -1 );
|
2024-02-03 13:43:41 +00:00
|
|
|
fgColorSizer->Add( m_textColorLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_textColorBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
wxPanel* textColorPopupPanel;
|
|
|
|
textColorPopupPanel = new wxPanel( m_textColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer20;
|
|
|
|
bSizer20 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxString m_textColorPopupChoices[] = { _("-- mixed values --"), _("Set Color...") };
|
|
|
|
int m_textColorPopupNChoices = sizeof( m_textColorPopupChoices ) / sizeof( wxString );
|
|
|
|
m_textColorPopup = new wxChoice( textColorPopupPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_textColorPopupNChoices, m_textColorPopupChoices, 0 );
|
|
|
|
m_textColorPopup->SetSelection( 0 );
|
|
|
|
bSizer20->Add( m_textColorPopup, 0, 0, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
textColorPopupPanel->SetSizer( bSizer20 );
|
|
|
|
textColorPopupPanel->Layout();
|
|
|
|
bSizer20->Fit( textColorPopupPanel );
|
|
|
|
m_textColorBook->AddPage( textColorPopupPanel, _("a page"), false );
|
|
|
|
textColorSwatchPanel = new wxPanel( m_textColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer222;
|
|
|
|
bSizer222 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
m_panelTextColor = new wxPanel( textColorSwatchPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
|
2023-11-25 12:38:24 +00:00
|
|
|
wxBoxSizer* bSizer221;
|
|
|
|
bSizer221 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_textColorSwatch = new COLOR_SWATCH( m_panelTextColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer221->Add( m_textColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
m_panelTextColor->SetSizer( bSizer221 );
|
|
|
|
m_panelTextColor->Layout();
|
|
|
|
bSizer221->Fit( m_panelTextColor );
|
2024-02-03 13:43:41 +00:00
|
|
|
bSizer222->Add( m_panelTextColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
textColorSwatchPanel->SetSizer( bSizer222 );
|
|
|
|
textColorSwatchPanel->Layout();
|
|
|
|
bSizer222->Fit( textColorSwatchPanel );
|
|
|
|
m_textColorBook->AddPage( textColorSwatchPanel, _("a page"), false );
|
|
|
|
|
|
|
|
fgColorSizer->Add( m_textColorBook, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_fillColorLabel = new wxStaticText( this, wxID_ANY, _("Background fill:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_fillColorLabel->Wrap( -1 );
|
|
|
|
fgColorSizer->Add( m_fillColorLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_fillColorBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
wxPanel* fillColorPopupPanel;
|
|
|
|
fillColorPopupPanel = new wxPanel( m_fillColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer211;
|
|
|
|
bSizer211 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxString m_fillColorPopupChoices[] = { _("-- mixed values --"), _("Set Color...") };
|
|
|
|
int m_fillColorPopupNChoices = sizeof( m_fillColorPopupChoices ) / sizeof( wxString );
|
|
|
|
m_fillColorPopup = new wxChoice( fillColorPopupPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fillColorPopupNChoices, m_fillColorPopupChoices, 0 );
|
|
|
|
m_fillColorPopup->SetSelection( 0 );
|
|
|
|
bSizer211->Add( m_fillColorPopup, 0, 0, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fillColorPopupPanel->SetSizer( bSizer211 );
|
|
|
|
fillColorPopupPanel->Layout();
|
|
|
|
bSizer211->Fit( fillColorPopupPanel );
|
|
|
|
m_fillColorBook->AddPage( fillColorPopupPanel, _("a page"), false );
|
|
|
|
fillColorSwatchPanel = new wxPanel( m_fillColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer23;
|
|
|
|
bSizer23 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
m_panelFillColor = new wxPanel( fillColorSwatchPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
|
2023-11-25 12:38:24 +00:00
|
|
|
wxBoxSizer* bSizer22;
|
|
|
|
bSizer22 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_fillColorSwatch = new COLOR_SWATCH( m_panelFillColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer22->Add( m_fillColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
m_panelFillColor->SetSizer( bSizer22 );
|
|
|
|
m_panelFillColor->Layout();
|
|
|
|
bSizer22->Fit( m_panelFillColor );
|
2024-02-03 13:43:41 +00:00
|
|
|
bSizer23->Add( m_panelFillColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
fillColorSwatchPanel->SetSizer( bSizer23 );
|
|
|
|
fillColorSwatchPanel->Layout();
|
|
|
|
bSizer23->Fit( fillColorSwatchPanel );
|
|
|
|
m_fillColorBook->AddPage( fillColorSwatchPanel, _("a page"), false );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
fgColorSizer->Add( m_fillColorBook, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bMargins->Add( fgColorSizer, 0, wxEXPAND|wxTOP|wxBOTTOM, 20 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bMargins->Add( 0, 5, 0, wxEXPAND, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxGridSizer* gMarginsSizer;
|
|
|
|
gMarginsSizer = new wxGridSizer( 0, 3, 4, 2 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
wxStaticText* marginsLabel;
|
|
|
|
marginsLabel = new wxStaticText( this, wxID_ANY, _("Cell margins:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
marginsLabel->Wrap( -1 );
|
|
|
|
gMarginsSizer->Add( marginsLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_marginTopCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
gMarginsSizer->Add( m_marginTopCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_marginTopUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_marginTopUnits->Wrap( -1 );
|
|
|
|
gMarginsSizer->Add( m_marginTopUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 2 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_marginLeftCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
gMarginsSizer->Add( m_marginLeftCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
gMarginsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_marginRightCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
gMarginsSizer->Add( m_marginRightCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
gMarginsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_marginBottomCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
gMarginsSizer->Add( m_marginBottomCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-01-20 17:05:21 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bMargins->Add( gMarginsSizer, 0, wxEXPAND, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizer13->Add( bMargins, 1, wxEXPAND|wxALL, 5 );
|
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bMainSizer->Add( bSizer13, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bButtons;
|
|
|
|
bButtons = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
m_editTable = new wxButton( this, wxID_ANY, _("Edit Table..."), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_editTable->SetToolTip( _("Edit table properties and cell contents") );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bButtons->Add( m_editTable, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
|
2024-02-03 13:43:41 +00:00
|
|
|
bButtons->Add( 0, 0, 1, wxEXPAND, 5 );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1OK );
|
|
|
|
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
|
|
|
|
m_sdbSizer1->Realize();
|
|
|
|
|
|
|
|
bButtons->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bMainSizer->Add( bButtons, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
|
|
|
bMainSizer->Fit( this );
|
|
|
|
|
|
|
|
// Connect Events
|
2024-02-03 13:43:41 +00:00
|
|
|
m_textColorPopup->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onTextColorPopup ), NULL, this );
|
|
|
|
m_fillColorPopup->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onFillColorPopup ), NULL, this );
|
|
|
|
m_editTable->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onEditTable ), NULL, this );
|
2023-11-25 12:38:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_TABLECELL_PROPERTIES_BASE::~DIALOG_TABLECELL_PROPERTIES_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2024-02-03 13:43:41 +00:00
|
|
|
m_textColorPopup->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onTextColorPopup ), NULL, this );
|
|
|
|
m_fillColorPopup->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onFillColorPopup ), NULL, this );
|
|
|
|
m_editTable->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onEditTable ), NULL, this );
|
2023-11-25 12:38:24 +00:00
|
|
|
|
|
|
|
}
|