/* * KiCad Project Template HTML defaults * Extracted from dialog_template_selector.cpp to allow reuse and to provide * a styled fallback page when a template does not supply an info.html. */ #ifndef KICAD_TEMPLATE_DEFAULT_HTML_H #define KICAD_TEMPLATE_DEFAULT_HTML_H #include // Uses _() translation macro which is defined globally in KiCad builds. // Welcome (no template selected) page. inline wxString GetWelcomeHtml() { return wxString( "" "" "" "" "" "KiCad Project Template Selector" "" "" "" "
" "
" "
KiCad 📑
" "
" + _( "Project Template Selector" ) + "
" "
" "
" "

" + _( "Welcome to Template Selection!" ) + "

" "

" + _( "Choose from a variety of pre-configured project templates to jumpstart your PCB design. Templates provide ready-to-use project structures with common components, libraries, and design rules." ) + "

" "
" "
" "
" "

→ " + _( "Browse Templates" ) + "

" "

" + _( "Navigate through the template tabs above to explore different categories of project templates. Each tab contains templates organized by type or complexity." ) + "

" "
" "
" "

→ " + _( "Select a Template" ) + "

" "

" + _( "Click on any template in the list to " ) + "" + _( "preview its details" ) + ". " + _( "The template information will appear in this panel, showing descriptions, included components, and project structure." ) + "

" "
" "
" "

→ " + _( "Customize Path" ) + "

" "

" + _( "Use the " ) + "" + _( "folder path field" ) + " " + _( "above to browse custom template directories. Click the folder icon to browse, or the refresh icon to reload templates." ) + "

" "
" "
" "

→ " + _( "Create Project" ) + "

" "

" + _( "Once you've found the right template, click " ) + "" + _( "OK" ) + " " + _( "to create a new project based on the selected template. Your project will inherit all template settings and files." ) + "

" "
" "
" "
" "

" + _( "What You Get with Templates" ) + "

" "
    " "
  • " + _( "Pre-configured libraries" ) + " " + _( "- Common components and footprints already linked" ) + "
  • " "
  • " + _( "Design rules" ) + " " + _( "- Appropriate electrical and mechanical constraints" ) + "
  • " "
  • " + _( "Layer stackups" ) + " " + _( "- Optimized for the intended application" ) + "
  • " "
  • " + _( "Component placement" ) + " " + _( "- Basic layout and routing guidelines" ) + "
  • " "
  • " + _( "Documentation" ) + " " + _( "- README files and design notes" ) + "
  • " "
  • " + _( "Manufacturing files" ) + " " + _( "- Gerber and drill file configurations" ) + "
  • " "
" "
" "
" "

" + _( "Pro Tips" ) + "

" "

" + _( "Start Simple:" ) + " " + _( "Begin with basic templates and add more elements as you go." ) + "

" "

" + _( "Customize Later:" ) + " " + _( "Templates are starting points - you can modify libraries, rules, and layouts after project creation." ) + "

" "

" + _( "Save Your Own:" ) + " " + _( "Once you develop preferred settings, create a custom template for future projects." ) + "

" "
" "
" "" "" ); } // Fallback when a specific template has no meta/info.html. inline wxString GetTemplateInfoHtml( const wxString& aTemplateName ) { return wxString( "" "" "" "" "" "" + aTemplateName + " - KiCad Template" "" "
" "
" + _( "Template" ) + "

" + aTemplateName + "

" "

" + _( "This project template doesn't include an info page yet. You can still use it to create a new project." ) + "

" "
" "" + _( "To use this template:" ) + "" "
" "

1. " + _( "Create the project" ) + "

" + _( "Click OK below. KiCad will create a new project folder populated with the contents of this template." ) + "

" "

2. " + _( "Open schematic and PCB" ) + "

" + _( "Use the Project Manager tree or launch Schematic and PCB editors to begin designing." ) + "

" "

3. " + _( "Review libraries & settings" ) + "

" + _( "Confirm symbol/footprint libraries, design rules, and board stackup match your needs." ) + "

" "
" // steps "
" // cta "
" "" + _( "Add an info page later:" ) + "" "

" + _( "Create a file at" ) + " meta/info.html " + _( "inside this template's directory to provide rich documentation, images, or guidance." ) + "

" "

" + _( "You can copy styling from the default pages for consistency." ) + "

" "
" "
" ); } #endif // KICAD_TEMPLATE_DEFAULT_HTML_H