# generated by wxGlade 1.1.1 on Thu Nov 20 08:12:17 2025 # # To get wxPerl visit http://www.wxperl.it # use Wx; use strict; # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # end wxGlade package ChordPro::Wx::SettingsDialog_wxg; use Wx qw[:everything]; use base qw(Wx::Dialog); use strict; use Wx::Locale gettext => '_T'; sub new { my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_; $parent = undef unless defined $parent; $id = -1 unless defined $id; $title = "" unless defined $title; $pos = wxDefaultPosition unless defined $pos; $size = wxDefaultSize unless defined $size; $name = "" unless defined $name; # begin wxGlade: ChordPro::Wx::SettingsDialog_wxg::new $style = wxDEFAULT_DIALOG_STYLE unless defined $style; $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name ); $self->SetTitle(_T("Settings")); $self->{sz_main} = Wx::BoxSizer->new(wxVERTICAL); $self->{sz_prefs_outer} = Wx::BoxSizer->new(wxVERTICAL); $self->{sz_main}->Add($self->{sz_prefs_outer}, 1, wxEXPAND, 0); $self->{nb_preferences} = Wx::Notebook->new($self, wxID_ANY); $self->{sz_prefs_outer}->Add($self->{nb_preferences}, 1, wxEXPAND|wxLEFT|wxRIGHT, 5); $self->{nb_config} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); $self->{nb_preferences}->AddPage($self->{nb_config}, _T("Presets")); $self->{sizer_1} = Wx::BoxSizer->new(wxVERTICAL); my $label_1 = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Instrument and Style Presets"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); $label_1->SetMinSize(Wx::Size->new(-1, 35)); $label_1->SetForegroundColour(Wx::Colour->new(0, 104, 217)); $label_1->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); $self->{sizer_1}->Add($label_1, 0, wxALL|wxEXPAND, 15); $self->{sizer_6} = Wx::BoxSizer->new(wxHORIZONTAL); $self->{sizer_1}->Add($self->{sizer_6}, 1, wxEXPAND|wxLEFT|wxRIGHT, 15); $self->{sz_instrument} = Wx::BoxSizer->new(wxVERTICAL); $self->{sizer_6}->Add($self->{sz_instrument}, 1, wxEXPAND|wxRIGHT, 25); my $l_instrument = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Instrument")); $l_instrument->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); $self->{sz_instrument}->Add($l_instrument, 0, wxBOTTOM|wxEXPAND, 5); $self->{ch_instrument} = Wx::Choice->new($self->{nb_config}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("Guitar"), _T("Ukulele"), _T("Mandolin"), _T("Keyboard")], ); $self->{ch_instrument}->SetMinSize(Wx::Size->new(250, -1)); $self->{ch_instrument}->SetSelection(0); $self->{sz_instrument}->Add($self->{ch_instrument}, 0, wxBOTTOM|wxEXPAND, 5); $self->{l_instrument_desc} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("\n\n"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); $self->{l_instrument_desc}->Wrap(250); $self->{sz_instrument}->Add($self->{l_instrument_desc}, 1, wxEXPAND, 0); $self->{sz_instrument}->Add(20, 20, 0, wxEXPAND, 0); my $l_style = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Style")); $l_style->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); $self->{sz_instrument}->Add($l_style, 0, wxBOTTOM|wxEXPAND, 5); $self->{ch_style} = Wx::Choice->new($self->{nb_config}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("Default")], ); $self->{ch_style}->SetMinSize(Wx::Size->new(250, -1)); $self->{ch_style}->SetSelection(0); $self->{sz_instrument}->Add($self->{ch_style}, 0, wxBOTTOM|wxEXPAND, 5); $self->{l_style_desc} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("\n\n"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); $self->{l_style_desc}->Wrap(250); $self->{sz_instrument}->Add($self->{l_style_desc}, 1, wxEXPAND, 0); $self->{sz_stylemods} = Wx::BoxSizer->new(wxVERTICAL); $self->{sizer_6}->Add($self->{sz_stylemods}, 1, wxEXPAND|wxRIGHT, 15); $self->{l_stylemods} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Style Modifiers")); $self->{l_stylemods}->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); $self->{sz_stylemods}->Add($self->{l_stylemods}, 0, wxBOTTOM, 5); use ChordPro::Wx::CheckListBox; $self->{ch_stylemods} = ChordPro::Wx::CheckListBox->new($self->{nb_config}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("None")], ); $self->{sz_stylemods}->Add($self->{ch_stylemods}, 1, wxEXPAND, 0); $self->{sz_stylemods_desc} = Wx::BoxSizer->new(wxVERTICAL); $self->{sizer_6}->Add($self->{sz_stylemods_desc}, 1, wxEXPAND|wxRIGHT, 15); my $l_spacer = Wx::StaticText->new($self->{nb_config}, wxID_ANY, ""); $l_spacer->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); $self->{sz_stylemods_desc}->Add($l_spacer, 0, wxBOTTOM|wxEXPAND, 5); $self->{l_stylemods_desc} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); $self->{l_stylemods_desc}->Wrap(250); $self->{sz_stylemods_desc}->Add($self->{l_stylemods_desc}, 1, wxBOTTOM|wxEXPAND, 10); $self->{l_stylemods_tip} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("\n\n"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); $self->{l_stylemods_tip}->Wrap(250); $self->{sz_stylemods_desc}->Add($self->{l_stylemods_tip}, 0, wxEXPAND, 0); my $static_line_2 = Wx::StaticLine->new($self->{nb_config}, wxID_ANY); $self->{sizer_1}->Add($static_line_2, 0, wxALL|wxEXPAND, 15); $self->{sz_presets} = Wx::GridBagSizer->new(15, 15); $self->{sizer_1}->Add($self->{sz_presets}, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 15); $self->{cb_configfile} = Wx::CheckBox->new($self->{nb_config}, wxID_ANY, _T("Custom Configuration File")); $self->{cb_configfile}->SetToolTip(_T("Use a custom configuration file")); $self->{sz_presets}->Add($self->{cb_configfile}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 5); $self->{sz_customconfig} = Wx::BoxSizer->new(wxHORIZONTAL); $self->{sz_presets}->Add($self->{sz_customconfig}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 2), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); use ChordPro::Wx::FileDirPickerCtrl; $self->{fp_customconfig} = ChordPro::Wx::FileDirPickerCtrl->new($self->{nb_config}, wxID_ANY, "", "Select a configuration file", "Config files (*.prp,*.json)|*.prp;*.json"); $self->{fp_customconfig}->SetToolTip(_T("Select the custom configuration file to be used")); $self->{sz_customconfig}->Add($self->{fp_customconfig}, 1, wxEXPAND|wxRIGHT, 5); $self->{b_createconfig} = Wx::Button->new($self->{nb_config}, wxID_NEW, ""); $self->{sz_customconfig}->Add($self->{b_createconfig}, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5); $self->{cb_customlib} = Wx::CheckBox->new($self->{nb_config}, wxID_ANY, _T("Custom Configuration Library")); $self->{cb_customlib}->SetToolTip(_T("Use a custom library folder with configuration files, images, templates, fonts, \N{U+2026}")); $self->{sz_presets}->Add($self->{cb_customlib}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 5); use ChordPro::Wx::FileDirPickerCtrl; $self->{dp_customlibrary} = ChordPro::Wx::FileDirPickerCtrl->new($self->{nb_config}, wxID_ANY, "", "Select a folder to be used as custom library", ""); $self->{dp_customlibrary}->SetMinSize($self->{dp_customlibrary}->ConvertDialogSizeToPixels(Wx::Size->new(-1, 12))); $self->{dp_customlibrary}->SetToolTip(_T("Use a custom library folder with configuration files, images, templates, fonts, ...")); $self->{sz_presets}->Add($self->{dp_customlibrary}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 2), wxBOTTOM|wxEXPAND, 5); $self->{cb_usestdcfg} = Wx::CheckBox->new($self->{nb_config}, wxID_ANY, _T("Use Default (system, user, song) Configuration Files")); $self->{cb_usestdcfg}->SetMinSize($self->{cb_usestdcfg}->ConvertDialogSizeToPixels(Wx::Size->new(273, 10))); $self->{cb_usestdcfg}->SetToolTip(_T("Use system, user and song configuration files, if any.")); $self->{sz_presets}->Add($self->{cb_usestdcfg}, Wx::GBPosition->new(2, 0), Wx::GBSpan->new(1, 3), wxEXPAND|wxRIGHT, 5); $self->{nb_notations} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); $self->{nb_preferences}->AddPage($self->{nb_notations}, _T("Notations")); $self->{sizer_2} = Wx::BoxSizer->new(wxVERTICAL); my $label_7 = Wx::StaticText->new($self->{nb_notations}, wxID_ANY, _T("Notations and Transcode"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); $label_7->SetMinSize(Wx::Size->new(-1, 35)); $label_7->SetForegroundColour(Wx::Colour->new(0, 104, 217)); $label_7->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); $self->{sizer_2}->Add($label_7, 0, wxALL|wxEXPAND, 15); $self->{sizer_13} = Wx::GridBagSizer->new(15, 15); $self->{sizer_2}->Add($self->{sizer_13}, 1, wxEXPAND|wxLEFT|wxRIGHT, 15); $self->{l_notation} = Wx::StaticText->new($self->{nb_notations}, wxID_ANY, _T("Notation System")); $self->{l_notation}->SetToolTip(_T("Select the desired notation system")); $self->{sizer_13}->Add($self->{l_notation}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); $self->{ch_notation} = Wx::Choice->new($self->{nb_notations}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [], ); $self->{ch_notation}->SetToolTip(_T("Select the notation system that is used in the song")); $self->{sizer_13}->Add($self->{ch_notation}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 5); $self->{cb_xcode} = Wx::CheckBox->new($self->{nb_notations}, wxID_ANY, _T("Transcode to")); $self->{cb_xcode}->SetToolTip(_T("Enable transcoding")); $self->{sizer_13}->Add($self->{cb_xcode}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{ch_xcode} = Wx::Choice->new($self->{nb_notations}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [], ); $self->{ch_xcode}->SetToolTip(_T("Select a notation system to transcode the song to")); $self->{sizer_13}->Add($self->{ch_xcode}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); my $l_xpose = Wx::StaticText->new($self->{nb_notations}, wxID_ANY, _T("Looking for transpose settings? These are moved to the Tasks > More dialog."), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); $self->{sizer_2}->Add($l_xpose, 0, wxBOTTOM|wxEXPAND, 10); $self->{nb_editor} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); $self->{nb_preferences}->AddPage($self->{nb_editor}, _T("Editor")); $self->{sizer_5} = Wx::BoxSizer->new(wxVERTICAL); my $label_3 = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Editor Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); $label_3->SetMinSize(Wx::Size->new(-1, 35)); $label_3->SetForegroundColour(Wx::Colour->new(0, 104, 217)); $label_3->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); $self->{sizer_5}->Add($label_3, 0, wxALL|wxEXPAND, 15); $self->{sizer_10} = Wx::GridBagSizer->new(10, 15); $self->{sizer_5}->Add($self->{sizer_10}, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 15); $self->{l_editor_11} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Editor Font")); $self->{sizer_10}->Add($self->{l_editor_11}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 5); $self->{fp_editor} = Wx::FontPickerCtrl->new($self->{nb_editor}, wxID_ANY, wxNullFont, wxDefaultPosition, wxDefaultSize, wxFNTP_FONTDESC_AS_LABEL | wxFNTP_USEFONT_FOR_LABEL); $self->{fp_editor}->SetToolTip(_T("Select a font and font size for the editor")); $self->{sizer_10}->Add($self->{fp_editor}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 5); $self->{cb_editorwrap} = Wx::CheckBox->new($self->{nb_editor}, wxID_ANY, _T("Wrap Lines")); $self->{cb_editorwrap}->SetToolTip(_T("Wrap lines that are too long to show")); $self->{cb_editorwrap}->SetValue(1); $self->{sizer_10}->Add($self->{cb_editorwrap}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); $self->{sz_editor_12} = Wx::BoxSizer->new(wxHORIZONTAL); $self->{sizer_10}->Add($self->{sz_editor_12}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 0); $self->{l_editorwrap} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Indentation for wrapped lines")); $self->{sz_editor_12}->Add($self->{l_editorwrap}, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5); $self->{sp_editorwrap} = Wx::SpinCtrl->new($self->{nb_editor}, wxID_ANY, "0", wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 15, 0); $self->{sp_editorwrap}->SetToolTip(_T("The amount of indentation for wrapped lines")); $self->{sz_editor_12}->Add($self->{sp_editorwrap}, 0, wxEXPAND, 0); $self->{sz_editor} = Wx::BoxSizer->new(wxHORIZONTAL); $self->{sizer_10}->Add($self->{sz_editor}, Wx::GBPosition->new(2, 0), Wx::GBSpan->new(1, 2), wxEXPAND|wxTOP, 5); require ChordPro::Wx::Editor; $self->{t_editor} = ChordPro::Wx::Editor->new($self->{nb_editor}, wxID_ANY); $self->{t_editor}->SetMinSize($self->{t_editor}->ConvertDialogSizeToPixels(Wx::Size->new(144, 50))); $self->{sz_editor}->Add($self->{t_editor}, 1, wxEXPAND|wxRIGHT, 10); $self->{sz_colours} = Wx::GridBagSizer->new(5, 5); $self->{sz_editor}->Add($self->{sz_colours}, 0, wxEXPAND, 0); my $label_6 = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Editor Colours")); $label_6->SetForegroundColour(Wx::Colour->new(0, 104, 217)); $label_6->SetFont(Wx::Font->new(13, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); $self->{sz_colours}->Add($label_6, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 2), wxALL|wxEXPAND, 5); $self->{ch_theme} = Wx::Choice->new($self->{nb_editor}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("Light Theme"), _T("Dark Theme"), _T("Follow System")], ); $self->{ch_theme}->SetToolTip(_T("Colour theme for the editor.")); $self->{ch_theme}->SetSelection(0); $self->{sz_colours}->Add($self->{ch_theme}, Wx::GBPosition->new(0, 2), Wx::GBSpan->new(1, 1), wxEXPAND, 0); $self->{l_theme} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, ""); $self->{sz_colours}->Add($self->{l_theme}, Wx::GBPosition->new(0, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_fg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_fg}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_fg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Standard text")); $self->{sz_colours}->Add($self->{l_fg}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_bg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_bg}, Wx::GBPosition->new(1, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_bg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Background")); $self->{sz_colours}->Add($self->{l_bg}, Wx::GBPosition->new(1, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_s1} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_s1}, Wx::GBPosition->new(2, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_s1} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Comments")); $self->{sz_colours}->Add($self->{l_s1}, Wx::GBPosition->new(2, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_s2} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_s2}, Wx::GBPosition->new(2, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_s2} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Keywords")); $self->{sz_colours}->Add($self->{l_s2}, Wx::GBPosition->new(2, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_s3} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_s3}, Wx::GBPosition->new(3, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_s3} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Brackets")); $self->{sz_colours}->Add($self->{l_s3}, Wx::GBPosition->new(3, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_s4} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_s4}, Wx::GBPosition->new(3, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_s4} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Chords")); $self->{sz_colours}->Add($self->{l_s4}, Wx::GBPosition->new(3, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_s5} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_s5}, Wx::GBPosition->new(4, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_s5} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Directives")); $self->{sz_colours}->Add($self->{l_s5}, Wx::GBPosition->new(4, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_s6} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_s6}, Wx::GBPosition->new(4, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_s6} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Arguments")); $self->{sz_colours}->Add($self->{l_s6}, Wx::GBPosition->new(4, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_annfg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_annfg}, Wx::GBPosition->new(5, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_annfg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Annotations")); $self->{sz_colours}->Add($self->{l_annfg}, Wx::GBPosition->new(5, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{cp_annbg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); $self->{sz_colours}->Add($self->{cp_annbg}, Wx::GBPosition->new(5, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_annbg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Ann. Background")); $self->{sz_colours}->Add($self->{l_annbg}, Wx::GBPosition->new(5, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); $self->{l_prefext} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Preferred Filename Extension")); $self->{sizer_10}->Add($self->{l_prefext}, Wx::GBPosition->new(3, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); $self->{t_prefext} = Wx::TextCtrl->new($self->{nb_editor}, wxID_ANY, ""); $self->{t_prefext}->SetToolTip(_T("The preferred filename extension to be used for ChordPro song files.\nThis extension will also be used when saving song files.")); $self->{sizer_10}->Add($self->{t_prefext}, Wx::GBPosition->new(3, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 0); $self->{cb_tmplfile} = Wx::CheckBox->new($self->{nb_editor}, wxID_ANY, _T("Template for new songs")); $self->{cb_tmplfile}->SetToolTip(_T("Use a template song for new songs")); $self->{sizer_10}->Add($self->{cb_tmplfile}, Wx::GBPosition->new(4, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); use ChordPro::Wx::FileDirPickerCtrl; $self->{fp_tmplfile} = ChordPro::Wx::FileDirPickerCtrl->new($self->{nb_editor}, wxID_ANY, "", "Select a template for new songs", "ChordPro files (*.cho,*.crd,*.chopro,*.chord,*.chordpro,*.pro)|*.cho;*.crd;*.chopro;*.chord;*.chordpro;*.pro;*.txt"); $self->{fp_tmplfile}->SetToolTip(_T("Template for new songs")); $self->{sizer_10}->Add($self->{fp_tmplfile}, Wx::GBPosition->new(4, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 0); $self->{nb_messages} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); $self->{nb_preferences}->AddPage($self->{nb_messages}, _T("Messages")); $self->{sizer_4} = Wx::BoxSizer->new(wxVERTICAL); my $label_4 = Wx::StaticText->new($self->{nb_messages}, wxID_ANY, _T("Messages Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); $label_4->SetMinSize(Wx::Size->new(-1, 35)); $label_4->SetForegroundColour(Wx::Colour->new(0, 104, 217)); $label_4->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); $self->{sizer_4}->Add($label_4, 0, wxALL|wxEXPAND, 15); $self->{sizer_11} = Wx::FlexGridSizer->new(1, 2, 15, 15); $self->{sizer_4}->Add($self->{sizer_11}, 0, wxEXPAND|wxLEFT|wxRIGHT, 15); $self->{l_messages} = Wx::StaticText->new($self->{nb_messages}, wxID_ANY, _T("Font for messages")); $self->{sizer_11}->Add($self->{l_messages}, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); $self->{fp_messages} = Wx::FontPickerCtrl->new($self->{nb_messages}, wxID_ANY, wxNullFont, wxDefaultPosition, wxDefaultSize, wxFNTP_FONTDESC_AS_LABEL | wxFNTP_USEFONT_FOR_LABEL); $self->{fp_messages}->SetToolTip(_T("Select a font and font size for the messages")); $self->{sizer_11}->Add($self->{fp_messages}, 0, wxEXPAND, 5); $self->{nb_pdf_preview} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); $self->{nb_preferences}->AddPage($self->{nb_pdf_preview}, _T("PDF Preview")); $self->{sizer_3} = Wx::BoxSizer->new(wxVERTICAL); my $label_5 = Wx::StaticText->new($self->{nb_pdf_preview}, wxID_ANY, _T("PDF Preview Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); $label_5->SetMinSize(Wx::Size->new(-1, 35)); $label_5->SetForegroundColour(Wx::Colour->new(0, 104, 217)); $label_5->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); $self->{sizer_3}->Add($label_5, 0, wxALL|wxEXPAND, 15); $self->{sizer_12} = Wx::GridBagSizer->new(15, 15); $self->{sizer_3}->Add($self->{sizer_12}, 0, wxEXPAND|wxLEFT|wxRIGHT, 15); $self->{cb_pdfviewer} = Wx::CheckBox->new($self->{nb_pdf_preview}, wxID_ANY, _T("PDF Viewer")); $self->{cb_pdfviewer}->SetToolTip(_T("Use an external program instead of the built-in PDF viewer")); $self->{sizer_12}->Add($self->{cb_pdfviewer}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); $self->{t_pdfviewer} = Wx::TextCtrl->new($self->{nb_pdf_preview}, wxID_ANY, ""); $self->{t_pdfviewer}->SetToolTip(_T("Specify the command to run the alternative PDF viewer.\n %f will be replaced by the file name\n %u will be replaced by the file URL\nLeave empty to use the system default viewer.")); $self->{sizer_12}->Add($self->{t_pdfviewer}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 5); my $label_9 = Wx::StaticText->new($self->{nb_pdf_preview}, wxID_ANY, _T("By default ChordPro will use a built-in viewer to preview the generated PDF output.\n\nIn case you want a different viewer, check the checkbox above, and fill in the command required to run the alternative PDF viewer.\n\nIn the command:\n %f will be replaced by the file name of the PDF preview file\n %u will be replaced by the URL of the PDF preview file\n"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT); $label_9->Wrap(750); $self->{sizer_3}->Add($label_9, 0, wxALL|wxEXPAND, 15); $self->{nb_html_preview} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); $self->{nb_preferences}->AddPage($self->{nb_html_preview}, _T("HTML Preview")); $self->{sizer_7} = Wx::BoxSizer->new(wxVERTICAL); my $label_8 = Wx::StaticText->new($self->{nb_html_preview}, wxID_ANY, _T("HTML Preview Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); $label_8->SetMinSize(Wx::Size->new(-1, 35)); $label_8->SetForegroundColour(Wx::Colour->new(0, 104, 217)); $label_8->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); $self->{sizer_7}->Add($label_8, 0, wxALL|wxEXPAND, 15); $self->{sizer_14} = Wx::GridBagSizer->new(15, 15); $self->{sizer_7}->Add($self->{sizer_14}, 0, wxEXPAND|wxLEFT|wxRIGHT, 15); $self->{cb_htmlviewer} = Wx::CheckBox->new($self->{nb_html_preview}, wxID_ANY, _T("Preview with HTML")); $self->{cb_htmlviewer}->SetToolTip(_T("Use HTML viewer")); $self->{sizer_14}->Add($self->{cb_htmlviewer}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); my $label_10 = Wx::StaticText->new($self->{nb_html_preview}, wxID_ANY, _T("This is experimental, under development, incomplete, buggy, and so on.\n\nIn other words, do not use it."), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT); $label_10->Wrap(750); $self->{sizer_7}->Add($label_10, 0, wxALL|wxEXPAND, 15); $self->{sz_prefs_outer}->Add(20, 5, 0, wxEXPAND|wxTOP, 0); $self->{sz_prefs_buttons} = Wx::StdDialogButtonSizer->new(); $self->{sz_prefs_outer}->Add($self->{sz_prefs_buttons}, 0, wxALIGN_RIGHT|wxBOTTOM, 5); $self->{b_prefs_cancel} = Wx::Button->new($self, wxID_CANCEL, ""); $self->{b_prefs_cancel}->SetToolTip(_T("Close the dialog, discarding changes")); $self->{sz_prefs_buttons}->AddButton($self->{b_prefs_cancel}); $self->{b_prefs_ok} = Wx::Button->new($self, wxID_OK, ""); $self->{b_prefs_ok}->SetToolTip(_T("Apply the changes and close the dialog")); $self->{b_prefs_ok}->SetDefault(); $self->{sz_prefs_buttons}->AddButton($self->{b_prefs_ok}); $self->{sz_prefs_buttons}->Realize(); $self->{nb_html_preview}->SetSizer($self->{sizer_7}); $self->{sizer_12}->AddGrowableCol(1); $self->{nb_pdf_preview}->SetSizer($self->{sizer_3}); $self->{sizer_11}->AddGrowableCol(1); $self->{nb_messages}->SetSizer($self->{sizer_4}); $self->{sz_colours}->AddGrowableCol(0); $self->{sz_colours}->AddGrowableCol(2); $self->{sizer_10}->AddGrowableCol(1); $self->{nb_editor}->SetSizer($self->{sizer_5}); $self->{sizer_13}->AddGrowableCol(1); $self->{nb_notations}->SetSizer($self->{sizer_2}); $self->{sz_presets}->AddGrowableCol(1); $self->{nb_config}->SetSizer($self->{sizer_1}); $self->SetSizer($self->{sz_main}); $self->{sz_main}->Fit($self); $self->{sz_main}->SetSizeHints($self); $self->Layout(); Wx::Event::EVT_CHOICE($self, $self->{ch_instrument}->GetId, $self->can('OnChangeInstrument')); Wx::Event::EVT_CHOICE($self, $self->{ch_style}->GetId, $self->can('OnChangeStyle')); Wx::Event::EVT_CHECKLISTBOX($self, $self->{ch_stylemods}->GetId, $self->can('OnChangeStylemods')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_configfile}->GetId, $self->can('OnConfigFile')); Wx::Event::EVT_FILEPICKER_CHANGED($self, $self->{fp_customconfig}->GetId, $self->can('OnCustomConfigChanged')); Wx::Event::EVT_BUTTON($self, $self->{b_createconfig}->GetId, $self->can('OnCreateConfig')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_customlib}->GetId, $self->can('OnCustomLib')); Wx::Event::EVT_DIRPICKER_CHANGED($self, $self->{dp_customlibrary}->GetId, $self->can('OnCustomLibChanged')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_usestdcfg}->GetId, $self->can('OnUseStdCfg')); Wx::Event::EVT_CHOICE($self, $self->{ch_notation}->GetId, $self->can('OnChNotation')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_xcode}->GetId, $self->can('OnCbTranscode')); Wx::Event::EVT_CHOICE($self, $self->{ch_xcode}->GetId, $self->can('OnChTranscode')); Wx::Event::EVT_FONTPICKER_CHANGED($self, $self->{fp_editor}->GetId, $self->can('OnEditorFontPickerChanged')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_editorwrap}->GetId, $self->can('OnEditorWrap')); Wx::Event::EVT_SPINCTRL($self, $self->{sp_editorwrap}->GetId, $self->can('OnEditorWrapIndent')); Wx::Event::EVT_CHOICE($self, $self->{ch_theme}->GetId, $self->can('OnThemeChanged')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_fg}->GetId, $self->can('OnColourFGChanged')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_bg}->GetId, $self->can('OnColourBGChanged')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s1}->GetId, $self->can('OnColourS1Changed')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s2}->GetId, $self->can('OnColourS2Changed')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s3}->GetId, $self->can('OnColourS3Changed')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s4}->GetId, $self->can('OnColourS4Changed')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s5}->GetId, $self->can('OnColourS5Changed')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s6}->GetId, $self->can('OnColourS6Changed')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_annfg}->GetId, $self->can('OnColourAnnFGChanged')); Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_annbg}->GetId, $self->can('OnColourAnnBGChanged')); Wx::Event::EVT_TEXT($self, $self->{t_prefext}->GetId, $self->can('OnPrefExtChanged')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_tmplfile}->GetId, $self->can('OnCbTmplFile')); Wx::Event::EVT_FONTPICKER_CHANGED($self, $self->{fp_messages}->GetId, $self->can('OnMessagesFontPickerChanged')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_pdfviewer}->GetId, $self->can('OnPDFViewer')); Wx::Event::EVT_CHECKBOX($self, $self->{cb_htmlviewer}->GetId, $self->can('OnHTMLViewer')); Wx::Event::EVT_BUTTON($self, $self->{b_prefs_cancel}->GetId, $self->can('OnCancel')); Wx::Event::EVT_BUTTON($self, $self->{b_prefs_ok}->GetId, $self->can('OnAccept')); # end wxGlade return $self; } sub OnChangeInstrument { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChangeInstrument warn "Event handler (OnChangeInstrument) not implemented"; $event->Skip; # end wxGlade } sub OnChangeStyle { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChangeStyle warn "Event handler (OnChangeStyle) not implemented"; $event->Skip; # end wxGlade } sub OnChangeStylemods { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChangeStylemods warn "Event handler (OnChangeStylemods) not implemented"; $event->Skip; # end wxGlade } sub OnConfigFile { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnConfigFile warn "Event handler (OnConfigFile) not implemented"; $event->Skip; # end wxGlade } sub OnCustomConfigChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCustomConfigChanged warn "Event handler (OnCustomConfigChanged) not implemented"; $event->Skip; # end wxGlade } sub OnCreateConfig { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCreateConfig warn "Event handler (OnCreateConfig) not implemented"; $event->Skip; # end wxGlade } sub OnCustomLib { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCustomLib warn "Event handler (OnCustomLib) not implemented"; $event->Skip; # end wxGlade } sub OnCustomLibChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCustomLibChanged warn "Event handler (OnCustomLibChanged) not implemented"; $event->Skip; # end wxGlade } sub OnUseStdCfg { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnUseStdCfg warn "Event handler (OnUseStdCfg) not implemented"; $event->Skip; # end wxGlade } sub OnChNotation { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChNotation warn "Event handler (OnChNotation) not implemented"; $event->Skip; # end wxGlade } sub OnCbTranscode { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCbTranscode warn "Event handler (OnCbTranscode) not implemented"; $event->Skip; # end wxGlade } sub OnChTranscode { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChTranscode warn "Event handler (OnChTranscode) not implemented"; $event->Skip; # end wxGlade } sub OnEditorFontPickerChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnEditorFontPickerChanged warn "Event handler (OnEditorFontPickerChanged) not implemented"; $event->Skip; # end wxGlade } sub OnEditorWrap { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnEditorWrap warn "Event handler (OnEditorWrap) not implemented"; $event->Skip; # end wxGlade } sub OnEditorWrapIndent { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnEditorWrapIndent warn "Event handler (OnEditorWrapIndent) not implemented"; $event->Skip; # end wxGlade } sub OnThemeChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnThemeChanged warn "Event handler (OnThemeChanged) not implemented"; $event->Skip; # end wxGlade } sub OnColourFGChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourFGChanged warn "Event handler (OnColourFGChanged) not implemented"; $event->Skip; # end wxGlade } sub OnColourBGChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourBGChanged warn "Event handler (OnColourBGChanged) not implemented"; $event->Skip; # end wxGlade } sub OnColourS1Changed { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS1Changed warn "Event handler (OnColourS1Changed) not implemented"; $event->Skip; # end wxGlade } sub OnColourS2Changed { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS2Changed warn "Event handler (OnColourS2Changed) not implemented"; $event->Skip; # end wxGlade } sub OnColourS3Changed { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS3Changed warn "Event handler (OnColourS3Changed) not implemented"; $event->Skip; # end wxGlade } sub OnColourS4Changed { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS4Changed warn "Event handler (OnColourS4Changed) not implemented"; $event->Skip; # end wxGlade } sub OnColourS5Changed { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS5Changed warn "Event handler (OnColourS5Changed) not implemented"; $event->Skip; # end wxGlade } sub OnColourS6Changed { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS6Changed warn "Event handler (OnColourS6Changed) not implemented"; $event->Skip; # end wxGlade } sub OnColourAnnFGChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourAnnFGChanged warn "Event handler (OnColourAnnFGChanged) not implemented"; $event->Skip; # end wxGlade } sub OnColourAnnBGChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourAnnBGChanged warn "Event handler (OnColourAnnBGChanged) not implemented"; $event->Skip; # end wxGlade } sub OnPrefExtChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnPrefExtChanged warn "Event handler (OnPrefExtChanged) not implemented"; $event->Skip; # end wxGlade } sub OnCbTmplFile { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCbTmplFile warn "Event handler (OnCbTmplFile) not implemented"; $event->Skip; # end wxGlade } sub OnMessagesFontPickerChanged { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnMessagesFontPickerChanged warn "Event handler (OnMessagesFontPickerChanged) not implemented"; $event->Skip; # end wxGlade } sub OnPDFViewer { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnPDFViewer warn "Event handler (OnPDFViewer) not implemented"; $event->Skip; # end wxGlade } sub OnHTMLViewer { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnHTMLViewer warn "Event handler (OnHTMLViewer) not implemented"; $event->Skip; # end wxGlade } sub OnCancel { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCancel warn "Event handler (OnCancel) not implemented"; $event->Skip; # end wxGlade } sub OnAccept { my ($self, $event) = @_; # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnAccept warn "Event handler (OnAccept) not implemented"; $event->Skip; # end wxGlade } # end of class ChordPro::Wx::SettingsDialog_wxg 1;