~simon-huwyler/kicad/layerConstraints

« back to all changes in this revision

Viewing changes to pcbnew/class_module.h

  • Committer: Wayne Stambaugh
  • Date: 2013-04-25 16:29:35 UTC
  • Revision ID: stambaughw@verizon.net-20130425162935-v2weof8me6z1kx5d
Pcbnew NETLIST_READER improvements.

* Create separate NETLIST object to hold contents of netlist files.
* Read entire netlist and footprint link files before making applying
  changes to board.
* Add BOARD::ReplaceNetlist() function to eliminate the calls between the
  NETLIST_READER, PCB_EDIT_FRAME, and BOARD objects.
* Change placement of new components below the center of the current board
  or in the center of the page if the BOARD is empty.
* Add dry run option to netlist dialog to print changes to message control
  without making changes.
* Add button to netlist dialog to allow saving contents of message control
  to a file.
* Eliminate the need to compile netlist_reader_*.cpp in both CvPcb and Pcbnew.
* Add netlist_reader_*.cpp to the pcbcommon library.
* Remove redundant load component link file code from CvPcb.
* Modify CvPcb new to work with the new NETLIST_READER object.
* Add compare() function and < and == operators to FPID object.
* Add REPORTER class to hide an underlying string writing implementation for
  use in low level objects.  Thank you Dick for the idea.
* Lots of minor coding policy, Doxygen comment, and missing license fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
 
230
230
    /* drawing functions */
231
231
 
 
232
    /**
 
233
     * Function Draw
 
234
     * draws the footprint to the \a aDC.
 
235
     * @param aPanel = draw panel, Used to know the clip box
 
236
     * @param aDC = Current Device Context
 
237
     * @param aDrawMode = GR_OR, GR_XOR..
 
238
     * @param aOffset = draw offset (usually wxPoint(0,0)
 
239
     */
232
240
    void Draw( EDA_DRAW_PANEL* aPanel,
233
241
               wxDC*           aDC,
234
242
               GR_DRAWMODE     aDrawMode,
236
244
 
237
245
    void Draw3D( EDA_3D_CANVAS* glcanvas );
238
246
 
 
247
    /**
 
248
     * Function DrawEdgesOnly
 
249
     *  Draws the footprint edges only to the current Device Context
 
250
     *  @param panel = The active Draw Panel (used to know the clip box)
 
251
     *  @param DC = current Device Context
 
252
     *  @param offset = draw offset (usually wxPoint(0,0)
 
253
     *  @param draw_mode =  GR_OR, GR_XOR, GR_AND
 
254
     */
239
255
    void DrawEdgesOnly( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& offset,
240
256
                        GR_DRAWMODE draw_mode );
241
257
 
306
322
 
307
323
    /**
308
324
     * Function GetPad
309
 
     * get a pad at \a aPosition on \a aLayer in the footprint.
 
325
     * get a pad at \a aPosition on \a aLayerMask in the footprint.
310
326
     *
311
327
     * @param aPosition A wxPoint object containing the position to hit test.
312
328
     * @param aLayerMask A layer or layers to mask the hit test.
362
378
    EDA_ITEM* Clone() const;
363
379
 
364
380
    /**
 
381
     * Function CopyNetlistSettings
 
382
     * copies the netlist settings to \a aModule.
 
383
     *
 
384
     * The netlist settings are all of the #MODULE settings not define by a #MODULE in
 
385
     * a netlist.  These setting include position, orientation, local clearances, ets.
 
386
     * The reference designator, value, path, and physical geometry settings are not
 
387
     * copied.
 
388
     *
 
389
     * @param aModule is the #MODULE to copy the settings to.
 
390
     */
 
391
    void CopyNetlistSettings( MODULE* aModule );
 
392
 
 
393
    /**
365
394
     * static function IsLibNameValid
366
395
     * Test for validity of a name of a footprint to be used in a footprint library
367
396
     * ( no spaces, dir separators ... )