Commit 181e1341 authored by charras's avatar charras
Browse files

doc update.

parent f49d2e32
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -674,8 +674,18 @@ public:

    // Autoplacement:
    void                AutoPlace( wxCommandEvent& event );
    /** function OnOrientFootprints
     * install the dialog box for the comman Orient Footprints
     */
    void                OnOrientFootprints( void );
    /** function ReOrientModules
     * Set the orientation of footprints
     * @param ModuleMask = mask (wildcard allowed) selection
     * @param Orient = new orientation
     * @param include_fixe = true to orient locked footprints
     */
    void                ReOrientModules( const wxString& ModuleMask, int Orient,
                                         bool include_fixe, wxDC* DC );
                                         bool include_fixe );
    void                FixeModule( MODULE* Module, bool Fixe );
    void                AutoMoveModulesOnPcb( wxDC* DC, bool PlaceModulesHorsPcb );
    bool                SetBoardBoundaryBoxFromEdgesOnly();
+770 B (153 KiB)

File changed.

No diff preview for this file type.

+774 −44

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ set(PCBNEW_SRCS
#   dialog_netlist.cpp
#   dialog_pad_edit.cpp
    dialog_setup_libs.cpp
    dialog_orient_footprints.cpp
#   dialog_track_options.cpp
#   dialog_zones_by_polygon.cpp
    dist.cpp
+1 −36
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ static int tri_modules( MODULE** pt_ref, MODULE** pt_compare );

/* Variables locales */
wxString ModulesMaskSelection = wxT( "*" );
int      ModulesNewOrient;


/******************************************************/
@@ -146,7 +145,7 @@ void WinEDA_PcbFrame::AutoPlace( wxCommandEvent& event )
        break;

    case ID_POPUP_PCB_REORIENT_ALL_MODULES:
        ReOrientModules( ModulesMaskSelection, ModulesNewOrient, FALSE, &dc );
        OnOrientFootprints( );
        break;

    case ID_POPUP_PCB_AUTOROUTE_ALL_MODULES:
@@ -328,40 +327,6 @@ void WinEDA_PcbFrame::FixeModule( MODULE* Module, bool Fixe )
}


/*******************************************************************/
void WinEDA_PcbFrame::ReOrientModules( const wxString& ModuleMask,
                                       int Orient, bool include_fixe, wxDC* DC )
/*******************************************************************/

/*
 *  Reoriente tous les modules selon masque et attribut, avec la nouvelle
 *  orientation selectionnee
 */
{
    MODULE*  Module;
    wxString line;

    line.Printf( _( "Ok to set module orientation to %d degrees ?" ), Orient / 10 );
    if( !IsOK( this, line ) )
        return;

    Module = m_Pcb->m_Modules;
    for( ; Module != NULL; Module = (MODULE*) Module->Pnext )
    {
        if( Module->IsLocked() && !include_fixe )
            continue;

        if( WildCompareString( ModuleMask, Module->m_Reference->m_Text, FALSE ) )
        {
            GetScreen()->SetModify();
            Module->Draw( DrawPanel, DC, GR_XOR );
            Rotate_Module( NULL, Module, Orient, FALSE );
            Module->Draw( DrawPanel, DC, GR_OR );
        }
    }
}


/*********************************************************/
MODULE** GenListeModules( BOARD* Pcb, int* NbModules )
/*********************************************************/
Loading