From c55e64af3f0712f79a6c33dae844419245110b34 Mon Sep 17 00:00:00 2001
From: lifekidyeaa <Unknown>
Date: Mon, 11 Jun 2007 21:23:47 +0000
Subject: [PATCH] * 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.

---
 common/common.cpp | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/common/common.cpp b/common/common.cpp
index 1bd8274723..8b68b2a383 100644
--- a/common/common.cpp
+++ b/common/common.cpp
@@ -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;
 
 }