~pierre-parent-k/kicad/length-tunning

« back to all changes in this revision

Viewing changes to gerbview/gerbview_frame.h

  • Committer: Pierre Parent
  • Date: 2014-07-06 10:32:13 UTC
  • mfrom: (4798.1.179 kicad)
  • Revision ID: pierre.parent@insa-rouen.fr-20140706103213-wjsdy0hc9q6wbz5v
Merge with lp:kicad 4977

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include <gerbview.h>
38
38
#include <class_gbr_layout.h>
39
39
#include <class_gbr_screen.h>
40
 
#include <layers_id_colors_and_visibility.h>
41
40
 
42
41
#define NO_AVAILABLE_LAYERS UNDEFINED_LAYER
43
42
 
167
166
     * different radiobutton is clicked on) prior to then clicking on the "Deselect"
168
167
     * button provided within the "Layer selection:" dialog box).
169
168
     */
170
 
    LAYER_NUM SelectPCBLayer( LAYER_NUM aDefaultLayer, int aOpperLayerCount, bool aNullLayer = false );
 
169
    int SelectPCBLayer( int aDefaultLayer, int aOpperLayerCount, bool aNullLayer = false );
171
170
 
172
171
protected:
173
172
    GERBER_LAYER_WIDGET*    m_LayersManager;
306
305
     * Function GetVisibleLayers
307
306
     * is a proxy function that calls the correspondent function in m_BoardSettings
308
307
     * Returns a bit-mask of all the layers that are visible
309
 
     * @return int - the visible layers in bit-mapped form.
 
308
     * @return long - the visible layers in bit-mapped form.
310
309
     */
311
 
    LAYER_MSK GetVisibleLayers() const;
 
310
    long GetVisibleLayers() const;
312
311
 
313
312
    /**
314
313
     * Function SetVisibleLayers
316
315
     * changes the bit-mask of visible layers
317
316
     * @param aLayerMask = The new bit-mask of visible layers
318
317
     */
319
 
    void    SetVisibleLayers( LAYER_MSK aLayerMask );
 
318
    void    SetVisibleLayers( long aLayerMask );
320
319
 
321
320
    /**
322
321
     * Function IsLayerVisible
324
323
     * @param aLayer = The layer to be tested
325
324
     * @return bool - true if the layer is visible.
326
325
     */
327
 
    bool    IsLayerVisible( LAYER_NUM aLayer ) const;
 
326
    bool    IsLayerVisible( int aLayer ) const;
328
327
 
329
328
    /**
330
329
     * Function GetVisibleElementColor
338
337
     * Function GetLayerColor
339
338
     * gets a layer color for any valid layer.
340
339
     */
341
 
    EDA_COLOR_T GetLayerColor( LAYER_NUM aLayer ) const;
 
340
    EDA_COLOR_T GetLayerColor( int aLayer ) const;
342
341
 
343
342
    /**
344
343
     * Function SetLayerColor
345
344
     * changes a layer color for any valid layer.
346
345
     */
347
 
    void    SetLayerColor( LAYER_NUM aLayer, EDA_COLOR_T aColor );
 
346
    void    SetLayerColor( int aLayer, EDA_COLOR_T aColor );
348
347
 
349
348
    /**
350
349
     * Function GetNegativeItemsColor
396
395
     * will change the currently active layer to \a aLayer and also
397
396
     * update the GERBER_LAYER_WIDGET.
398
397
     */
399
 
    void    setActiveLayer( LAYER_NUM aLayer, bool doLayerWidgetUpdate = true );
 
398
    void    setActiveLayer( int aLayer, bool doLayerWidgetUpdate = true );
400
399
 
401
400
    /**
402
401
     * Function getActiveLayer
403
402
     * returns the active layer
404
403
     */
405
 
    LAYER_NUM getActiveLayer();
 
404
    int getActiveLayer();
406
405
 
407
406
    /**
408
407
     * Function getNextAvailableLayer
411
410
     * @param aLayer The first layer to search.
412
411
     * @return The first empty layer found or NO_AVAILABLE_LAYERS.
413
412
     */
414
 
    LAYER_NUM getNextAvailableLayer( LAYER_NUM aLayer = FIRST_LAYER ) const;
 
413
    int getNextAvailableLayer( int aLayer = 0 ) const;
415
414
 
416
415
    bool hasAvailableLayers() const
417
416
    {
462
461
 
463
462
    void SaveSettings( wxConfigBase* aCfg );    // override virtual
464
463
 
465
 
    /**
466
 
     * Function SetLanguage
467
 
     * called on a language menu selection
468
 
     */
469
 
    virtual void        SetLanguage( wxCommandEvent& event );
 
464
    void                ShowChangedLanguage();  // override EDA_BASE_FRAME virtual
470
465
 
471
466
    void                Process_Special_Functions( wxCommandEvent& event );
472
467
    void                OnSelectOptionToolbar( wxCommandEvent& event );
671
666
     * @param aPrintMirrorMode = not used here (Set when printing in mirror mode)
672
667
     * @param aData = a pointer on an auxiliary data (not always used, NULL if not used)
673
668
     */
674
 
    virtual void    PrintPage( wxDC* aDC, LAYER_MSK aPrintMasklayer, bool aPrintMirrorMode,
 
669
    virtual void    PrintPage( wxDC* aDC, LSET aPrintMasklayer, bool aPrintMirrorMode,
675
670
                               void* aData = NULL );
676
671
 
677
672
    /**