| 1 | # generated by wxGlade 1.1.1 on Thu Nov 20 08:12:17 2025 | ||
| 2 | # | ||
| 3 | # To get wxPerl visit http://www.wxperl.it | ||
| 4 | # | ||
| 5 | |||
| 6 | use Wx; | ||
| 7 | use strict; | ||
| 8 | |||
| 9 | # begin wxGlade: dependencies | ||
| 10 | # end wxGlade | ||
| 11 | |||
| 12 | # begin wxGlade: extracode | ||
| 13 | # end wxGlade | ||
| 14 | |||
| 15 | package ChordPro::Wx::SettingsDialog_wxg; | ||
| 16 | |||
| 17 | use Wx qw[:everything]; | ||
| 18 | use base qw(Wx::Dialog); | ||
| 19 | use strict; | ||
| 20 | |||
| 21 | use Wx::Locale gettext => '_T'; | ||
| 22 | sub new { | ||
| 23 | my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_; | ||
| 24 | $parent = undef unless defined $parent; | ||
| 25 | $id = -1 unless defined $id; | ||
| 26 | $title = "" unless defined $title; | ||
| 27 | $pos = wxDefaultPosition unless defined $pos; | ||
| 28 | $size = wxDefaultSize unless defined $size; | ||
| 29 | $name = "" unless defined $name; | ||
| 30 | |||
| 31 | # begin wxGlade: ChordPro::Wx::SettingsDialog_wxg::new | ||
| 32 | $style = wxDEFAULT_DIALOG_STYLE | ||
| 33 | unless defined $style; | ||
| 34 | |||
| 35 | $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name ); | ||
| 36 | $self->SetTitle(_T("Settings")); | ||
| 37 | |||
| 38 | $self->{sz_main} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 39 | |||
| 40 | $self->{sz_prefs_outer} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 41 | $self->{sz_main}->Add($self->{sz_prefs_outer}, 1, wxEXPAND, 0); | ||
| 42 | |||
| 43 | $self->{nb_preferences} = Wx::Notebook->new($self, wxID_ANY); | ||
| 44 | $self->{sz_prefs_outer}->Add($self->{nb_preferences}, 1, wxEXPAND|wxLEFT|wxRIGHT, 5); | ||
| 45 | |||
| 46 | $self->{nb_config} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); | ||
| 47 | $self->{nb_preferences}->AddPage($self->{nb_config}, _T("Presets")); | ||
| 48 | |||
| 49 | $self->{sizer_1} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 50 | |||
| 51 | my $label_1 = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Instrument and Style Presets"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); | ||
| 52 | $label_1->SetMinSize(Wx::Size->new(-1, 35)); | ||
| 53 | $label_1->SetForegroundColour(Wx::Colour->new(0, 104, 217)); | ||
| 54 | $label_1->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); | ||
| 55 | $self->{sizer_1}->Add($label_1, 0, wxALL|wxEXPAND, 15); | ||
| 56 | |||
| 57 | $self->{sizer_6} = Wx::BoxSizer->new(wxHORIZONTAL); | ||
| 58 | $self->{sizer_1}->Add($self->{sizer_6}, 1, wxEXPAND|wxLEFT|wxRIGHT, 15); | ||
| 59 | |||
| 60 | $self->{sz_instrument} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 61 | $self->{sizer_6}->Add($self->{sz_instrument}, 1, wxEXPAND|wxRIGHT, 25); | ||
| 62 | |||
| 63 | my $l_instrument = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Instrument")); | ||
| 64 | $l_instrument->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); | ||
| 65 | $self->{sz_instrument}->Add($l_instrument, 0, wxBOTTOM|wxEXPAND, 5); | ||
| 66 | |||
| 67 | $self->{ch_instrument} = Wx::Choice->new($self->{nb_config}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("Guitar"), _T("Ukulele"), _T("Mandolin"), _T("Keyboard")], ); | ||
| 68 | $self->{ch_instrument}->SetMinSize(Wx::Size->new(250, -1)); | ||
| 69 | $self->{ch_instrument}->SetSelection(0); | ||
| 70 | $self->{sz_instrument}->Add($self->{ch_instrument}, 0, wxBOTTOM|wxEXPAND, 5); | ||
| 71 | |||
| 72 | $self->{l_instrument_desc} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("\n\n"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); | ||
| 73 | $self->{l_instrument_desc}->Wrap(250); | ||
| 74 | $self->{sz_instrument}->Add($self->{l_instrument_desc}, 1, wxEXPAND, 0); | ||
| 75 | |||
| 76 | $self->{sz_instrument}->Add(20, 20, 0, wxEXPAND, 0); | ||
| 77 | |||
| 78 | my $l_style = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Style")); | ||
| 79 | $l_style->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); | ||
| 80 | $self->{sz_instrument}->Add($l_style, 0, wxBOTTOM|wxEXPAND, 5); | ||
| 81 | |||
| 82 | $self->{ch_style} = Wx::Choice->new($self->{nb_config}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("Default")], ); | ||
| 83 | $self->{ch_style}->SetMinSize(Wx::Size->new(250, -1)); | ||
| 84 | $self->{ch_style}->SetSelection(0); | ||
| 85 | $self->{sz_instrument}->Add($self->{ch_style}, 0, wxBOTTOM|wxEXPAND, 5); | ||
| 86 | |||
| 87 | $self->{l_style_desc} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("\n\n"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); | ||
| 88 | $self->{l_style_desc}->Wrap(250); | ||
| 89 | $self->{sz_instrument}->Add($self->{l_style_desc}, 1, wxEXPAND, 0); | ||
| 90 | |||
| 91 | $self->{sz_stylemods} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 92 | $self->{sizer_6}->Add($self->{sz_stylemods}, 1, wxEXPAND|wxRIGHT, 15); | ||
| 93 | |||
| 94 | $self->{l_stylemods} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("Style Modifiers")); | ||
| 95 | $self->{l_stylemods}->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); | ||
| 96 | $self->{sz_stylemods}->Add($self->{l_stylemods}, 0, wxBOTTOM, 5); | ||
| 97 | |||
| 98 | use ChordPro::Wx::CheckListBox; | ||
| 99 | $self->{ch_stylemods} = ChordPro::Wx::CheckListBox->new($self->{nb_config}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("None")], ); | ||
| 100 | $self->{sz_stylemods}->Add($self->{ch_stylemods}, 1, wxEXPAND, 0); | ||
| 101 | |||
| 102 | $self->{sz_stylemods_desc} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 103 | $self->{sizer_6}->Add($self->{sz_stylemods_desc}, 1, wxEXPAND|wxRIGHT, 15); | ||
| 104 | |||
| 105 | my $l_spacer = Wx::StaticText->new($self->{nb_config}, wxID_ANY, ""); | ||
| 106 | $l_spacer->SetFont(Wx::Font->new(11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, 0, "")); | ||
| 107 | $self->{sz_stylemods_desc}->Add($l_spacer, 0, wxBOTTOM|wxEXPAND, 5); | ||
| 108 | |||
| 109 | $self->{l_stylemods_desc} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); | ||
| 110 | $self->{l_stylemods_desc}->Wrap(250); | ||
| 111 | $self->{sz_stylemods_desc}->Add($self->{l_stylemods_desc}, 1, wxBOTTOM|wxEXPAND, 10); | ||
| 112 | |||
| 113 | $self->{l_stylemods_tip} = Wx::StaticText->new($self->{nb_config}, wxID_ANY, _T("\n\n"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); | ||
| 114 | $self->{l_stylemods_tip}->Wrap(250); | ||
| 115 | $self->{sz_stylemods_desc}->Add($self->{l_stylemods_tip}, 0, wxEXPAND, 0); | ||
| 116 | |||
| 117 | my $static_line_2 = Wx::StaticLine->new($self->{nb_config}, wxID_ANY); | ||
| 118 | $self->{sizer_1}->Add($static_line_2, 0, wxALL|wxEXPAND, 15); | ||
| 119 | |||
| 120 | $self->{sz_presets} = Wx::GridBagSizer->new(15, 15); | ||
| 121 | $self->{sizer_1}->Add($self->{sz_presets}, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 15); | ||
| 122 | |||
| 123 | $self->{cb_configfile} = Wx::CheckBox->new($self->{nb_config}, wxID_ANY, _T("Custom Configuration File")); | ||
| 124 | $self->{cb_configfile}->SetToolTip(_T("Use a custom configuration file")); | ||
| 125 | $self->{sz_presets}->Add($self->{cb_configfile}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 5); | ||
| 126 | |||
| 127 | $self->{sz_customconfig} = Wx::BoxSizer->new(wxHORIZONTAL); | ||
| 128 | $self->{sz_presets}->Add($self->{sz_customconfig}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 2), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 129 | |||
| 130 | use ChordPro::Wx::FileDirPickerCtrl; | ||
| 131 | $self->{fp_customconfig} = ChordPro::Wx::FileDirPickerCtrl->new($self->{nb_config}, wxID_ANY, "", "Select a configuration file", "Config files (*.prp,*.json)|*.prp;*.json"); | ||
| 132 | $self->{fp_customconfig}->SetToolTip(_T("Select the custom configuration file to be used")); | ||
| 133 | $self->{sz_customconfig}->Add($self->{fp_customconfig}, 1, wxEXPAND|wxRIGHT, 5); | ||
| 134 | |||
| 135 | $self->{b_createconfig} = Wx::Button->new($self->{nb_config}, wxID_NEW, ""); | ||
| 136 | $self->{sz_customconfig}->Add($self->{b_createconfig}, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5); | ||
| 137 | |||
| 138 | $self->{cb_customlib} = Wx::CheckBox->new($self->{nb_config}, wxID_ANY, _T("Custom Configuration Library")); | ||
| 139 | $self->{cb_customlib}->SetToolTip(_T("Use a custom library folder with configuration files, images, templates, fonts, \N{U+2026}")); | ||
| 140 | $self->{sz_presets}->Add($self->{cb_customlib}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 5); | ||
| 141 | |||
| 142 | use ChordPro::Wx::FileDirPickerCtrl; | ||
| 143 | $self->{dp_customlibrary} = ChordPro::Wx::FileDirPickerCtrl->new($self->{nb_config}, wxID_ANY, "", "Select a folder to be used as custom library", ""); | ||
| 144 | $self->{dp_customlibrary}->SetMinSize($self->{dp_customlibrary}->ConvertDialogSizeToPixels(Wx::Size->new(-1, 12))); | ||
| 145 | $self->{dp_customlibrary}->SetToolTip(_T("Use a custom library folder with configuration files, images, templates, fonts, ...")); | ||
| 146 | $self->{sz_presets}->Add($self->{dp_customlibrary}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 2), wxBOTTOM|wxEXPAND, 5); | ||
| 147 | |||
| 148 | $self->{cb_usestdcfg} = Wx::CheckBox->new($self->{nb_config}, wxID_ANY, _T("Use Default (system, user, song) Configuration Files")); | ||
| 149 | $self->{cb_usestdcfg}->SetMinSize($self->{cb_usestdcfg}->ConvertDialogSizeToPixels(Wx::Size->new(273, 10))); | ||
| 150 | $self->{cb_usestdcfg}->SetToolTip(_T("Use system, user and song configuration files, if any.")); | ||
| 151 | $self->{sz_presets}->Add($self->{cb_usestdcfg}, Wx::GBPosition->new(2, 0), Wx::GBSpan->new(1, 3), wxEXPAND|wxRIGHT, 5); | ||
| 152 | |||
| 153 | $self->{nb_notations} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); | ||
| 154 | $self->{nb_preferences}->AddPage($self->{nb_notations}, _T("Notations")); | ||
| 155 | |||
| 156 | $self->{sizer_2} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 157 | |||
| 158 | my $label_7 = Wx::StaticText->new($self->{nb_notations}, wxID_ANY, _T("Notations and Transcode"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); | ||
| 159 | $label_7->SetMinSize(Wx::Size->new(-1, 35)); | ||
| 160 | $label_7->SetForegroundColour(Wx::Colour->new(0, 104, 217)); | ||
| 161 | $label_7->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); | ||
| 162 | $self->{sizer_2}->Add($label_7, 0, wxALL|wxEXPAND, 15); | ||
| 163 | |||
| 164 | $self->{sizer_13} = Wx::GridBagSizer->new(15, 15); | ||
| 165 | $self->{sizer_2}->Add($self->{sizer_13}, 1, wxEXPAND|wxLEFT|wxRIGHT, 15); | ||
| 166 | |||
| 167 | $self->{l_notation} = Wx::StaticText->new($self->{nb_notations}, wxID_ANY, _T("Notation System")); | ||
| 168 | $self->{l_notation}->SetToolTip(_T("Select the desired notation system")); | ||
| 169 | $self->{sizer_13}->Add($self->{l_notation}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); | ||
| 170 | |||
| 171 | $self->{ch_notation} = Wx::Choice->new($self->{nb_notations}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [], ); | ||
| 172 | $self->{ch_notation}->SetToolTip(_T("Select the notation system that is used in the song")); | ||
| 173 | $self->{sizer_13}->Add($self->{ch_notation}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 5); | ||
| 174 | |||
| 175 | $self->{cb_xcode} = Wx::CheckBox->new($self->{nb_notations}, wxID_ANY, _T("Transcode to")); | ||
| 176 | $self->{cb_xcode}->SetToolTip(_T("Enable transcoding")); | ||
| 177 | $self->{sizer_13}->Add($self->{cb_xcode}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 178 | |||
| 179 | $self->{ch_xcode} = Wx::Choice->new($self->{nb_notations}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [], ); | ||
| 180 | $self->{ch_xcode}->SetToolTip(_T("Select a notation system to transcode the song to")); | ||
| 181 | $self->{sizer_13}->Add($self->{ch_xcode}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); | ||
| 182 | |||
| 183 | 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); | ||
| 184 | $self->{sizer_2}->Add($l_xpose, 0, wxBOTTOM|wxEXPAND, 10); | ||
| 185 | |||
| 186 | $self->{nb_editor} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); | ||
| 187 | $self->{nb_preferences}->AddPage($self->{nb_editor}, _T("Editor")); | ||
| 188 | |||
| 189 | $self->{sizer_5} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 190 | |||
| 191 | my $label_3 = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Editor Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); | ||
| 192 | $label_3->SetMinSize(Wx::Size->new(-1, 35)); | ||
| 193 | $label_3->SetForegroundColour(Wx::Colour->new(0, 104, 217)); | ||
| 194 | $label_3->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); | ||
| 195 | $self->{sizer_5}->Add($label_3, 0, wxALL|wxEXPAND, 15); | ||
| 196 | |||
| 197 | $self->{sizer_10} = Wx::GridBagSizer->new(10, 15); | ||
| 198 | $self->{sizer_5}->Add($self->{sizer_10}, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 15); | ||
| 199 | |||
| 200 | $self->{l_editor_11} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Editor Font")); | ||
| 201 | $self->{sizer_10}->Add($self->{l_editor_11}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 5); | ||
| 202 | |||
| 203 | $self->{fp_editor} = Wx::FontPickerCtrl->new($self->{nb_editor}, wxID_ANY, wxNullFont, wxDefaultPosition, wxDefaultSize, wxFNTP_FONTDESC_AS_LABEL | wxFNTP_USEFONT_FOR_LABEL); | ||
| 204 | $self->{fp_editor}->SetToolTip(_T("Select a font and font size for the editor")); | ||
| 205 | $self->{sizer_10}->Add($self->{fp_editor}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 5); | ||
| 206 | |||
| 207 | $self->{cb_editorwrap} = Wx::CheckBox->new($self->{nb_editor}, wxID_ANY, _T("Wrap Lines")); | ||
| 208 | $self->{cb_editorwrap}->SetToolTip(_T("Wrap lines that are too long to show")); | ||
| 209 | $self->{cb_editorwrap}->SetValue(1); | ||
| 210 | $self->{sizer_10}->Add($self->{cb_editorwrap}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); | ||
| 211 | |||
| 212 | $self->{sz_editor_12} = Wx::BoxSizer->new(wxHORIZONTAL); | ||
| 213 | $self->{sizer_10}->Add($self->{sz_editor_12}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 0); | ||
| 214 | |||
| 215 | $self->{l_editorwrap} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Indentation for wrapped lines")); | ||
| 216 | $self->{sz_editor_12}->Add($self->{l_editorwrap}, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5); | ||
| 217 | |||
| 218 | $self->{sp_editorwrap} = Wx::SpinCtrl->new($self->{nb_editor}, wxID_ANY, "0", wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 15, 0); | ||
| 219 | $self->{sp_editorwrap}->SetToolTip(_T("The amount of indentation for wrapped lines")); | ||
| 220 | $self->{sz_editor_12}->Add($self->{sp_editorwrap}, 0, wxEXPAND, 0); | ||
| 221 | |||
| 222 | $self->{sz_editor} = Wx::BoxSizer->new(wxHORIZONTAL); | ||
| 223 | $self->{sizer_10}->Add($self->{sz_editor}, Wx::GBPosition->new(2, 0), Wx::GBSpan->new(1, 2), wxEXPAND|wxTOP, 5); | ||
| 224 | |||
| 225 | require ChordPro::Wx::Editor; | ||
| 226 | $self->{t_editor} = ChordPro::Wx::Editor->new($self->{nb_editor}, wxID_ANY); | ||
| 227 | $self->{t_editor}->SetMinSize($self->{t_editor}->ConvertDialogSizeToPixels(Wx::Size->new(144, 50))); | ||
| 228 | $self->{sz_editor}->Add($self->{t_editor}, 1, wxEXPAND|wxRIGHT, 10); | ||
| 229 | |||
| 230 | $self->{sz_colours} = Wx::GridBagSizer->new(5, 5); | ||
| 231 | $self->{sz_editor}->Add($self->{sz_colours}, 0, wxEXPAND, 0); | ||
| 232 | |||
| 233 | my $label_6 = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Editor Colours")); | ||
| 234 | $label_6->SetForegroundColour(Wx::Colour->new(0, 104, 217)); | ||
| 235 | $label_6->SetFont(Wx::Font->new(13, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); | ||
| 236 | $self->{sz_colours}->Add($label_6, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 2), wxALL|wxEXPAND, 5); | ||
| 237 | |||
| 238 | $self->{ch_theme} = Wx::Choice->new($self->{nb_editor}, wxID_ANY, wxDefaultPosition, wxDefaultSize, [_T("Light Theme"), _T("Dark Theme"), _T("Follow System")], ); | ||
| 239 | $self->{ch_theme}->SetToolTip(_T("Colour theme for the editor.")); | ||
| 240 | $self->{ch_theme}->SetSelection(0); | ||
| 241 | $self->{sz_colours}->Add($self->{ch_theme}, Wx::GBPosition->new(0, 2), Wx::GBSpan->new(1, 1), wxEXPAND, 0); | ||
| 242 | |||
| 243 | $self->{l_theme} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, ""); | ||
| 244 | $self->{sz_colours}->Add($self->{l_theme}, Wx::GBPosition->new(0, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 245 | |||
| 246 | $self->{cp_fg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 247 | $self->{sz_colours}->Add($self->{cp_fg}, Wx::GBPosition->new(1, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 248 | |||
| 249 | $self->{l_fg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Standard text")); | ||
| 250 | $self->{sz_colours}->Add($self->{l_fg}, Wx::GBPosition->new(1, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 251 | |||
| 252 | $self->{cp_bg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 253 | $self->{sz_colours}->Add($self->{cp_bg}, Wx::GBPosition->new(1, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 254 | |||
| 255 | $self->{l_bg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Background")); | ||
| 256 | $self->{sz_colours}->Add($self->{l_bg}, Wx::GBPosition->new(1, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 257 | |||
| 258 | $self->{cp_s1} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 259 | $self->{sz_colours}->Add($self->{cp_s1}, Wx::GBPosition->new(2, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 260 | |||
| 261 | $self->{l_s1} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Comments")); | ||
| 262 | $self->{sz_colours}->Add($self->{l_s1}, Wx::GBPosition->new(2, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 263 | |||
| 264 | $self->{cp_s2} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 265 | $self->{sz_colours}->Add($self->{cp_s2}, Wx::GBPosition->new(2, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 266 | |||
| 267 | $self->{l_s2} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Keywords")); | ||
| 268 | $self->{sz_colours}->Add($self->{l_s2}, Wx::GBPosition->new(2, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 269 | |||
| 270 | $self->{cp_s3} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 271 | $self->{sz_colours}->Add($self->{cp_s3}, Wx::GBPosition->new(3, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 272 | |||
| 273 | $self->{l_s3} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Brackets")); | ||
| 274 | $self->{sz_colours}->Add($self->{l_s3}, Wx::GBPosition->new(3, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 275 | |||
| 276 | $self->{cp_s4} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 277 | $self->{sz_colours}->Add($self->{cp_s4}, Wx::GBPosition->new(3, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 278 | |||
| 279 | $self->{l_s4} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Chords")); | ||
| 280 | $self->{sz_colours}->Add($self->{l_s4}, Wx::GBPosition->new(3, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 281 | |||
| 282 | $self->{cp_s5} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 283 | $self->{sz_colours}->Add($self->{cp_s5}, Wx::GBPosition->new(4, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 284 | |||
| 285 | $self->{l_s5} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Directives")); | ||
| 286 | $self->{sz_colours}->Add($self->{l_s5}, Wx::GBPosition->new(4, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 287 | |||
| 288 | $self->{cp_s6} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 289 | $self->{sz_colours}->Add($self->{cp_s6}, Wx::GBPosition->new(4, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 290 | |||
| 291 | $self->{l_s6} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Arguments")); | ||
| 292 | $self->{sz_colours}->Add($self->{l_s6}, Wx::GBPosition->new(4, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 293 | |||
| 294 | $self->{cp_annfg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 295 | $self->{sz_colours}->Add($self->{cp_annfg}, Wx::GBPosition->new(5, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 296 | |||
| 297 | $self->{l_annfg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Annotations")); | ||
| 298 | $self->{sz_colours}->Add($self->{l_annfg}, Wx::GBPosition->new(5, 1), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 299 | |||
| 300 | $self->{cp_annbg} = Wx::ColourPickerCtrl->new($self->{nb_editor}, wxID_ANY); | ||
| 301 | $self->{sz_colours}->Add($self->{cp_annbg}, Wx::GBPosition->new(5, 2), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 302 | |||
| 303 | $self->{l_annbg} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Ann. Background")); | ||
| 304 | $self->{sz_colours}->Add($self->{l_annbg}, Wx::GBPosition->new(5, 3), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 0); | ||
| 305 | |||
| 306 | $self->{l_prefext} = Wx::StaticText->new($self->{nb_editor}, wxID_ANY, _T("Preferred Filename Extension")); | ||
| 307 | $self->{sizer_10}->Add($self->{l_prefext}, Wx::GBPosition->new(3, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); | ||
| 308 | |||
| 309 | $self->{t_prefext} = Wx::TextCtrl->new($self->{nb_editor}, wxID_ANY, ""); | ||
| 310 | $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.")); | ||
| 311 | $self->{sizer_10}->Add($self->{t_prefext}, Wx::GBPosition->new(3, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 0); | ||
| 312 | |||
| 313 | $self->{cb_tmplfile} = Wx::CheckBox->new($self->{nb_editor}, wxID_ANY, _T("Template for new songs")); | ||
| 314 | $self->{cb_tmplfile}->SetToolTip(_T("Use a template song for new songs")); | ||
| 315 | $self->{sizer_10}->Add($self->{cb_tmplfile}, Wx::GBPosition->new(4, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); | ||
| 316 | |||
| 317 | use ChordPro::Wx::FileDirPickerCtrl; | ||
| 318 | $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"); | ||
| 319 | $self->{fp_tmplfile}->SetToolTip(_T("Template for new songs")); | ||
| 320 | $self->{sizer_10}->Add($self->{fp_tmplfile}, Wx::GBPosition->new(4, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 0); | ||
| 321 | |||
| 322 | $self->{nb_messages} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); | ||
| 323 | $self->{nb_preferences}->AddPage($self->{nb_messages}, _T("Messages")); | ||
| 324 | |||
| 325 | $self->{sizer_4} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 326 | |||
| 327 | my $label_4 = Wx::StaticText->new($self->{nb_messages}, wxID_ANY, _T("Messages Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); | ||
| 328 | $label_4->SetMinSize(Wx::Size->new(-1, 35)); | ||
| 329 | $label_4->SetForegroundColour(Wx::Colour->new(0, 104, 217)); | ||
| 330 | $label_4->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); | ||
| 331 | $self->{sizer_4}->Add($label_4, 0, wxALL|wxEXPAND, 15); | ||
| 332 | |||
| 333 | $self->{sizer_11} = Wx::FlexGridSizer->new(1, 2, 15, 15); | ||
| 334 | $self->{sizer_4}->Add($self->{sizer_11}, 0, wxEXPAND|wxLEFT|wxRIGHT, 15); | ||
| 335 | |||
| 336 | $self->{l_messages} = Wx::StaticText->new($self->{nb_messages}, wxID_ANY, _T("Font for messages")); | ||
| 337 | $self->{sizer_11}->Add($self->{l_messages}, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5); | ||
| 338 | |||
| 339 | $self->{fp_messages} = Wx::FontPickerCtrl->new($self->{nb_messages}, wxID_ANY, wxNullFont, wxDefaultPosition, wxDefaultSize, wxFNTP_FONTDESC_AS_LABEL | wxFNTP_USEFONT_FOR_LABEL); | ||
| 340 | $self->{fp_messages}->SetToolTip(_T("Select a font and font size for the messages")); | ||
| 341 | $self->{sizer_11}->Add($self->{fp_messages}, 0, wxEXPAND, 5); | ||
| 342 | |||
| 343 | $self->{nb_pdf_preview} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); | ||
| 344 | $self->{nb_preferences}->AddPage($self->{nb_pdf_preview}, _T("PDF Preview")); | ||
| 345 | |||
| 346 | $self->{sizer_3} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 347 | |||
| 348 | my $label_5 = Wx::StaticText->new($self->{nb_pdf_preview}, wxID_ANY, _T("PDF Preview Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); | ||
| 349 | $label_5->SetMinSize(Wx::Size->new(-1, 35)); | ||
| 350 | $label_5->SetForegroundColour(Wx::Colour->new(0, 104, 217)); | ||
| 351 | $label_5->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); | ||
| 352 | $self->{sizer_3}->Add($label_5, 0, wxALL|wxEXPAND, 15); | ||
| 353 | |||
| 354 | $self->{sizer_12} = Wx::GridBagSizer->new(15, 15); | ||
| 355 | $self->{sizer_3}->Add($self->{sizer_12}, 0, wxEXPAND|wxLEFT|wxRIGHT, 15); | ||
| 356 | |||
| 357 | $self->{cb_pdfviewer} = Wx::CheckBox->new($self->{nb_pdf_preview}, wxID_ANY, _T("PDF Viewer")); | ||
| 358 | $self->{cb_pdfviewer}->SetToolTip(_T("Use an external program instead of the built-in PDF viewer")); | ||
| 359 | $self->{sizer_12}->Add($self->{cb_pdfviewer}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); | ||
| 360 | |||
| 361 | $self->{t_pdfviewer} = Wx::TextCtrl->new($self->{nb_pdf_preview}, wxID_ANY, ""); | ||
| 362 | $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.")); | ||
| 363 | $self->{sizer_12}->Add($self->{t_pdfviewer}, Wx::GBPosition->new(0, 1), Wx::GBSpan->new(1, 1), wxEXPAND, 5); | ||
| 364 | |||
| 365 | 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); | ||
| 366 | $label_9->Wrap(750); | ||
| 367 | $self->{sizer_3}->Add($label_9, 0, wxALL|wxEXPAND, 15); | ||
| 368 | |||
| 369 | $self->{nb_html_preview} = Wx::Panel->new($self->{nb_preferences}, wxID_ANY); | ||
| 370 | $self->{nb_preferences}->AddPage($self->{nb_html_preview}, _T("HTML Preview")); | ||
| 371 | |||
| 372 | $self->{sizer_7} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 373 | |||
| 374 | my $label_8 = Wx::StaticText->new($self->{nb_html_preview}, wxID_ANY, _T("HTML Preview Settings"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL); | ||
| 375 | $label_8->SetMinSize(Wx::Size->new(-1, 35)); | ||
| 376 | $label_8->SetForegroundColour(Wx::Colour->new(0, 104, 217)); | ||
| 377 | $label_8->SetFont(Wx::Font->new(18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, "")); | ||
| 378 | $self->{sizer_7}->Add($label_8, 0, wxALL|wxEXPAND, 15); | ||
| 379 | |||
| 380 | $self->{sizer_14} = Wx::GridBagSizer->new(15, 15); | ||
| 381 | $self->{sizer_7}->Add($self->{sizer_14}, 0, wxEXPAND|wxLEFT|wxRIGHT, 15); | ||
| 382 | |||
| 383 | $self->{cb_htmlviewer} = Wx::CheckBox->new($self->{nb_html_preview}, wxID_ANY, _T("Preview with HTML")); | ||
| 384 | $self->{cb_htmlviewer}->SetToolTip(_T("Use HTML viewer")); | ||
| 385 | $self->{sizer_14}->Add($self->{cb_htmlviewer}, Wx::GBPosition->new(0, 0), Wx::GBSpan->new(1, 1), wxALIGN_CENTER_VERTICAL, 0); | ||
| 386 | |||
| 387 | 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); | ||
| 388 | $label_10->Wrap(750); | ||
| 389 | $self->{sizer_7}->Add($label_10, 0, wxALL|wxEXPAND, 15); | ||
| 390 | |||
| 391 | $self->{sz_prefs_outer}->Add(20, 5, 0, wxEXPAND|wxTOP, 0); | ||
| 392 | |||
| 393 | $self->{sz_prefs_buttons} = Wx::StdDialogButtonSizer->new(); | ||
| 394 | $self->{sz_prefs_outer}->Add($self->{sz_prefs_buttons}, 0, wxALIGN_RIGHT|wxBOTTOM, 5); | ||
| 395 | |||
| 396 | $self->{b_prefs_cancel} = Wx::Button->new($self, wxID_CANCEL, ""); | ||
| 397 | $self->{b_prefs_cancel}->SetToolTip(_T("Close the dialog, discarding changes")); | ||
| 398 | $self->{sz_prefs_buttons}->AddButton($self->{b_prefs_cancel}); | ||
| 399 | |||
| 400 | $self->{b_prefs_ok} = Wx::Button->new($self, wxID_OK, ""); | ||
| 401 | $self->{b_prefs_ok}->SetToolTip(_T("Apply the changes and close the dialog")); | ||
| 402 | $self->{b_prefs_ok}->SetDefault(); | ||
| 403 | $self->{sz_prefs_buttons}->AddButton($self->{b_prefs_ok}); | ||
| 404 | |||
| 405 | $self->{sz_prefs_buttons}->Realize(); | ||
| 406 | |||
| 407 | $self->{nb_html_preview}->SetSizer($self->{sizer_7}); | ||
| 408 | |||
| 409 | $self->{sizer_12}->AddGrowableCol(1); | ||
| 410 | |||
| 411 | $self->{nb_pdf_preview}->SetSizer($self->{sizer_3}); | ||
| 412 | |||
| 413 | $self->{sizer_11}->AddGrowableCol(1); | ||
| 414 | |||
| 415 | $self->{nb_messages}->SetSizer($self->{sizer_4}); | ||
| 416 | |||
| 417 | $self->{sz_colours}->AddGrowableCol(0); | ||
| 418 | $self->{sz_colours}->AddGrowableCol(2); | ||
| 419 | |||
| 420 | $self->{sizer_10}->AddGrowableCol(1); | ||
| 421 | |||
| 422 | $self->{nb_editor}->SetSizer($self->{sizer_5}); | ||
| 423 | |||
| 424 | $self->{sizer_13}->AddGrowableCol(1); | ||
| 425 | |||
| 426 | $self->{nb_notations}->SetSizer($self->{sizer_2}); | ||
| 427 | |||
| 428 | $self->{sz_presets}->AddGrowableCol(1); | ||
| 429 | |||
| 430 | $self->{nb_config}->SetSizer($self->{sizer_1}); | ||
| 431 | |||
| 432 | $self->SetSizer($self->{sz_main}); | ||
| 433 | $self->{sz_main}->Fit($self); | ||
| 434 | $self->{sz_main}->SetSizeHints($self); | ||
| 435 | |||
| 436 | $self->Layout(); | ||
| 437 | Wx::Event::EVT_CHOICE($self, $self->{ch_instrument}->GetId, $self->can('OnChangeInstrument')); | ||
| 438 | Wx::Event::EVT_CHOICE($self, $self->{ch_style}->GetId, $self->can('OnChangeStyle')); | ||
| 439 | Wx::Event::EVT_CHECKLISTBOX($self, $self->{ch_stylemods}->GetId, $self->can('OnChangeStylemods')); | ||
| 440 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_configfile}->GetId, $self->can('OnConfigFile')); | ||
| 441 | Wx::Event::EVT_FILEPICKER_CHANGED($self, $self->{fp_customconfig}->GetId, $self->can('OnCustomConfigChanged')); | ||
| 442 | Wx::Event::EVT_BUTTON($self, $self->{b_createconfig}->GetId, $self->can('OnCreateConfig')); | ||
| 443 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_customlib}->GetId, $self->can('OnCustomLib')); | ||
| 444 | Wx::Event::EVT_DIRPICKER_CHANGED($self, $self->{dp_customlibrary}->GetId, $self->can('OnCustomLibChanged')); | ||
| 445 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_usestdcfg}->GetId, $self->can('OnUseStdCfg')); | ||
| 446 | Wx::Event::EVT_CHOICE($self, $self->{ch_notation}->GetId, $self->can('OnChNotation')); | ||
| 447 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_xcode}->GetId, $self->can('OnCbTranscode')); | ||
| 448 | Wx::Event::EVT_CHOICE($self, $self->{ch_xcode}->GetId, $self->can('OnChTranscode')); | ||
| 449 | Wx::Event::EVT_FONTPICKER_CHANGED($self, $self->{fp_editor}->GetId, $self->can('OnEditorFontPickerChanged')); | ||
| 450 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_editorwrap}->GetId, $self->can('OnEditorWrap')); | ||
| 451 | Wx::Event::EVT_SPINCTRL($self, $self->{sp_editorwrap}->GetId, $self->can('OnEditorWrapIndent')); | ||
| 452 | Wx::Event::EVT_CHOICE($self, $self->{ch_theme}->GetId, $self->can('OnThemeChanged')); | ||
| 453 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_fg}->GetId, $self->can('OnColourFGChanged')); | ||
| 454 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_bg}->GetId, $self->can('OnColourBGChanged')); | ||
| 455 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s1}->GetId, $self->can('OnColourS1Changed')); | ||
| 456 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s2}->GetId, $self->can('OnColourS2Changed')); | ||
| 457 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s3}->GetId, $self->can('OnColourS3Changed')); | ||
| 458 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s4}->GetId, $self->can('OnColourS4Changed')); | ||
| 459 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s5}->GetId, $self->can('OnColourS5Changed')); | ||
| 460 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_s6}->GetId, $self->can('OnColourS6Changed')); | ||
| 461 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_annfg}->GetId, $self->can('OnColourAnnFGChanged')); | ||
| 462 | Wx::Event::EVT_COLOURPICKER_CHANGED($self, $self->{cp_annbg}->GetId, $self->can('OnColourAnnBGChanged')); | ||
| 463 | Wx::Event::EVT_TEXT($self, $self->{t_prefext}->GetId, $self->can('OnPrefExtChanged')); | ||
| 464 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_tmplfile}->GetId, $self->can('OnCbTmplFile')); | ||
| 465 | Wx::Event::EVT_FONTPICKER_CHANGED($self, $self->{fp_messages}->GetId, $self->can('OnMessagesFontPickerChanged')); | ||
| 466 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_pdfviewer}->GetId, $self->can('OnPDFViewer')); | ||
| 467 | Wx::Event::EVT_CHECKBOX($self, $self->{cb_htmlviewer}->GetId, $self->can('OnHTMLViewer')); | ||
| 468 | Wx::Event::EVT_BUTTON($self, $self->{b_prefs_cancel}->GetId, $self->can('OnCancel')); | ||
| 469 | Wx::Event::EVT_BUTTON($self, $self->{b_prefs_ok}->GetId, $self->can('OnAccept')); | ||
| 470 | |||
| 471 | # end wxGlade | ||
| 472 | return $self; | ||
| 473 | |||
| 474 | } | ||
| 475 | |||
| 476 | |||
| 477 | sub OnChangeInstrument { | ||
| 478 | my ($self, $event) = @_; | ||
| 479 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChangeInstrument <event_handler> | ||
| 480 | warn "Event handler (OnChangeInstrument) not implemented"; | ||
| 481 | $event->Skip; | ||
| 482 | # end wxGlade | ||
| 483 | } | ||
| 484 | |||
| 485 | |||
| 486 | sub OnChangeStyle { | ||
| 487 | my ($self, $event) = @_; | ||
| 488 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChangeStyle <event_handler> | ||
| 489 | warn "Event handler (OnChangeStyle) not implemented"; | ||
| 490 | $event->Skip; | ||
| 491 | # end wxGlade | ||
| 492 | } | ||
| 493 | |||
| 494 | |||
| 495 | sub OnChangeStylemods { | ||
| 496 | my ($self, $event) = @_; | ||
| 497 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChangeStylemods <event_handler> | ||
| 498 | warn "Event handler (OnChangeStylemods) not implemented"; | ||
| 499 | $event->Skip; | ||
| 500 | # end wxGlade | ||
| 501 | } | ||
| 502 | |||
| 503 | |||
| 504 | sub OnConfigFile { | ||
| 505 | my ($self, $event) = @_; | ||
| 506 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnConfigFile <event_handler> | ||
| 507 | warn "Event handler (OnConfigFile) not implemented"; | ||
| 508 | $event->Skip; | ||
| 509 | # end wxGlade | ||
| 510 | } | ||
| 511 | |||
| 512 | |||
| 513 | sub OnCustomConfigChanged { | ||
| 514 | my ($self, $event) = @_; | ||
| 515 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCustomConfigChanged <event_handler> | ||
| 516 | warn "Event handler (OnCustomConfigChanged) not implemented"; | ||
| 517 | $event->Skip; | ||
| 518 | # end wxGlade | ||
| 519 | } | ||
| 520 | |||
| 521 | |||
| 522 | sub OnCreateConfig { | ||
| 523 | my ($self, $event) = @_; | ||
| 524 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCreateConfig <event_handler> | ||
| 525 | warn "Event handler (OnCreateConfig) not implemented"; | ||
| 526 | $event->Skip; | ||
| 527 | # end wxGlade | ||
| 528 | } | ||
| 529 | |||
| 530 | |||
| 531 | sub OnCustomLib { | ||
| 532 | my ($self, $event) = @_; | ||
| 533 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCustomLib <event_handler> | ||
| 534 | warn "Event handler (OnCustomLib) not implemented"; | ||
| 535 | $event->Skip; | ||
| 536 | # end wxGlade | ||
| 537 | } | ||
| 538 | |||
| 539 | |||
| 540 | sub OnCustomLibChanged { | ||
| 541 | my ($self, $event) = @_; | ||
| 542 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCustomLibChanged <event_handler> | ||
| 543 | warn "Event handler (OnCustomLibChanged) not implemented"; | ||
| 544 | $event->Skip; | ||
| 545 | # end wxGlade | ||
| 546 | } | ||
| 547 | |||
| 548 | |||
| 549 | sub OnUseStdCfg { | ||
| 550 | my ($self, $event) = @_; | ||
| 551 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnUseStdCfg <event_handler> | ||
| 552 | warn "Event handler (OnUseStdCfg) not implemented"; | ||
| 553 | $event->Skip; | ||
| 554 | # end wxGlade | ||
| 555 | } | ||
| 556 | |||
| 557 | |||
| 558 | sub OnChNotation { | ||
| 559 | my ($self, $event) = @_; | ||
| 560 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChNotation <event_handler> | ||
| 561 | warn "Event handler (OnChNotation) not implemented"; | ||
| 562 | $event->Skip; | ||
| 563 | # end wxGlade | ||
| 564 | } | ||
| 565 | |||
| 566 | |||
| 567 | sub OnCbTranscode { | ||
| 568 | my ($self, $event) = @_; | ||
| 569 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCbTranscode <event_handler> | ||
| 570 | warn "Event handler (OnCbTranscode) not implemented"; | ||
| 571 | $event->Skip; | ||
| 572 | # end wxGlade | ||
| 573 | } | ||
| 574 | |||
| 575 | |||
| 576 | sub OnChTranscode { | ||
| 577 | my ($self, $event) = @_; | ||
| 578 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnChTranscode <event_handler> | ||
| 579 | warn "Event handler (OnChTranscode) not implemented"; | ||
| 580 | $event->Skip; | ||
| 581 | # end wxGlade | ||
| 582 | } | ||
| 583 | |||
| 584 | |||
| 585 | sub OnEditorFontPickerChanged { | ||
| 586 | my ($self, $event) = @_; | ||
| 587 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnEditorFontPickerChanged <event_handler> | ||
| 588 | warn "Event handler (OnEditorFontPickerChanged) not implemented"; | ||
| 589 | $event->Skip; | ||
| 590 | # end wxGlade | ||
| 591 | } | ||
| 592 | |||
| 593 | |||
| 594 | sub OnEditorWrap { | ||
| 595 | my ($self, $event) = @_; | ||
| 596 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnEditorWrap <event_handler> | ||
| 597 | warn "Event handler (OnEditorWrap) not implemented"; | ||
| 598 | $event->Skip; | ||
| 599 | # end wxGlade | ||
| 600 | } | ||
| 601 | |||
| 602 | |||
| 603 | sub OnEditorWrapIndent { | ||
| 604 | my ($self, $event) = @_; | ||
| 605 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnEditorWrapIndent <event_handler> | ||
| 606 | warn "Event handler (OnEditorWrapIndent) not implemented"; | ||
| 607 | $event->Skip; | ||
| 608 | # end wxGlade | ||
| 609 | } | ||
| 610 | |||
| 611 | |||
| 612 | sub OnThemeChanged { | ||
| 613 | my ($self, $event) = @_; | ||
| 614 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnThemeChanged <event_handler> | ||
| 615 | warn "Event handler (OnThemeChanged) not implemented"; | ||
| 616 | $event->Skip; | ||
| 617 | # end wxGlade | ||
| 618 | } | ||
| 619 | |||
| 620 | |||
| 621 | sub OnColourFGChanged { | ||
| 622 | my ($self, $event) = @_; | ||
| 623 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourFGChanged <event_handler> | ||
| 624 | warn "Event handler (OnColourFGChanged) not implemented"; | ||
| 625 | $event->Skip; | ||
| 626 | # end wxGlade | ||
| 627 | } | ||
| 628 | |||
| 629 | |||
| 630 | sub OnColourBGChanged { | ||
| 631 | my ($self, $event) = @_; | ||
| 632 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourBGChanged <event_handler> | ||
| 633 | warn "Event handler (OnColourBGChanged) not implemented"; | ||
| 634 | $event->Skip; | ||
| 635 | # end wxGlade | ||
| 636 | } | ||
| 637 | |||
| 638 | |||
| 639 | sub OnColourS1Changed { | ||
| 640 | my ($self, $event) = @_; | ||
| 641 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS1Changed <event_handler> | ||
| 642 | warn "Event handler (OnColourS1Changed) not implemented"; | ||
| 643 | $event->Skip; | ||
| 644 | # end wxGlade | ||
| 645 | } | ||
| 646 | |||
| 647 | |||
| 648 | sub OnColourS2Changed { | ||
| 649 | my ($self, $event) = @_; | ||
| 650 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS2Changed <event_handler> | ||
| 651 | warn "Event handler (OnColourS2Changed) not implemented"; | ||
| 652 | $event->Skip; | ||
| 653 | # end wxGlade | ||
| 654 | } | ||
| 655 | |||
| 656 | |||
| 657 | sub OnColourS3Changed { | ||
| 658 | my ($self, $event) = @_; | ||
| 659 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS3Changed <event_handler> | ||
| 660 | warn "Event handler (OnColourS3Changed) not implemented"; | ||
| 661 | $event->Skip; | ||
| 662 | # end wxGlade | ||
| 663 | } | ||
| 664 | |||
| 665 | |||
| 666 | sub OnColourS4Changed { | ||
| 667 | my ($self, $event) = @_; | ||
| 668 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS4Changed <event_handler> | ||
| 669 | warn "Event handler (OnColourS4Changed) not implemented"; | ||
| 670 | $event->Skip; | ||
| 671 | # end wxGlade | ||
| 672 | } | ||
| 673 | |||
| 674 | |||
| 675 | sub OnColourS5Changed { | ||
| 676 | my ($self, $event) = @_; | ||
| 677 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS5Changed <event_handler> | ||
| 678 | warn "Event handler (OnColourS5Changed) not implemented"; | ||
| 679 | $event->Skip; | ||
| 680 | # end wxGlade | ||
| 681 | } | ||
| 682 | |||
| 683 | |||
| 684 | sub OnColourS6Changed { | ||
| 685 | my ($self, $event) = @_; | ||
| 686 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourS6Changed <event_handler> | ||
| 687 | warn "Event handler (OnColourS6Changed) not implemented"; | ||
| 688 | $event->Skip; | ||
| 689 | # end wxGlade | ||
| 690 | } | ||
| 691 | |||
| 692 | |||
| 693 | sub OnColourAnnFGChanged { | ||
| 694 | my ($self, $event) = @_; | ||
| 695 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourAnnFGChanged <event_handler> | ||
| 696 | warn "Event handler (OnColourAnnFGChanged) not implemented"; | ||
| 697 | $event->Skip; | ||
| 698 | # end wxGlade | ||
| 699 | } | ||
| 700 | |||
| 701 | |||
| 702 | sub OnColourAnnBGChanged { | ||
| 703 | my ($self, $event) = @_; | ||
| 704 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnColourAnnBGChanged <event_handler> | ||
| 705 | warn "Event handler (OnColourAnnBGChanged) not implemented"; | ||
| 706 | $event->Skip; | ||
| 707 | # end wxGlade | ||
| 708 | } | ||
| 709 | |||
| 710 | |||
| 711 | sub OnPrefExtChanged { | ||
| 712 | my ($self, $event) = @_; | ||
| 713 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnPrefExtChanged <event_handler> | ||
| 714 | warn "Event handler (OnPrefExtChanged) not implemented"; | ||
| 715 | $event->Skip; | ||
| 716 | # end wxGlade | ||
| 717 | } | ||
| 718 | |||
| 719 | |||
| 720 | sub OnCbTmplFile { | ||
| 721 | my ($self, $event) = @_; | ||
| 722 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCbTmplFile <event_handler> | ||
| 723 | warn "Event handler (OnCbTmplFile) not implemented"; | ||
| 724 | $event->Skip; | ||
| 725 | # end wxGlade | ||
| 726 | } | ||
| 727 | |||
| 728 | |||
| 729 | sub OnMessagesFontPickerChanged { | ||
| 730 | my ($self, $event) = @_; | ||
| 731 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnMessagesFontPickerChanged <event_handler> | ||
| 732 | warn "Event handler (OnMessagesFontPickerChanged) not implemented"; | ||
| 733 | $event->Skip; | ||
| 734 | # end wxGlade | ||
| 735 | } | ||
| 736 | |||
| 737 | |||
| 738 | sub OnPDFViewer { | ||
| 739 | my ($self, $event) = @_; | ||
| 740 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnPDFViewer <event_handler> | ||
| 741 | warn "Event handler (OnPDFViewer) not implemented"; | ||
| 742 | $event->Skip; | ||
| 743 | # end wxGlade | ||
| 744 | } | ||
| 745 | |||
| 746 | |||
| 747 | sub OnHTMLViewer { | ||
| 748 | my ($self, $event) = @_; | ||
| 749 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnHTMLViewer <event_handler> | ||
| 750 | warn "Event handler (OnHTMLViewer) not implemented"; | ||
| 751 | $event->Skip; | ||
| 752 | # end wxGlade | ||
| 753 | } | ||
| 754 | |||
| 755 | |||
| 756 | sub OnCancel { | ||
| 757 | my ($self, $event) = @_; | ||
| 758 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnCancel <event_handler> | ||
| 759 | warn "Event handler (OnCancel) not implemented"; | ||
| 760 | $event->Skip; | ||
| 761 | # end wxGlade | ||
| 762 | } | ||
| 763 | |||
| 764 | |||
| 765 | sub OnAccept { | ||
| 766 | my ($self, $event) = @_; | ||
| 767 | # wxGlade: ChordPro::Wx::SettingsDialog_wxg::OnAccept <event_handler> | ||
| 768 | warn "Event handler (OnAccept) not implemented"; | ||
| 769 | $event->Skip; | ||
| 770 | # end wxGlade | ||
| 771 | } | ||
| 772 | |||
| 773 | |||
| 774 | # end of class ChordPro::Wx::SettingsDialog_wxg | ||
| 775 | |||
| 776 | 1; | ||
| 777 |