Commit 43c034d0 authored by dickelbeck's avatar dickelbeck
Browse files

++pcbnew

    Finished the Layer Setup Dialog.  I assumed that the new layer order will
    be in place soon.  It works fine now, but the layer order is probably
    misleading, since it does not reflect the current stackup but rather the
    future stackup.  I dropped support for a single layer board. The minimum
    is two copper layers.  Avoid the side you don't want anything on.

    Within a month I should have the layer visibility and selection widget
    in place.
parent ba78287b
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,18 @@ KiCad ChangeLog 2009
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.


2009-Dec-11 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
++pcbnew
    Finished the Layer Setup Dialog.  I assumed that the new layer order will
    be in place soon.  It works fine now, but the layer order is probably
    misleading, since it does not reflect the current stackup but rather the
    future stackup.  I dropped support for a single layer board. The minimum
    is two copper layers.  Avoid the side you don't want anything on.

    Within a month I should have the layer visibility and selection widget
    in place.



2009-Dec-10 UPDATE Dick Hollenbeck <dick@softplc.com>
2009-Dec-10 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
================================================================================
+2 −2
Original line number Original line Diff line number Diff line
@@ -327,8 +327,8 @@ public:
    LAYER_T  GetLayerType( int aLayerIndex ) const;
    LAYER_T  GetLayerType( int aLayerIndex ) const;


    /**
    /**
     * Function SetLayerName
     * Function SetLayerType
     * changes the name of the layer given by aLayerIndex.
     * changes the type of the layer given by aLayerIndex.
     *
     *
     * @param aLayerIndex A layer index, like LAYER_N_BACK, etc.
     * @param aLayerIndex A layer index, like LAYER_N_BACK, etc.
     * @param aLayerType The new layer type.
     * @param aLayerType The new layer type.
+284 −349

File changed.

Preview size limit exceeded, changes collapsed.

+19 −7
Original line number Original line Diff line number Diff line
@@ -38,25 +38,37 @@ private:


    WinEDA_PcbFrame*    m_Parent;
    WinEDA_PcbFrame*    m_Parent;


//    int                 m_ActivesLayersCount;
    int                 m_CopperLayerCount;
    int                 m_EnabledLayers;


    BOARD*              m_Pcb;
    BOARD*              m_Pcb;


    void init();
    void init();


    void showBoardLayerNames();
    void setLayerCheckBox( int layer, bool isChecked );

    void setCopperLayerCheckBoxes( int copperCount );
    void showSelectedLayerCheckBoxes();


    void showCopperChoice( int copperCount );
    void showBoardLayerNames();
    void showSelectedLayerCheckBoxes( int enableLayerMask );
    void showLayerTypes();
    void showLayerTypes();
    void showPresets( int enabledLayerMask );

    /** return the selected layer mask within the UI checkboxes */
    int getUILayerMask();
    wxString getLayerName( int layer );
    int getLayerTypeIndex( int layer );




    void OnCancelButtonClick( wxCommandEvent& event );
    void OnCancelButtonClick( wxCommandEvent& event );
    void OnOkButtonClick( wxCommandEvent& event );
    void OnOkButtonClick( wxCommandEvent& event );
    void OnLayerCountClick( wxCommandEvent& event );
    void OnCheckBox( wxCommandEvent& event );
    void DenyChangeCheckBox( wxCommandEvent& event );
    void OnPresetsChoice( wxCommandEvent& event );
    void OnCopperLayersChoice( wxCommandEvent& event );

    bool testLayerNames();


    void SetRoutableLayerStatus( );
    bool TestDataValidity();


public:
public:
    DIALOG_LAYERS_SETUP( WinEDA_PcbFrame* parent );
    DIALOG_LAYERS_SETUP( WinEDA_PcbFrame* parent );
+64 −2

File changed.

Preview size limit exceeded, changes collapsed.

Loading