Kicad manager: cosmetic fixes: fix incorrect bitmaps in Kicad manager tree file.
Use the right bitmap for .gbr and .gbrjob files.
This commit is contained in:
parent
7067e42da7
commit
5ef50ab27a
|
@ -50,6 +50,7 @@ enum TreeFileType {
|
|||
TREE_LEGACY_PCB, // board file (.brd) legacy format
|
||||
TREE_SEXPR_PCB, // board file (.kicad_brd) new s expression format
|
||||
TREE_GERBER, // Gerber file (.pho, .g*)
|
||||
TREE_GERBER_JOB_FILE, // Gerber file (.gbrjob)
|
||||
TREE_HTML, // HTML file (.htm, *.html)
|
||||
TREE_PDF, // PDF file (.pdf)
|
||||
TREE_TXT, // ascii text file (.txt)
|
||||
|
|
|
@ -272,6 +272,7 @@ wxString TREE_PROJECT_FRAME::GetFileExt( TreeFileType type )
|
|||
case TREE_LEGACY_PCB: return LegacyPcbFileExtension;
|
||||
case TREE_SEXPR_PCB: return KiCadPcbFileExtension;
|
||||
case TREE_GERBER: return GerberFileExtensionWildCard;
|
||||
case TREE_GERBER_JOB_FILE: return GerberJobFileExtension;
|
||||
case TREE_HTML: return HtmlFileExtension;
|
||||
case TREE_PDF: return PdfFileExtension;
|
||||
case TREE_TXT: return TextFileExtension;
|
||||
|
@ -406,6 +407,9 @@ wxTreeItemId TREE_PROJECT_FRAME::AddItemToTreeProject(
|
|||
if( ext == wxT( "" ) )
|
||||
continue;
|
||||
|
||||
if( i == TREE_GERBER ) // For gerber files, the official ext is gbr
|
||||
ext = "gbr";
|
||||
|
||||
reg.Compile( wxString::FromAscii( "^.*\\." ) + ext +
|
||||
wxString::FromAscii( "$" ), wxRE_ICASE );
|
||||
|
||||
|
|
|
@ -191,6 +191,7 @@ void TREEPROJECT_ITEM::Activate( TREE_PROJECT_FRAME* aTreePrjFrame )
|
|||
break;
|
||||
|
||||
case TREE_GERBER:
|
||||
case TREE_GERBER_JOB_FILE:
|
||||
case TREE_DRILL:
|
||||
case TREE_DRILL_NC:
|
||||
case TREE_DRILL_XNC:
|
||||
|
|
|
@ -62,6 +62,7 @@ TREEPROJECTFILES::TREEPROJECTFILES( TREE_PROJECT_FRAME* parent )
|
|||
m_ImageList->Add( KiBitmap( pcbnew_xpm ) ); // TREE_LEGACY_PCB
|
||||
m_ImageList->Add( KiBitmap( pcbnew_xpm ) ); // TREE_SEXPR_PCB
|
||||
m_ImageList->Add( KiBitmap( icon_gerbview_small_xpm ) ); // TREE_GERBER
|
||||
m_ImageList->Add( KiBitmap( gerber_job_file_xpm ) ); // TREE_GERBER_JOB_FILE (.gbrjob)
|
||||
m_ImageList->Add( KiBitmap( html_xpm ) ); // TREE_HTML
|
||||
m_ImageList->Add( KiBitmap( datasheet_xpm ) ); // TREE_PDF
|
||||
m_ImageList->Add( KiBitmap( editor_xpm ) ); // TREE_TXT
|
||||
|
|
Loading…
Reference in New Issue