* added strings to help people learn the layer shortcuts when changing layers with the

horizontal toolbar layer listbox (pgup + pgdwn, which were already in the source, plus 
F5-F8).  I hope this is a useful feature.
This commit is contained in:
lifekidyeaa 2007-06-11 21:23:47 +00:00
parent 713d01751e
commit c55e64af3f
1 changed files with 15 additions and 1 deletions

View File

@ -227,7 +227,7 @@ void MyFree (void * pt_mem)
/**************************************************************/
wxString ReturnPcbLayerName(int layer_number, bool is_filename)
wxString ReturnPcbLayerName(int layer_number, bool is_filename, bool is_gui)
/**************************************************************/
/* Return the name of the layer number "layer_number".
if "is_filefame" == TRUE, the name can be used for a file name
@ -276,6 +276,20 @@ wxString layer_name_list_for_filename[] = {
#endif
else layer_name = layer_name_list[layer_number];
if( is_gui ){
wxString hotkey_list[] = {
wxT("(PgDn)"), wxT("(F5)"), wxT("(F6)"), wxT("(F7)"),
wxT("(F8)"), wxT(" "), wxT(" "), wxT(" "),
wxT(" "), wxT(" "), wxT(" "), wxT(" "),
wxT(" "), wxT(" "), wxT(" "), wxT("(PgUp)"),
wxT(" "), wxT(" "), wxT(" "), wxT(" "),
wxT(" "), wxT(" "), wxT(" "), wxT(" "),
wxT(" "), wxT(" "), wxT(" "), wxT(" "),
wxT(" "), wxT(" "), wxT(" "), wxT(" ")
};
layer_name += hotkey_list[layer_number];
}
return layer_name;
}