Commit c55e64af authored by lifekidyeaa's avatar lifekidyeaa

* 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. 
parent 713d0175
...@@ -227,7 +227,7 @@ void MyFree (void * pt_mem) ...@@ -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". /* Return the name of the layer number "layer_number".
if "is_filefame" == TRUE, the name can be used for a file name if "is_filefame" == TRUE, the name can be used for a file name
...@@ -276,6 +276,20 @@ wxString layer_name_list_for_filename[] = { ...@@ -276,6 +276,20 @@ wxString layer_name_list_for_filename[] = {
#endif #endif
else layer_name = layer_name_list[layer_number]; 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; return layer_name;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment