geda-pcb/pcjc2/v2.git
10 years agoFix layer on/off renderingpcb+gl/fix-layer-on-off-rendering-0
Peter Clifton [Tue, 30 Aug 2011 19:48:13 +0000 (30 20:48 +0100)]
Fix layer on/off rendering

I'm not certain this is correct at all. It works around failure
to switch layer visibility on / off after

commit 9768e060fad7bc3dfc366da76ea1db8154005018
"Fix layer visibility logic for some boards."

After which, copper layers on the component / solder group
would still be drawn unless the silk layer was also turned off.

This appears to be due to the GL HID's custom drawing routines
not checking the return of the (HID)->set_layer function in certain
instances.

This fix is almost certainly WRONG.

10 years agoDraw pin / pad names first, so they don't get masked by the pad
Peter Clifton [Tue, 30 Aug 2011 19:48:13 +0000 (30 20:48 +0100)]
Draw pin / pad names first, so they don't get masked by the pad

Since we use stencil masking to ensure we don't redraw an area
multiple times, confusingly, we need to draw the text first to
ensure it isn't occluded by the pad its-self.

HACK:

We probably draw the names multiple times - as we still use the
common draw.c code which assumes it can draw labels on top of
the pads.

10 years agogtk/gl: Play with layer translucency
Peter Clifton [Tue, 30 Aug 2011 19:48:12 +0000 (30 20:48 +0100)]
gtk/gl: Play with layer translucency

10 years agoMajor re-write to drawing routines
Peter Clifton [Tue, 30 Aug 2011 19:48:12 +0000 (30 20:48 +0100)]
Major re-write to drawing routines

FIXME: FULLY OF NASTY API HACKS TO draw.c

Notes from squashed patches:
  Pin and via hole cores are drawn in the appropriate colour
  Playing with stack rendering order
  Fix mask display in 3D (Allow both side masks to display at once)
  Fix rendering depths for silk and mask layers
  Fixup depth for layers and element marks
  Move more rendering to world coordinates
  Fix get_coords function

10 years agoTMP FIXES
Peter Clifton [Tue, 30 Aug 2011 19:48:11 +0000 (30 20:48 +0100)]
TMP FIXES

10 years agoFix outline drawing to only apply on copper layers
Peter Clifton [Tue, 30 Aug 2011 19:48:11 +0000 (30 20:48 +0100)]
Fix outline drawing to only apply on copper layers

This matches comments in the code, and fixes (removes) outline drawing
on the solder mask prints.

This partially reverts commit 294494e56695251e63c0da9f243d6f59447f1c9f

"Fix PS rect/outline logic"

10 years agoDRAW_FUNCS: Attempt at different render order for PCB+GL
Peter Clifton [Tue, 30 Aug 2011 19:48:10 +0000 (30 20:48 +0100)]
DRAW_FUNCS: Attempt at different render order for PCB+GL

10 years agoShiny 3D eye-candy
Peter Clifton [Tue, 30 Aug 2011 19:48:10 +0000 (30 20:48 +0100)]
Shiny 3D eye-candy

Experiments in progress - don't expect this to work yet!

Squashed:
  Fix grid extents in 3D view

10 years agoUse trackball to allow rotation of 3D view
Peter Clifton [Sun, 4 Sep 2011 02:33:23 +0000 (4 03:33 +0100)]
Use trackball to allow rotation of 3D view

10 years agoAdd virtual trackball code
Peter Clifton [Sun, 4 Sep 2011 02:33:22 +0000 (4 03:33 +0100)]
Add virtual trackball code

10 years agohid/gtk: Add feature to force an immediate redraw if framerate is low
Peter Clifton [Sun, 4 Sep 2011 02:33:21 +0000 (4 03:33 +0100)]
hid/gtk: Add feature to force an immediate redraw if framerate is low

If more than a certain time (currently hard-coded at 50ms) has elapsed
since the last expose callback, invalidate_all() will wait and process
updates before returning.

This is handy to allow animation of auto-router progress, where the gui
mainloop is not hit until the auto-routing operation is fully complete.

10 years agoCrasy test
Peter Clifton [Sun, 4 Sep 2011 02:33:21 +0000 (4 03:33 +0100)]
Crasy test

10 years agodraw.c: Expose some drawing APIs for the HIDs to use directly...
Peter Clifton [Wed, 31 Aug 2011 23:01:55 +0000 (1 00:01 +0100)]
draw.c: Expose some drawing APIs for the HIDs to use directly...

Exposes:
  DrawLayerGroup
  DrawPaste
  DrawSilk
  DrawMask
  DrawHoles
  PrintAssembly

10 years agohid/gtk: Fix styling of menubar area so it is consistent across its width
Peter Clifton [Sun, 4 Sep 2011 00:12:26 +0000 (4 01:12 +0100)]
hid/gtk: Fix styling of menubar area so it is consistent across its width

This relies on some nasty tricks copying GtkStyle's between the menubar
widget and a new GtkEventBox widget we pack the top bar in to give us a
background to paint on. We also adjust the styles of the coordinate read-
out labels and frames to ensure they are legible.

There may still be some inconsistencies, as the coordinate selector button
is themed as if it were a toolbar button, hence the colourings used may
be designed to work with a different background colour than we have.

10 years agohid/gtk: Create a GtkToolbar of mode buttons for compact vertical mode
Peter Clifton [Sun, 4 Sep 2011 01:56:18 +0000 (4 02:56 +0100)]
hid/gtk: Create a GtkToolbar of mode buttons for compact vertical mode

Rather than packing our mode buttons into an hbox, use a proper GtkToolbar
so theming will match the rest of the user's desktop.

This simplifies code to switch compact mode on and off, as we have two
distinct widgets to show / hide, rather than having to reparent the mode
buttons each time.

It does, however mean we have to be careful not to double-trigger events
when keeping the two sets of mode buttons in sync with each other, so that
isn't ideal.

In the longer term, we probably ought to split out the mode button area
on the left-hand toolbar as a separate self-contained widget.

10 years agogtk: Prelight toggle swatches in layer selector
Andrew Poelstra [Sat, 3 Sep 2011 19:56:56 +0000 (3 12:56 -0700)]
gtk: Prelight toggle swatches in layer selector

This brightens the layer visibility swatches subtly when the
mouse hovers over them. IMHO this improves the discoverability
of the widget without being distracting or misleading.

10 years agogtk: Don't gray out invisible layers' text in the selector
Andrew Poelstra [Sat, 3 Sep 2011 19:55:53 +0000 (3 12:55 -0700)]
gtk: Don't gray out invisible layers' text in the selector

10 years agogtk: toggle non-activatable layers on click, without checking for swatch
Andrew Poelstra [Sat, 3 Sep 2011 19:54:10 +0000 (3 12:54 -0700)]
gtk: toggle non-activatable layers on click, without checking for swatch

10 years agohid/gtk: Remove compact_vbox and compact_hbox
Peter Clifton [Sat, 3 Sep 2011 17:13:45 +0000 (3 18:13 +0100)]
hid/gtk: Remove compact_vbox and compact_hbox

10 years agohid/gtk: Always show the PCB name on the title-bar, not the toolbar
Peter Clifton [Sat, 3 Sep 2011 17:03:24 +0000 (3 18:03 +0100)]
hid/gtk: Always show the PCB name on the title-bar, not the toolbar

This saves space and reduces code complexity

10 years agohid/gtk: Don't use a GtkEventBox as a container widget
Peter Clifton [Sat, 3 Sep 2011 14:56:13 +0000 (3 15:56 +0100)]
hid/gtk: Don't use a GtkEventBox as a container widget

We weren't making use of the events from the event box, and appeared
just to be using it as a convenient container to allow setting the
sensitivity on our entire left hand toolbar at once.

Scrap the event box widget and just store a pointer to the vbox widget
which the left toobar items are packed into. We can set the sensitivity
on this and get the desired effect.

10 years agohid/gtk: Don't pack the drawing area in a GtkViewport widget
Peter Clifton [Sat, 3 Sep 2011 14:38:44 +0000 (3 15:38 +0100)]
hid/gtk: Don't pack the drawing area in a GtkViewport widget

(For both the main window and the pinout preview). The GtkViewport
widget is designed to add scroll bars to a widget which doesn't have
native scroll capabilities. We are handling out own scroll-bars, so
the only gain we had from the GtkViewport we added was a shadow
around the widget.

If we decide we want the shadow back, a more appropriate widget to
pack the drawing area with might be a GtkFrame.

10 years agohid/gtk: Remove the vbox used to pack ghidgui->compact_hbox
Peter Clifton [Sat, 3 Sep 2011 14:19:18 +0000 (3 15:19 +0100)]
hid/gtk: Remove the vbox used to pack ghidgui->compact_hbox

The main effect here is that the contents of the compact_hbox
will get more vertical space assigned to them if the menu bar
section is taller than the natural size of those widgets.

The visual change seems acceptable, and we could use every bit of
code-cleanup in ghid_build_pcb_top_window()

10 years agohid/gtk: Remove some more temporary variable assignments
Peter Clifton [Sat, 3 Sep 2011 14:06:43 +0000 (3 15:06 +0100)]
hid/gtk: Remove some more temporary variable assignments

These make the code harder to follow, as the same temporary variable
is used again and again to refer to different widgets.

10 years agohid/gtk: Don't use an hbox to pack the board name label
Peter Clifton [Sat, 3 Sep 2011 14:06:42 +0000 (3 15:06 +0100)]
hid/gtk: Don't use an hbox to pack the board name label

The hbox only has one child, so use the name label directly.

10 years agohid/gtk: Skip the generic "hbox" variable when storing the widget anyway
Peter Clifton [Sat, 3 Sep 2011 14:06:42 +0000 (3 15:06 +0100)]
hid/gtk: Skip the generic "hbox" variable when storing the widget anyway

For widgets we keep references to in the ghidgui structure, we avoid
confusion by assigning directly to the more descriptive ghidgui variable.

10 years agohid/gtk: Don't pack a frame around the menu bar
Peter Clifton [Sat, 3 Sep 2011 14:06:41 +0000 (3 15:06 +0100)]
hid/gtk: Don't pack a frame around the menu bar

10 years agoMove make_route_string() from gtk into misc.c
Andrew Poelstra [Sat, 3 Sep 2011 01:03:44 +0000 (2 18:03 -0700)]
Move make_route_string() from gtk into misc.c

10 years agoConst-correct StripWhiteSpaceAndDup in mymem.c
Andrew Poelstra [Fri, 2 Sep 2011 20:19:04 +0000 (2 13:19 -0700)]
Const-correct StripWhiteSpaceAndDup in mymem.c

10 years agohid/gtk: Attempt to fix logic to flip component / solder group visibility on flip
Peter Clifton [Thu, 1 Sep 2011 00:56:58 +0000 (1 01:56 +0100)]
hid/gtk: Attempt to fix logic to flip component / solder group visibility on flip

Should get back to better behaviour. I probably broke this somewhat with
commit f903b4be6b85efc110852f7be40edf8245f0a513, which attempted to
re-state the previous logic in a clearer fashon.

The logic now should:

If flipping sides, and only ONE of the solder / component layers (groups)
is visible, and that layer (group) is _active_, then swap the visibilities
of the component / solder layers (groups), and make the newly visible
layer (group) active.

There are still bugs in this code relating to the assumption that the
first entry in the layer group is the one which is being toggled. This
breaks if the first entry in the group is that corresponding to the silk
for that side of the board.

10 years agogtk: fix typo preventing layer selector menu items from working
Andrew Poelstra [Wed, 31 Aug 2011 20:46:09 +0000 (31 13:46 -0700)]
gtk: fix typo preventing layer selector menu items from working

10 years agogtk: remove in_toggle_view recursion-prevention flag
Andrew Poelstra [Wed, 31 Aug 2011 20:43:56 +0000 (31 13:43 -0700)]
gtk: remove in_toggle_view recursion-prevention flag

We don't call ToggleView programmatically anywhere, so it is
impossible for there to be recursion.

10 years agoBlock signals in ghid_main_menu_update_toggle_state()
Andrew Poelstra [Wed, 31 Aug 2011 19:57:33 +0000 (31 12:57 -0700)]
Block signals in ghid_main_menu_update_toggle_state()

The function ghid_main_menu_update_toggle_state() is supposed to
sync the menu checkboxes to the actual state of pcb, by checking
the flags given in the resource file.

If this function is emitting signals and changing pcb's state,
this is a bug. Fortunately, this appears not to be the case, so
the effect of this commit is to eliminate one more use of
ghidgui->toggle_holdoff.

10 years agogtk: sync visiibility of layer selector with core state in LayersChanged
Andrew Poelstra [Wed, 31 Aug 2011 17:28:02 +0000 (31 10:28 -0700)]
gtk: sync visiibility of layer selector with core state in LayersChanged

10 years agoUse signal blocking for visibility toggling in GHidLayerSelector
Andrew Poelstra [Wed, 31 Aug 2011 17:26:30 +0000 (31 10:26 -0700)]
Use signal blocking for visibility toggling in GHidLayerSelector

10 years agoAdd call to ghid_layer_buttons_color_update() when loading new colors
Andrew Poelstra [Wed, 31 Aug 2011 16:47:29 +0000 (31 09:47 -0700)]
Add call to ghid_layer_buttons_color_update() when loading new colors

10 years agoChange change.c to treat text scale as mils
Andrew Poelstra [Wed, 31 Aug 2011 01:59:42 +0000 (30 18:59 -0700)]
Change change.c to treat text scale as mils

10 years agoConfigure layer selector to only accept left-clicks
Andrew Poelstra [Tue, 30 Aug 2011 19:22:13 +0000 (30 12:22 -0700)]
Configure layer selector to only accept left-clicks

Suggested by Kai-Martin Knaak, seconded by me.

10 years agoFix invalid free of ~/.pcb/filename path in gui-top-window.c
Andrew Poelstra [Tue, 30 Aug 2011 18:58:18 +0000 (30 11:58 -0700)]
Fix invalid free of ~/.pcb/filename path in gui-top-window.c

10 years agominor: fix comment and forward declaration in ghid-layer-selector
Andrew Poelstra [Tue, 30 Aug 2011 01:45:06 +0000 (29 18:45 -0700)]
minor: fix comment and forward declaration in ghid-layer-selector

10 years agoRemove default layer selection from ghid-layer-selector.c
Andrew Poelstra [Mon, 29 Aug 2011 23:02:12 +0000 (29 16:02 -0700)]
Remove default layer selection from ghid-layer-selector.c

Having the layer selector select its own first layer is not
needed - pcb does this for us, after making the widget. It's
not the sort of decision a widget should be making on its own,
anyway.

10 years agoUse g_signal_handler_block instead of flags in ghid-layer-selector.c
Andrew Poelstra [Tue, 30 Aug 2011 01:33:38 +0000 (29 18:33 -0700)]
Use g_signal_handler_block instead of flags in ghid-layer-selector.c

Thanks to Peter C. for this code-cleanliness tip. Now the two
layer-selection interfaces (menu button and selector widget)
set each other's GUI state but do not raise any signals past
the original.

10 years agoAdd missing free_ldata() in ghid-layer-selector.c
Andrew Poelstra [Tue, 30 Aug 2011 01:31:59 +0000 (29 18:31 -0700)]
Add missing free_ldata() in ghid-layer-selector.c

10 years agoDisable layer selector's GtkAccelGroup while in command mode
Andrew Poelstra [Tue, 30 Aug 2011 05:13:02 +0000 (29 22:13 -0700)]
Disable layer selector's GtkAccelGroup while in command mode

10 years agodraw.c: Add const qualifiers to some BoxType *drawn_area parameters
Peter Clifton [Mon, 29 Aug 2011 23:16:12 +0000 (30 00:16 +0100)]
draw.c: Add const qualifiers to some BoxType *drawn_area parameters

10 years agomisc.c: Add const qualifier to BoxType * parameter passed to CountHoles
Peter Clifton [Mon, 29 Aug 2011 23:18:38 +0000 (30 00:18 +0100)]
misc.c: Add const qualifier to BoxType * parameter passed to CountHoles

10 years agodraw.c: Fold DrawLayerCommon() into DrawLayer()
Peter Clifton [Mon, 29 Aug 2011 23:04:35 +0000 (30 00:04 +0100)]
draw.c: Fold DrawLayerCommon() into DrawLayer()

Since the last commit, DrawLayer() just calls DrawLayerCommon with the
"clear_pins" argument set to true. The only other DrawLayerCommon caller
passes clear_pins as true, so having functions is redundant.

10 years agoDrawLayer(): Pass true to clear_pins of DrawLayerCommon
Peter Clifton [Mon, 29 Aug 2011 23:04:35 +0000 (30 00:04 +0100)]
DrawLayer(): Pass true to clear_pins of DrawLayerCommon

This should not affect any rendering. If the check planes flag is set,
we should only draw polygons, nothing more. Only a handful of cases draw
layers via this code-path, and in all but the exporter cases, they are
not called if CHECKPLANES is set.

The exporters which call DrawLayer explicitly clear the CHECKPLANES flag
(since commit 3c01bd38cb59922692408b71cd5d77892dbe6ade), so nothing
should be affected by this argument change.

10 years agohid/{ps,eps,gerber}: Clear CHECKPLANESFLAG before exporting
Peter Clifton [Mon, 29 Aug 2011 23:04:34 +0000 (30 00:04 +0100)]
hid/{ps,eps,gerber}: Clear CHECKPLANESFLAG before exporting

Ensure we are in a sensible view state before exporting. This
update those HIDs which cleared other similar renedering flags
before exporting to include the CHECKPLANES flag.

10 years agodraw.c: Have DrawLayerGroup() call DrawPPV for non-gui exporters
Peter Clifton [Mon, 29 Aug 2011 23:04:34 +0000 (30 00:04 +0100)]
draw.c: Have DrawLayerGroup() call DrawPPV for non-gui exporters

This means DrawLayerGroup() can have a void return type as most of
the other drawing functions, and makes things a little neater.

Only the GUI renderers special case the pin / pad / via to wait
until a later rendering oass than the layers they reside on.

10 years agohid/gtk: Remove unused "button" parameter from Popup function.
Peter Clifton [Mon, 29 Aug 2011 22:22:53 +0000 (29 23:22 +0100)]
hid/gtk: Remove unused "button" parameter from Popup function.

Remove the dead code and comments refering to the fact the function's
second argument indicates a mouse button number.

10 years agoLink GHidLayerSelector and GHidMainMenu
Andrew Poelstra [Mon, 29 Aug 2011 21:17:55 +0000 (29 14:17 -0700)]
Link GHidLayerSelector and GHidMainMenu

Layer visibility-toggle and selection menu items now appear
in the main menu. Accelerators work correctly and are reassigned
on deletion/addition of layers to simulate the old behavior.

10 years agoClean up layer data handling in ghid-layer-selector.c
Andrew Poelstra [Mon, 29 Aug 2011 21:14:37 +0000 (29 14:14 -0700)]
Clean up layer data handling in ghid-layer-selector.c

10 years agoGive GHidLayerSelector an internal layer structure
Andrew Poelstra [Mon, 29 Aug 2011 18:34:49 +0000 (29 11:34 -0700)]
Give GHidLayerSelector an internal layer structure

Before we had various arrays to resize and index; now each
row has a structure associated with it, that is easier to
access and maintain.

10 years agoReplace gtk UI manager with GHidMainMenu widget
Andrew Poelstra [Mon, 29 Aug 2011 06:29:28 +0000 (28 23:29 -0700)]
Replace gtk UI manager with GHidMainMenu widget

This commit replaces the old UI manager with a customize gtk
widget that builds menus directly from a resource tree. This
eliminates the translate-to-XML step, the ugly hacks used to
access individual actions, and all the associated manual
memory management.

This will also give us the ability to have more dynamic menus,
in particular layer lists without maximum capacities.

Layers and route styles are still not hooked into the menu.
This means that those accelerators DO NOT WORK. (This will
be fixed in a later commit.) Checkboxes have been replaced
with radio buttons where appropriate. There are now tearoffs
on the context-menu's submenus.

Other than that, there should be no user-visible changes. ;)

10 years agoCreated ghid-main-menu.[ch]
Andrew Poelstra [Sun, 28 Aug 2011 13:32:18 +0000 (28 06:32 -0700)]
Created ghid-main-menu.[ch]

Still need to hook up layer selector and route styles.

10 years agoFix select-hidden-layer behavior
Andrew Poelstra [Mon, 29 Aug 2011 16:36:31 +0000 (29 09:36 -0700)]
Fix select-hidden-layer behavior

When you select a hidden layer, it should toggle the visibility
so that the currently-selected layer is always visible. We were
toggling twice.

10 years agoPrevent recursion in layer selector events
Andrew Poelstra [Mon, 29 Aug 2011 15:12:31 +0000 (29 08:12 -0700)]
Prevent recursion in layer selector events

10 years agoRename GtkPcbCoordEntry to GHidCoordEntry
Andrew Poelstra [Mon, 29 Aug 2011 12:43:38 +0000 (29 05:43 -0700)]
Rename GtkPcbCoordEntry to GHidCoordEntry

10 years agoRename GtkPcbLayerSelector to GHidLayerSelector
Andrew Poelstra [Mon, 29 Aug 2011 12:37:07 +0000 (29 05:37 -0700)]
Rename GtkPcbLayerSelector to GHidLayerSelector

10 years agoRename GtkPcbCellRendererVisibility to GHidCellRendererVisibility
Andrew Poelstra [Mon, 29 Aug 2011 12:30:30 +0000 (29 05:30 -0700)]
Rename GtkPcbCellRendererVisibility to GHidCellRendererVisibility

10 years agoAdd mnemonics to menus in default gpcb-menu.res.in
Andrew Poelstra [Mon, 29 Aug 2011 06:45:21 +0000 (28 23:45 -0700)]
Add mnemonics to menus in default gpcb-menu.res.in

You can now access the main menu without a mouse, by doing
Alt+F, for example, to select the File menu.

10 years agogtk: Const-correct add_resource_to_menu and related functions
Andrew Poelstra [Sun, 28 Aug 2011 03:25:44 +0000 (27 20:25 -0700)]
gtk: Const-correct add_resource_to_menu and related functions

Five files have had const keywords added:
   ../common/hid_resource.c
   ../common/hid_resource.h
   gui-top-window.c
   ../../res_parse.y
   ../../resource.h

No casts were added. No compilation warnings were added.

10 years agoDelete GtkAction along with layer in gtk-pcb-layer-selector.c
Andrew Poelstra [Sun, 28 Aug 2011 03:24:41 +0000 (27 20:24 -0700)]
Delete GtkAction along with layer in gtk-pcb-layer-selector.c

10 years agohid/ps/eps.c: Remove assigned by unused lastgroup variable
Peter Clifton [Sun, 28 Aug 2011 23:02:24 +0000 (29 00:02 +0100)]
hid/ps/eps.c: Remove assigned by unused lastgroup variable

10 years agoHID-gcode: make use of MAXPATHLEN.
Markus Hitter [Wed, 20 Oct 2010 22:09:31 +0000 (21 00:09 +0200)]
HID-gcode: make use of MAXPATHLEN.

Affects-bug: lp-699497

10 years agoAdd attributes to docu for commandline options
Felix Ruoff [Sun, 28 Aug 2011 17:57:15 +0000 (28 19:57 +0200)]
Add attributes to docu for commandline options

10 years agoDocu: Fix some references to command-line options
Felix Ruoff [Sun, 28 Aug 2011 17:25:55 +0000 (28 19:25 +0200)]
Docu: Fix some references to command-line options

and remove the documentation for a non-working X11-Interface option.

10 years agoBetter handling of unplated vias
Dima Kogan [Sun, 28 Aug 2011 17:17:20 +0000 (28 13:17 -0400)]
Better handling of unplated vias

The attached patch adds checks in the geometry intersection functions to
no longer treat unplated vias (mounting holes) as conducting. The
implementation in the patch will act as if the unplated via doesn't
intersect with metal objects at all, which is possibly not what is
desired. Should the conductivity check happen on a higher level from the
geometry intersection routines? A case that would require this is not
obvious to me.

Closes-bug: lp-699499

10 years agoUnify HID description (no fullstop at end of description)
Felix Ruoff [Sun, 14 Aug 2011 19:12:23 +0000 (14 21:12 +0200)]
Unify HID description (no fullstop at end of description)

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for ps HID commandline options
Felix Ruoff [Sun, 14 Aug 2011 19:11:44 +0000 (14 21:11 +0200)]
Add docu for ps HID commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for eps HID commandline options
Felix Ruoff [Sun, 14 Aug 2011 19:10:02 +0000 (14 21:10 +0200)]
Add docu for eps HID commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for png HID commandline options
Felix Ruoff [Sun, 14 Aug 2011 19:09:36 +0000 (14 21:09 +0200)]
Add docu for png HID commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for nemla HID commandline options
Felix Ruoff [Sun, 14 Aug 2011 19:08:15 +0000 (14 21:08 +0200)]
Add docu for nemla HID commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for lpt HID commandline options
Felix Ruoff [Sun, 14 Aug 2011 19:07:38 +0000 (14 21:07 +0200)]
Add docu for lpt HID commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for Gerber HID commandline options
Felix Ruoff [Sun, 14 Aug 2011 19:06:47 +0000 (14 21:06 +0200)]
Add docu for Gerber HID commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for the BOM HID commandline options
Felix Ruoff [Sun, 14 Aug 2011 19:05:50 +0000 (14 21:05 +0200)]
Add docu for the BOM HID commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for commandline-options for GTK+ and lesstif GUI
Felix Ruoff [Sun, 14 Aug 2011 19:05:00 +0000 (14 21:05 +0200)]
Add docu for commandline-options for GTK+ and lesstif GUI

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for DRC commandline options
Felix Ruoff [Thu, 18 Aug 2011 17:10:53 +0000 (18 19:10 +0200)]
Add docu for DRC commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for general gui commandline options
Felix Ruoff [Thu, 18 Aug 2011 17:08:57 +0000 (18 19:08 +0200)]
Add docu for general gui commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for path commandline options
Felix Ruoff [Thu, 18 Aug 2011 17:04:40 +0000 (18 19:04 +0200)]
Add docu for path commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for commandline commands
Felix Ruoff [Thu, 18 Aug 2011 16:55:58 +0000 (18 18:55 +0200)]
Add docu for commandline commands

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for layer names commandline options
Felix Ruoff [Thu, 18 Aug 2011 16:50:23 +0000 (18 18:50 +0200)]
Add docu for layer names commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for size commandline options
Felix Ruoff [Thu, 18 Aug 2011 16:49:09 +0000 (18 18:49 +0200)]
Add docu for size commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoAdd docu for color commandline options
Felix Ruoff [Thu, 18 Aug 2011 16:43:46 +0000 (18 18:43 +0200)]
Add docu for color commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoDocu: Add general description for commandline options
Felix Ruoff [Sun, 28 Aug 2011 16:35:06 +0000 (28 18:35 +0200)]
Docu: Add general description for commandline options

... and for general options.
(Patch 3/19 of this patch-serie is missing on purpose)

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoRemove out-dated docu for commandline options
Felix Ruoff [Sun, 28 Aug 2011 16:17:05 +0000 (28 18:17 +0200)]
Remove out-dated docu for commandline options

Most parts of this patch-serie was written by Kai-Martin Knaak.
Adaption to actual git HEAD and some modifications by Felix Ruoff.

10 years agoMove CountHoles() from draw.c to misc.c and export it
Peter Clifton [Sun, 28 Aug 2011 14:46:36 +0000 (28 15:46 +0100)]
Move CountHoles() from draw.c to misc.c and export it

This function may be more generally useful.

10 years agodraw.c: Move doing_assy flag assignment into PrintAssembly()
Peter Clifton [Sun, 28 Aug 2011 14:43:46 +0000 (28 15:43 +0100)]
draw.c: Move doing_assy flag assignment into PrintAssembly()

Keeps things tidier

10 years agohid/{nelma,gcode}: Remove assigned but unused variables lastcap and lastgroup
Peter Clifton [Sun, 28 Aug 2011 11:35:41 +0000 (28 12:35 +0100)]
hid/{nelma,gcode}: Remove assigned but unused variables lastcap and lastgroup

10 years agoRemove traces of LoadBackgroundImage() from the core of PCB
Peter Clifton [Sun, 28 Aug 2011 11:26:11 +0000 (28 12:26 +0100)]
Remove traces of LoadBackgroundImage() from the core of PCB

10 years agohid/gtk: Use view_data struct to simplify saving and restoring views
Peter Clifton [Sat, 27 Aug 2011 16:27:45 +0000 (27 17:27 +0100)]
hid/gtk: Use view_data struct to simplify saving and restoring views

10 years agohid/gtk: Encapsulate view parameters in a structure
Peter Clifton [Sat, 27 Aug 2011 13:53:20 +0000 (27 14:53 +0100)]
hid/gtk: Encapsulate view parameters in a structure

10 years agohid/gtk: Remove unnecessary prototype
Peter Clifton [Sat, 27 Aug 2011 14:13:22 +0000 (27 15:13 +0100)]
hid/gtk: Remove unnecessary prototype

10 years agohid/gtk: crosshair_{x,y} should be Coord, not int.
Peter Clifton [Sat, 27 Aug 2011 14:02:07 +0000 (27 15:02 +0100)]
hid/gtk: crosshair_{x,y} should be Coord, not int.

10 years agofontmode.c: Add missing #include "pcb-printf.h"
Peter Clifton [Sat, 27 Aug 2011 14:04:35 +0000 (27 15:04 +0100)]
fontmode.c: Add missing #include "pcb-printf.h"

10 years agoFix FontEdit()
DJ Delorie [Sat, 27 Aug 2011 03:15:45 +0000 (26 23:15 -0400)]
Fix FontEdit()

Move top/bottom meta-layers to layers 0 and 1 so they'll exist after we
trim out the layers.  Set up DRC values to avoid interfereing with the
font layout.

Closes-bug: lp-808591

10 years agoUse correct units when setting up the Sizes dialog.
DJ Delorie [Sat, 27 Aug 2011 03:14:46 +0000 (26 23:14 -0400)]
Use correct units when setting up the Sizes dialog.

Replace %mm with %mS so it auto-selects units, to match the scanning
that's done when you save the settings.

10 years agoAvoid segfault tmp-saving partial board.
DJ Delorie [Sat, 27 Aug 2011 03:13:52 +0000 (26 23:13 -0400)]
Avoid segfault tmp-saving partial board.

Check for both PCB and PCB->Data to avoid trying to save a backup copy
of a partially created layout.

10 years agogtk: Sync selection with pcb state in ghid_layer_buttons_update
Andrew Poelstra [Sat, 27 Aug 2011 05:28:28 +0000 (26 22:28 -0700)]
gtk: Sync selection with pcb state in ghid_layer_buttons_update

It was possible for PCB's active layer to come out of sync with
the selected entry in the layer selector. This fixes that.