App-Music-ChordPro
view release on metacpan or search on metacpan
lib/ChordPro/Wx/SettingsDialog_wxg.pm view on Meta::CPAN
$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);
lib/ChordPro/Wx/SettingsDialog_wxg.pm view on Meta::CPAN
$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...
$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, "");
( run in 0.667 second using v1.01-cache-2.11-cpan-5735350b133 )