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

Re: gEDA-user: [ctrl-x] should cut to buffer



On Sun, 28 Oct 2007 19:05:31 -0400, DJ Delorie wrote:

>> I'd be willing to contribute these improvements of gpcb-menu.res. Just
>> tell me step-by-step, what I need to do to send a proper patch.
> 
> Check out and build the CVS version of pcb.  Make your edits and test
> them.  Run "cvs diff -p -U 3" and redirect the output to a file.  Read
> the diff!  Paste that file into your email (beware of pasting from
> xterm; it doesn't preserve tabs).

Changes I made to the gpcb-menu.res:

 * Make [ctrl-x] cut selection to buffer rather than just copy.

 * Make [ctrl-v] an accel to buffer mode

 * Add "Lock Names" and "Only Names" to settings menu

 * Make [shift-del] and [backspace] accels for remove selection

 * Add the tab-combos to the list of key accels.

This is the relevant output of cvs diff: 
--------------------------8<---------------------------------
Index: gpcb-menu.res
===================================================================
RCS file: /cvsroot/pcb/pcb/src/gpcb-menu.res,v
retrieving revision 1.9
diff -p -U3 -r1.9 gpcb-menu.res
--- gpcb-menu.res	14 Sep 2007 22:07:47 -0000	1.9
+++ gpcb-menu.res	2 Nov 2007 16:40:01 -0000
@@ -77,11 +77,11 @@ MainMenu =
    -
    {"Cut selection to buffer" GetXY(Press a button at the reference location)
     PasteBuffer(Clear) PasteBuffer(AddSelected) RemoveSelected() Mode(PasteBuffer)
-    a={"Shift-Ctrl-X" "Shift Ctrl<Key>x"}}
+    a={"Shift-Ctrl-X" "Ctrl<Key>x"}}
    {"Copy selection to buffer" GetXY(Press a button at the reference location)
     PasteBuffer(Clear) PasteBuffer(AddSelected) Mode(PasteBuffer)
-    a={"Ctrl-X" "Ctrl<Key>x"}}
-   {"Paste buffer to layout" Mode(PasteBuffer) }
+    a={"Ctrl-C" "Ctrl<Key>c"}}
+   {"Paste buffer to layout" Mode(PasteBuffer) a={"Ctrl-V" "Ctrl<Key>v"}}
    -
    {"Unselect all" Unselect(All) a={"Shift-Alt-A" "Shift Alt<Key>a"}}
    {"Select all visible" Select(All) a={"Alt-A" "Alt<Key>a"}}
@@ -190,6 +190,8 @@ MainMenu =
    {"Crosshair snaps to pins and pads" checked=snappin Display(ToggleSnapPin)}
    {"Crosshair shows DRC clearance" checked=showdrc Display(ToggleShowDRC)}
    {"Auto enforce DRC clearance" checked=autodrc Display(ToggleAutoDRC)}
+   {"Lock Names" checked=locknames Display(ToggleLockNames)}
+   {"Only Names" checked=onlynames Display(ToggleOnlyNames)}
    -
    {"Rubber band mode" checked=rubberband Display(ToggleRubberBandMode)}
    {"Require unique element names" checked=uniquename Display(ToggleUniqueNames)}
@@ -228,7 +230,7 @@ MainMenu =
    {"Disperse selected elements" DisperseElements(Selected)}
    -
    {"Move selected elements to other side" Flip(SelectedElements) a={"Shift-B" "Shift<Key>b"}}
-   {"Remove selected objects" RemoveSelected()}
+   {"Remove selected objects" RemoveSelected() a={"Shift-Delete" "Shift<Key>Delete"}}
    {"Convert selection to element" Select(Convert)}
    -
    {"Optimize selected rats" DeleteRats(SelectedRats) AddRats(SelectedRats)}
@@ -338,18 +340,15 @@ MainMenu =
    {"Generate drill summary" Report(DrillReport)}
    {"Report found pins/pads" Report(FoundPins)}
    {"Key Bindings"
-    {"Remove" a={"Backspace" "<Key>BackSpace"}
-     Mode(Save)
-     Mode(Remove)
-     Mode(Notify)
-     Mode(Restore)
-    }
     {"Remove" a={"Delete" "<Key>Delete"}
      Mode(Save)
      Mode(Remove)
      Mode(Notify)
      Mode(Restore)
     }
+    {"Remove Selected" a={"Backspace" "<Key>BackSpace"}
+     RemoveSelected()
+    }
     {"Remove Connected" a={"Shift-Backspace" "Shift<Key>BackSpace"}
      Atomic(Save)
      Connection(Reset)
@@ -410,13 +409,16 @@ MainMenu =
     {"Polygon PreviousPoint" a={"P" "<Key>p"} Polygon(PreviousPoint)}
     {"Polygon Close" a={"Shift-P" "Shift<Key>p"} Polygon(Close)}
     {"ChangeSquare Object" a={"Q" "<Key>q"} ChangeSquare(ToggleObject)}
+    {"Redo last undone operation" Redo() a={"Shift-R" "Shift<Key>r"}}
     {"ChangeSize +5 mil" a={"S" "<Key>s"} ChangeSize(Object,+5,mil)}
     {"ChangeSize -5 mil" a={"Shift-S" "Shift<Key>s"} ChangeSize(Object,-5,mil)}
     {"ChangeDrill +5 mil" a={"Alt-S" "Alt<Key>s"} ChangeDrillSize(Object,+5,mil)}
     {"ChangeDrill -5 mil" a={"Alt-Shift-S" "Alt Shift<Key>s"} ChangeDrillSize(Object,-5,mil)}
     {"TextScale +10 mil" a={"T" "<Key>t"} SetValue(TextScale,+10,mil)}
     {"TextScale -10 mil" a={"Shift-T" "Shift<Key>t"} SetValue(TextScale,-10,mil)}
-    {"ViaSize +5 mil" a={"Ctrl-V" "Ctrl<Key>v"} SetValue(ViaSize,+5,mil)}
+    {"Undo last operation" Undo() a={"U" "<Key>u"}}
+    {"Clear undo-buffer" Undo(ClearList) a={"Shift-Ctrl-U" "Shift Ctrl<Key>u"}}
+    {"ViaSize +5 mil" a={"Shift-V" "Shift<Key>v"} SetValue(ViaSize,+5,mil)}
     {"ViaSize -5 mil" a={"Shift-Ctrl-V" "Shift Ctrl<Key>v"} SetValue(ViaSize,-5,mil)}
     {"ViaDrill +5 mil" a={"Alt-V" "Alt<Key>v"} SetValue(ViaDrillingHole,+5,mil)}
     {"ViaDrill -5 mil" a={"Alt-Shift-V" "Alt Shift<Key>v"} SetValue(ViaDrillingHole,-5,mil)}
@@ -427,6 +429,11 @@ MainMenu =
     {"Temp Arrow ON" a={"[" "<Key>["} Mode(Save) Mode(Arrow) Mode(Notify)}
     {"Temp Arrow OFF" a={"]" "<Key>]"} Mode(Release) Mode(Restore)}
     -
+    {"Flip up/down" a={"Tab" "<Key>Tab"} checked=flip_y SwapSides(V)}
+    {"Flip left/right" a={"Shift-Tab" "Shift<Key>Tab"} checked=flip_x SwapSides(H)}
+    {"Spin 180°" a={"Ctrl-Tab" "Ctrl<Key>Tab"} SwapSides(R)}
+    {"Swap Sides" a={"Ctrl-Shift-Tab" "Ctrl Shift<Key>Tab"}  SwapSides()}
+    -
     {"Step Up" a={"Up" "<Key>Up"} Cursor(Warp,0,1,grid)}
     {"Step Down" a={"Down" "<Key>Down"} Cursor(Warp,0,-1,grid)}
     {"Step Left" a={"Left" "<Key>Left"} Cursor(Warp,-1,0,grid)}
@@ -435,7 +442,8 @@ MainMenu =
     {"Step +Down" a={"Down" "Shift<Key>Down"} Cursor(Pan,0,-50,view)}
     {"Step +Left" a={"Left" "Shift<Key>Left"} Cursor(Pan,-50,0,view)}
     {"Step +Right" a={"Right" "Shift<Key>Right"} Cursor(Pan,50,0,view)}
-    {'"Click"' a={"Enter" "<Key>Enter"} Mode(Notify) Mode(Release) }
+    {'"Click"' a={"Enter" "<Key>Enter"} Mode(Notify) Mode(Release)}
+    -
    }
   }
 #
---------------------------->8----------------------------

-- 
Kai-Martin Knaak                                  tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik      fax: +49-511-762-2211	
Welfengarten 1, 30167 Hannover           http://www.iqo.uni-hannover.de
GPG key:    http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



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