[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (acb36057bb3a7dc0899ce34e1ef50685f8de3640)
The branch, master has been updated
via acb36057bb3a7dc0899ce34e1ef50685f8de3640 (commit)
via 24d8575e838110aca9c10aad0aca8afd7219a1a0 (commit)
from 149be27757ce66a2384c35c93bc41fe3b256b11d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/action.c | 6 +++++-
src/buffer.c | 18 ++++++++++++++----
src/gpcb-menu.res | 1 +
src/pcb-menu.res | 1 +
4 files changed, 21 insertions(+), 5 deletions(-)
=================
Commit Messages
=================
commit acb36057bb3a7dc0899ce34e1ef50685f8de3640
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Update Import() docs
Fix capitalization. Mention that elements that should be removed
are left, but selected, after an Import.
:100644 100644 12745d1... 961decf... M src/action.c
commit 24d8575e838110aca9c10aad0aca8afd7219a1a0
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Add FreeRotateBuffer to the Menu
Modify FreeRotateBuffer() to prompt the user if no angle is passed.
Add an entry to the menus to call it that way.
:100644 100644 7b8bce8... b6d1e2b... M src/buffer.c
:100644 100644 0db5aad... e92a59a... M src/gpcb-menu.res
:100644 100644 0df4b7f... 1166439... M src/pcb-menu.res
=========
Changes
=========
commit acb36057bb3a7dc0899ce34e1ef50685f8de3640
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Update Import() docs
Fix capitalization. Mention that elements that should be removed
are left, but selected, after an Import.
diff --git a/src/action.c b/src/action.c
index 12745d1..961decf 100644
--- a/src/action.c
+++ b/src/action.c
@@ -7242,7 +7242,7 @@ static const char import_syntax[] =
static const char import_help[] = "Import schematics";
-/* %start-doc actions import
+/* %start-doc actions Import
Imports element and netlist data from the schematics (or some other
source). The first parameter, which is optional, is the mode. If not
@@ -7307,6 +7307,10 @@ line).
If @pcb{} cannot determine which schematic(s) to import from, the GUI
is called to let user choose (see @code{ImportGUI()}).
+Note that Import() doesn't delete anything - after an Import, elements
+which shouldn't be on the board are selected and may be removed once
+it's determined that the deletion is appropriate.
+
%end-doc */
static int
commit 24d8575e838110aca9c10aad0aca8afd7219a1a0
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Add FreeRotateBuffer to the Menu
Modify FreeRotateBuffer() to prompt the user if no angle is passed.
Add an entry to the menus to call it that way.
diff --git a/src/buffer.c b/src/buffer.c
index 7b8bce8..b6d1e2b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1426,22 +1426,32 @@ FreeRotateBuffer (BufferTypePtr Buffer, double Angle)
/* -------------------------------------------------------------------------- */
static const char freerotatebuffer_syntax[] =
- "FreeRotateBuffer(Angle)";
+ "FreeRotateBuffer([Angle])";
static const char freerotatebuffer_help[] =
"Rotates the current paste buffer contents by the specified angle. The\n"
- "angle is given in degrees.\n";
+ "angle is given in degrees. If no angle is given, the user is prompted\n"
+ "for one.\n";
/* %start-doc actions FreeRotateBuffer
-Rotates the contents of the pastebuffer by an arbitrary angle.
+Rotates the contents of the pastebuffer by an arbitrary angle. If no
+angle is given, the user is prompted for one.
+
%end-doc */
int
ActionFreeRotateBuffer(int argc, char **argv, int x, int y)
{
HideCrosshair(false);
- FreeRotateBuffer(PASTEBUFFER, strtod(argv[0], 0));
+ char *angle_s;
+
+ if (argc < 1)
+ angle_s = gui->prompt_for ("Enter Rotation (degrees, CCW):", "0");
+ else
+ angle_s = argv[0];
+
+ FreeRotateBuffer(PASTEBUFFER, strtod(angle_s, 0));
RestoreCrosshair(false);
return 0;
}
diff --git a/src/gpcb-menu.res b/src/gpcb-menu.res
index 0db5aad..e92a59a 100644
--- a/src/gpcb-menu.res
+++ b/src/gpcb-menu.res
@@ -287,6 +287,7 @@ MainMenu =
{"Rotate buffer 90 deg CCW" Mode(PasteBuffer) PasteBuffer(Rotate,1)
a={"Shift-F7" "Shift<Key>F7"}}
{"Rotate buffer 90 deg CW" Mode(PasteBuffer) PasteBuffer(Rotate,3)}
+ {"Arbitrarily Rotate Buffer" Mode(PasteBuffer) FreeRotateBuffer()}
{"Mirror buffer (up/down)" Mode(PasteBuffer) PasteBuffer(Mirror)}
{"Mirror buffer (left/right)" Mode(PasteBuffer) PasteBuffer(Rotate,1)
PasteBuffer(Mirror) PasteBuffer(Rotate,3)}
diff --git a/src/pcb-menu.res b/src/pcb-menu.res
index 0df4b7f..1166439 100644
--- a/src/pcb-menu.res
+++ b/src/pcb-menu.res
@@ -272,6 +272,7 @@ MainMenu =
{"Rotate buffer 90 deg CCW" Mode(PasteBuffer) PasteBuffer(Rotate,1)
a={"Shift-F7" "Shift<Key>F7"}}
{"Rotate buffer 90 deg CW" Mode(PasteBuffer) PasteBuffer(Rotate,3)}
+ {"Arbitrarily Rotate Buffer" Mode(PasteBuffer) FreeRotateBuffer()}
{"Mirror buffer (up/down)" Mode(PasteBuffer) PasteBuffer(Mirror)}
{"Mirror buffer (left/right)" Mode(PasteBuffer) PasteBuffer(Rotate,1)
PasteBuffer(Mirror) PasteBuffer(Rotate,3)}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs