[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: Modifications to the main-menu of PCB



 Hello,

there was/is a discussion about modifying the main-menu of pcb at the thread "PCB: Change default file-filter in open-dialog". I think it will be more clearly arranged if we continue this discussion at an extra thread which I like to start with this mail :-).

I am currently spending some time with thinking about the menu-structure. Therefor my first question: Is anybody else working at this point?

One of the reasons for me to modify the menu is, to adapt it to the human-interface-guidelines (hid-guidelines) of GNOME (http://library.gnome.org/devel/hig-book/). Anywhere on the geda-webside I found the hint, that the geda (and pcb???)-GUI should be adopted to the rules described there. This does some problems with the keyboard-shortcuts. E.g. Ctrl+P is actually used for 'Auto place selected elements' and should be for 'Print' in the guidelines.
I will prefere using the shortcuts suggested in the document given above.
In some cases it might be nice to support some new and the old shortcuts the same time. Does anyone of you know if it is possible in the actual implementation to define two shortcuts for the same action?

The hid-guidelines suggesting Ctrl++ and Ctrl+- as shortcuts for zooming in and out. Using the plus and minus-sign for keyboard shortcuts is not possible in the actual implementation. The appended patch fixes this.


In the old thread there was some discussion about the menu-entries. Thank you all for your suggestions! I tried to merge them to a new discussion-basis here. First, it's just about the "File"-menu.

File
  New                   Ctrl+N
  Open Layout...        Ctrl+O
  Load
Element Data to Paste Buffer... // perhaps, this two entries can be merged at a later stage. Layout Data to Paste Buffer... // needs some coding (am working at this). Perhaps, moving this two to the 'Buffer'-menu?
    Netlist File...
    Vendor Resource...
  -----
  Save Layout           Ctrl+S
  Save Layout As...     Shift+Ctrl+S
  Save Connection Data of
    a Single Element
    All Elements
    Unused Pins
Save Buffer to Footprint // Don't know if this should be added here. Perhaps this should stay at the 'Buffer'-menu.
  -----
  Update from Schematic...
  Revert
    To Saved
To Backup // Don't know the action to fill in here. Is this implemented in the core already?
  -----
Calibrate Printer... (or perhaps 'Page Setup' when there will be a new page-setup-dialog)
  Print Layout...        Ctrl+P
  Export Layout...
  -----
<List of recent files> // I did some work on this. It works but it is not well integrated jet. Will send a patch when ready (or I gave up)
  -----
// Here was the 'Preferences'-entry. I think we can move it to 'Edit' (as also suggested in the ghi-guidelines) to make this menu shorter Close layout Ctrl-W // if and when multiple layouts are supported ;-) Close all layouts // if and when multiple layouts are supported ;-)
  Quit                   Ctrl+Q


These are my thoughts about the file-menu. Perhaps, you have some more comments or other hints?

Kind regards,
Felix


From 6863d938a06a5a1e425d61f2bdae5a3ebe257725 Mon Sep 17 00:00:00 2001
From: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Date: Sat, 2 Oct 2010 22:58:31 +0200
Subject: [PATCH] Add plus and minus to possible keyboard-shortcuts

Adds the possibility to use plus- and minus-keys for keyboard-shortcuts.
---
 src/hid/gtk/gui-top-window.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/hid/gtk/gui-top-window.c b/src/hid/gtk/gui-top-window.c
index 9c30a93..e02bd03 100644
--- a/src/hid/gtk/gui-top-window.c
+++ b/src/hid/gtk/gui-top-window.c
@@ -3079,7 +3079,9 @@ static KeyTable key_table[] =
     {'[', "bracketleft"},
     {']', "bracketright"},
     {'.', "period"},
-    {'|', "bar"}
+    {'|', "bar"},
+    {'+', "plus"},
+    {'-', "minus"}
   };
 static int n_key_table = sizeof (key_table) / sizeof (key_table[0]);
 
-- 
1.7.1


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user