mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-14 19:49:36 +00:00
Doxygen comment warning fixes.
This commit is contained in:
parent
f6def3eaf4
commit
a9010796e0
3d-viewer
common
eeschema
class_libentry.hdialog_erc_listbox.hfiles-io.cpplib_circle.cpplib_circle.hlib_field.hlib_pin.cpplib_pin.hnetform.cppnetlist_control.cppnetlist_control.htransform.h
include
pcbnew
autoplac.cppblock.cppboard_items_to_polygon_shape_transform.cppboard_undo_redo.cppclass_board.cppclass_board.hclass_dimension.cppclass_dimension.hclass_drawsegment.cppclass_drawsegment.hclass_edge_mod.cppclass_marker_pcb.cppclass_marker_pcb.hclass_mire.cppclass_mire.hclass_module.cppclass_module.hclass_module_transform_functions.cppclass_netclass.hclass_netinfo.hclass_netinfo_item.cppclass_pad.cppclass_pad.hclass_pad_draw_functions.cppclass_pcb_layer_widget.hclass_pcb_text.cppclass_pcb_text.hclass_text_mod.cppclass_text_mod.hclass_track.cppclass_track.hcollectors.cppcollectors.hdrc.cppdrc_stuff.hedgemod.cppedit_track_width.cppfiles.cpphotkeys_board_editor.cpplayer_widget.hlibrairi.cpploadcmp.cppmagnetic_tracks_functions.cppmodule_editor_frame.hmodules.cppnetlist.cppprint_board_functions.cppratsnest.cpptrack.cppzones_by_polygon_fill_functions.cppzones_convert_brd_items_to_polygons_with_Kbool.cppzones_functions_for_undo_redo.hzones_test_and_combine_areas.cpp
@ -386,12 +386,12 @@ void Pcb3D_GLCanvas::Draw3D_Track( TRACK* track )
|
||||
/**
|
||||
* Function Draw3D_SolidPolygonsInZones
|
||||
* draw all solid polygons used as filles areas in a zone
|
||||
* @param aZone_c = the zone to draw
|
||||
* @param aZone = the zone to draw
|
||||
*/
|
||||
void Pcb3D_GLCanvas::Draw3D_SolidPolygonsInZones( ZONE_CONTAINER* zone_c )
|
||||
void Pcb3D_GLCanvas::Draw3D_SolidPolygonsInZones( ZONE_CONTAINER* aZone )
|
||||
{
|
||||
double zpos;
|
||||
int layer = zone_c->GetLayer();
|
||||
int layer = aZone->GetLayer();
|
||||
|
||||
if( g_Parm_3D_Visu.m_BoardSettings->IsLayerVisible( layer ) == false )
|
||||
return;
|
||||
@ -420,7 +420,7 @@ void Pcb3D_GLCanvas::Draw3D_SolidPolygonsInZones( ZONE_CONTAINER* zone_c )
|
||||
|
||||
// Draw solid areas contained in this zone
|
||||
int StartContour = 1;
|
||||
for( unsigned ii = 0; ii < zone_c->m_FilledPolysList.size(); ii++ )
|
||||
for( unsigned ii = 0; ii < aZone->m_FilledPolysList.size(); ii++ )
|
||||
{
|
||||
if( StartContour == 1 )
|
||||
{
|
||||
@ -428,11 +428,11 @@ void Pcb3D_GLCanvas::Draw3D_SolidPolygonsInZones( ZONE_CONTAINER* zone_c )
|
||||
gluTessBeginContour( tess );
|
||||
StartContour = 0;
|
||||
}
|
||||
v_data[0] = zone_c->m_FilledPolysList[ii].x * g_Parm_3D_Visu.m_BoardScale;
|
||||
v_data[1] = -zone_c->m_FilledPolysList[ii].y * g_Parm_3D_Visu.m_BoardScale;
|
||||
gluTessVertex( tess, v_data, &zone_c->m_FilledPolysList[ii] );
|
||||
v_data[0] = aZone->m_FilledPolysList[ii].x * g_Parm_3D_Visu.m_BoardScale;
|
||||
v_data[1] = -aZone->m_FilledPolysList[ii].y * g_Parm_3D_Visu.m_BoardScale;
|
||||
gluTessVertex( tess, v_data, &aZone->m_FilledPolysList[ii] );
|
||||
|
||||
if( zone_c->m_FilledPolysList[ii].end_contour == 1 )
|
||||
if( aZone->m_FilledPolysList[ii].end_contour == 1 )
|
||||
{
|
||||
gluTessEndContour( tess );
|
||||
gluTessEndPolygon( tess );
|
||||
|
@ -173,9 +173,9 @@ public:
|
||||
/**
|
||||
* Function Draw3D_SolidPolygonsInZones
|
||||
* draw all solid polygons used as filles areas in a zone
|
||||
* @param aZone_c = the zone to draw
|
||||
* @param aZone = the zone to draw
|
||||
*/
|
||||
void Draw3D_SolidPolygonsInZones( ZONE_CONTAINER* aZone_c );
|
||||
void Draw3D_SolidPolygonsInZones( ZONE_CONTAINER* aZone );
|
||||
|
||||
/**
|
||||
* Function Draw3D_Polygon
|
||||
|
@ -267,9 +267,11 @@ void GERBER_PLOTTER::rect( wxPoint p1, wxPoint p2, FILL_T fill, int width )
|
||||
* Plot one circle as segments (6 to 16 depending on its radius
|
||||
* @param aCentre = center coordinates
|
||||
* @param aDiameter = diameter of the circle
|
||||
* @param aFill = plot option (NO_FILL, FILLED_SHAPE, FILLED_WITH_BG_BODYCOLOR)
|
||||
* not used here: circles are always not filled the gerber. Filled circles are flashed
|
||||
* @param aWidth = line width
|
||||
*/
|
||||
void GERBER_PLOTTER::circle( wxPoint aCentre, int aDiameter, FILL_T fill,
|
||||
void GERBER_PLOTTER::circle( wxPoint aCentre, int aDiameter, FILL_T aFill,
|
||||
int aWidth )
|
||||
{
|
||||
wxASSERT( output_file );
|
||||
|
@ -944,9 +944,10 @@ void WinEDA_DrawPanel::DrawGrid( wxDC* DC )
|
||||
* Function DrawAuxiliaryAxis
|
||||
* Draw the Auxiliary Axis, used in pcbnew which as origin coordinates
|
||||
* for gerber and excellon files
|
||||
* @param DC = current Device Context
|
||||
* @param aDC = current Device Context
|
||||
* @param aDrawMode = draw mode (GR_COPY, GR_OR ..)
|
||||
*/
|
||||
void WinEDA_DrawPanel::DrawAuxiliaryAxis( wxDC* DC, int drawmode )
|
||||
void WinEDA_DrawPanel::DrawAuxiliaryAxis( wxDC* aDC, int aDrawMode )
|
||||
{
|
||||
if( m_Parent->m_Auxiliary_Axis_Position == wxPoint( 0, 0 ) )
|
||||
return;
|
||||
@ -954,10 +955,10 @@ void WinEDA_DrawPanel::DrawAuxiliaryAxis( wxDC* DC, int drawmode )
|
||||
int Color = DARKRED;
|
||||
BASE_SCREEN* screen = GetScreen();
|
||||
|
||||
GRSetDrawMode( DC, drawmode );
|
||||
GRSetDrawMode( aDC, aDrawMode );
|
||||
|
||||
/* Draw the Y axis */
|
||||
GRDashedLine( &m_ClipBox, DC,
|
||||
GRDashedLine( &m_ClipBox, aDC,
|
||||
m_Parent->m_Auxiliary_Axis_Position.x,
|
||||
-screen->ReturnPageSize().y,
|
||||
m_Parent->m_Auxiliary_Axis_Position.x,
|
||||
@ -965,7 +966,7 @@ void WinEDA_DrawPanel::DrawAuxiliaryAxis( wxDC* DC, int drawmode )
|
||||
0, Color );
|
||||
|
||||
/* Draw the X axis */
|
||||
GRDashedLine( &m_ClipBox, DC,
|
||||
GRDashedLine( &m_ClipBox, aDC,
|
||||
-screen->ReturnPageSize().x,
|
||||
m_Parent->m_Auxiliary_Axis_Position.y,
|
||||
screen->ReturnPageSize().x,
|
||||
@ -974,7 +975,7 @@ void WinEDA_DrawPanel::DrawAuxiliaryAxis( wxDC* DC, int drawmode )
|
||||
}
|
||||
|
||||
/********************************************************************/
|
||||
void WinEDA_DrawPanel::DrawGridAxis( wxDC* DC, int drawmode )
|
||||
void WinEDA_DrawPanel::DrawGridAxis( wxDC* aDC, int aDrawMode )
|
||||
/********************************************************************/
|
||||
{
|
||||
BASE_SCREEN* screen = GetScreen();
|
||||
@ -985,10 +986,10 @@ void WinEDA_DrawPanel::DrawGridAxis( wxDC* DC, int drawmode )
|
||||
|
||||
int Color = m_Parent->GetGridColor();
|
||||
|
||||
GRSetDrawMode( DC, drawmode );
|
||||
GRSetDrawMode( aDC, aDrawMode );
|
||||
|
||||
/* Draw the Y axis */
|
||||
GRDashedLine( &m_ClipBox, DC,
|
||||
GRDashedLine( &m_ClipBox, aDC,
|
||||
screen->m_GridOrigin.x,
|
||||
-screen->ReturnPageSize().y,
|
||||
screen->m_GridOrigin.x,
|
||||
@ -996,7 +997,7 @@ void WinEDA_DrawPanel::DrawGridAxis( wxDC* DC, int drawmode )
|
||||
0, Color );
|
||||
|
||||
/* Draw the X axis */
|
||||
GRDashedLine( &m_ClipBox, DC,
|
||||
GRDashedLine( &m_ClipBox, aDC,
|
||||
-screen->ReturnPageSize().x,
|
||||
screen->m_GridOrigin.y,
|
||||
screen->ReturnPageSize().x,
|
||||
|
@ -514,7 +514,7 @@ public:
|
||||
* @return The draw object if found. Otherwise NULL.
|
||||
*/
|
||||
LIB_DRAW_ITEM* LocateDrawItem( int aUnit, int aConvert, KICAD_T aType,
|
||||
const wxPoint& aPoint, const TRANSFORM& aTransfrom );
|
||||
const wxPoint& aPoint, const TRANSFORM& aTransform );
|
||||
|
||||
/**
|
||||
* Return a reference to the draw item list.
|
||||
|
@ -40,10 +40,8 @@ public:
|
||||
|
||||
|
||||
/**
|
||||
* Function SetList
|
||||
* sets the DRC_ITEM_LIST for this listbox. Ownership of the DRC_ITEM_LIST
|
||||
* is transferred to this ERC_HTML_LISTBOX.
|
||||
* @param aList The DRC_ITEM_LIST* containing the DRC_ITEMs which will be
|
||||
* Function AppendToList
|
||||
* @param aItem The SCH_MARKER* to add to the current list which will be
|
||||
* displayed in the wxHtmlListBox
|
||||
*/
|
||||
void AppendToList( SCH_MARKER* aItem )
|
||||
@ -87,7 +85,7 @@ public:
|
||||
|
||||
|
||||
/**
|
||||
* Function OnGetItem
|
||||
* Function OnGetItemMarkup
|
||||
* returns the html text associated with the given index 'n'.
|
||||
* @param n An index into the list.
|
||||
* @return wxString - the simple html text to show in the listbox.
|
||||
|
@ -308,7 +308,7 @@ bool SCH_EDIT_FRAME::LoadOneEEProject( const wxString& FileName, bool IsNew )
|
||||
/**
|
||||
* Save the entire project and create an archive for components.
|
||||
*
|
||||
* The library archive name is <root_name>-cache.lib
|
||||
* The library archive name is <root_name>-cache.lib
|
||||
*/
|
||||
void SCH_EDIT_FRAME::SaveProject()
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ bool LIB_CIRCLE::Load( char* aLine, wxString& aErrorMsg )
|
||||
/**
|
||||
* Function HitTest
|
||||
* tests if the given wxPoint is within the bounds of this object.
|
||||
* @param aRefPos A wxPoint to test in eeschema space
|
||||
* @param aPosRef A wxPoint to test in eeschema space
|
||||
* @return - true if a hit, else false
|
||||
*/
|
||||
bool LIB_CIRCLE::HitTest( const wxPoint& aPosRef )
|
||||
|
@ -50,10 +50,10 @@ public:
|
||||
/**
|
||||
* Test if the given point is within the bounds of this object.
|
||||
*
|
||||
* @param aRefPos - A wxPoint to test
|
||||
* @param aPosRef - A wxPoint to test
|
||||
* @return bool - true if a hit, else false
|
||||
*/
|
||||
virtual bool HitTest( const wxPoint& aRefPos );
|
||||
virtual bool HitTest( const wxPoint& aPosRef );
|
||||
|
||||
/**
|
||||
* @param aPosRef - a wxPoint to test
|
||||
|
@ -140,7 +140,7 @@ public:
|
||||
/**
|
||||
* Test if the given point is within the bounds of this object.
|
||||
*
|
||||
* @param aPoition A point to test in field coordinate system
|
||||
* @param aPosition A point to test in field coordinate system
|
||||
* @return True if a hit, else false
|
||||
*/
|
||||
bool HitTest( const wxPoint& aPosition );
|
||||
|
@ -1842,7 +1842,7 @@ wxArrayString LIB_PIN::GetElectricalTypeNames( void )
|
||||
|
||||
|
||||
/**
|
||||
* Get a list of pin electrical type names.
|
||||
* Get a list of pin electrical type icons.
|
||||
* @return List of valid pin electrical type bitmaps symbols in .xpm format
|
||||
* for menus and dialogs .
|
||||
*/
|
||||
@ -1853,7 +1853,7 @@ const char*** LIB_PIN::GetElectricalTypeSymbols( void )
|
||||
|
||||
|
||||
/**
|
||||
* Get a list of pin electrical type names.
|
||||
* Get a list of pin orientation icons.
|
||||
*
|
||||
* @return List of valid pin orientation bitmaps symbols in .xpm format
|
||||
* for menus and dialogs .
|
||||
|
@ -147,7 +147,7 @@ public:
|
||||
* @param aPosRef - a wxPoint to test
|
||||
* @param aThreshold - max distance to this object (usually the half
|
||||
* thickness of a line)
|
||||
* @param aTransMat - the transform matrix
|
||||
* @param aTransform - the transform matrix
|
||||
* @return - true if the point aPosRef is near this object
|
||||
*/
|
||||
virtual bool HitTest( wxPoint aPosRef, int aThreshold, const TRANSFORM& aTransform );
|
||||
|
@ -240,6 +240,8 @@ public:
|
||||
/**
|
||||
* Function WriteGENERICNetList
|
||||
* creates a generic netlist, now in XML.
|
||||
* @param frame = the parent SCH_EDIT_FRAME frame
|
||||
* @param aOutFileName = the full filename of the file to create
|
||||
* @return bool - true if there were no errors, else false.
|
||||
*/
|
||||
bool WriteGENERICNetList( SCH_EDIT_FRAME* frame, const wxString& aOutFileName );
|
||||
@ -248,6 +250,8 @@ public:
|
||||
* Function WriteNetListPCBNEW
|
||||
* generates a net list file (Format 2 improves ORCAD PCB)
|
||||
*
|
||||
* @param frame = the parent SCH_EDIT_FRAME frame
|
||||
* @param f = the file to write to
|
||||
* @param with_pcbnew if true, then format Pcbnew (OrcadPcb2 + reviews and lists of net),<p>
|
||||
* else output ORCADPCB2 strict format.
|
||||
*/
|
||||
@ -291,6 +295,8 @@ public:
|
||||
* Are considered in placing orders in the netlist
|
||||
* [.-] Or PSpice gnucap are beginning
|
||||
* + + Gnucap and PSpice are ultimately NetList
|
||||
* @param frame = the parent SCH_EDIT_FRAME frame
|
||||
* @param f = the file to write to
|
||||
* @param use_netnames if true, then nodes are identified by the netname,
|
||||
* else by net number.
|
||||
*/
|
||||
|
@ -81,14 +81,8 @@ END_EVENT_TABLE()
|
||||
/*******************************/
|
||||
|
||||
|
||||
/** Contructor to create a setup page for one netlist format.
|
||||
/* Contructor to create a setup page for one netlist format.
|
||||
* Used in Netlist format Dialog box creation
|
||||
* @param parent = wxNotebook * parent
|
||||
* @param title = title (name) of the notebook page
|
||||
* @param id_NetType = netlist type id
|
||||
* @param idCheckBox = event ID attached to the "format is default" check box
|
||||
* @param idCreateFile = event ID attached to the "create netlist" button
|
||||
* @param selected - Please document me.
|
||||
*/
|
||||
EDA_NoteBookPage::EDA_NoteBookPage( wxNotebook* parent,
|
||||
const wxString& title,
|
||||
|
@ -50,6 +50,16 @@ public:
|
||||
wxBoxSizer* m_RightOptionsBoxSizer;
|
||||
wxBoxSizer* m_LowBoxSizer;
|
||||
|
||||
/** Contructor to create a setup page for one netlist format.
|
||||
* Used in Netlist format Dialog box creation
|
||||
* @param parent = wxNotebook * parent
|
||||
* @param title = title (name) of the notebook page
|
||||
* @param id_NetType = netlist type id
|
||||
* @param idCheckBox = event ID attached to the "format is default" check box
|
||||
* @param idCreateFile = event ID attached to the "create netlist" button
|
||||
* @param selected = true to have this notebook page selected when the dialog is opened
|
||||
* Only one page can be created with selected = true.
|
||||
*/
|
||||
EDA_NoteBookPage( wxNotebook* parent, const wxString& title,
|
||||
int id_NetType, int idCheckBox, int idCreateFile,
|
||||
bool selected );
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
/**
|
||||
* Calculate new coordinate according to the transform.
|
||||
*
|
||||
* @param aPosition = The position to transform
|
||||
* @param aPoint = The position to transform
|
||||
* @return The transformed coordinate.
|
||||
*/
|
||||
wxPoint TransformCoordinate( const wxPoint& aPoint ) const;
|
||||
|
@ -155,11 +155,11 @@ public:
|
||||
* Function MenuText
|
||||
* returns the text to use in any menu type UI control which must uniquely
|
||||
* identify this item.
|
||||
* @param aBoard The PCB in which this item resides, needed for Net lookup.
|
||||
* @param aPcb The PCB in which this item resides, needed for Net lookup.
|
||||
* @return wxString
|
||||
* @todo: maybe: make this virtual and split into each derived class
|
||||
*/
|
||||
wxString MenuText( const BOARD* aBoard ) const;
|
||||
wxString MenuText( const BOARD* aPcb ) const;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -178,9 +178,9 @@ public:
|
||||
/**
|
||||
* Function CursorRealPosition
|
||||
* @return the position in user units of location ScreenPos
|
||||
* @param ScreenPos = the screen (in pixel) position to convert
|
||||
* @param aPosition = the screen (in pixel) position to convert
|
||||
*/
|
||||
wxPoint CursorRealPosition( const wxPoint& ScreenPos );
|
||||
wxPoint CursorRealPosition( const wxPoint& aPosition );
|
||||
|
||||
/**
|
||||
* Function CursorScreenPosition
|
||||
|
@ -300,7 +300,7 @@ public:
|
||||
/**
|
||||
* Function Select_1_Module_From_List
|
||||
* Display a list of modules found in active libraries or a given library
|
||||
* @param active_window = the current window ( parent window )
|
||||
* @param aWindow = the current window ( parent window )
|
||||
* @param aLibraryFullFilename = library to list (if aLibraryFullFilename
|
||||
* == void, list all modules)
|
||||
* @param aMask = Display filter (wildcart)( Mask = wxEmptyString if not
|
||||
@ -313,18 +313,52 @@ public:
|
||||
* Ok
|
||||
*/
|
||||
wxString Select_1_Module_From_List(
|
||||
WinEDA_DrawFrame* active_window, const wxString& aLibraryFullFilename,
|
||||
WinEDA_DrawFrame* aWindow, const wxString& aLibraryFullFilename,
|
||||
const wxString& aMask, const wxString& aKeyWord );
|
||||
|
||||
MODULE* Load_Module_From_Library( const wxString& library, wxDC* DC );
|
||||
|
||||
// ratsnest functions
|
||||
void Compile_Ratsnest( wxDC* DC, bool affiche );
|
||||
int Test_1_Net_Ratsnest( wxDC* DC, int net_code );
|
||||
void build_ratsnest_module( wxDC* DC, MODULE* Module );
|
||||
/**
|
||||
* Function Compile_Ratsnest
|
||||
* Create the entire board ratsnest.
|
||||
* Must be called after a board change (changes for
|
||||
* pads, footprints or a read netlist ).
|
||||
* @param aDC = the current device context (can be NULL)
|
||||
* @param aDisplayStatus : if true, display the computation results
|
||||
*/
|
||||
void Compile_Ratsnest( wxDC* aDC, bool aDisplayStatus );
|
||||
|
||||
/**
|
||||
* Function Test_1_Net_Ratsnest
|
||||
* Compute the ratsnest relative to the net "net_code"
|
||||
* @param aDC - Device context to draw on.
|
||||
* @param aNetcode = netcode used to compute the ratsnest.
|
||||
*/
|
||||
int Test_1_Net_Ratsnest( wxDC* aDC, int aNetcode );
|
||||
|
||||
/**
|
||||
* Function build_ratsnest_module
|
||||
* Build a ratsnest relative to one footprint. This is a simplified computation
|
||||
* used only in move footprint. It is not optimal, but it is fast and sufficient
|
||||
* to help a footprint placement
|
||||
* It shows the connections from a pad to the nearest connected pad
|
||||
* @param aModule = module to consider.
|
||||
*/
|
||||
void build_ratsnest_module( MODULE* aModule );
|
||||
|
||||
void trace_ratsnest_module( wxDC* DC );
|
||||
void Build_Board_Ratsnest( wxDC* DC );
|
||||
void DrawGeneralRatsnest( wxDC* DC, int net_code = 0 );
|
||||
|
||||
/**
|
||||
* function Displays the general ratsnest
|
||||
* Only ratsnest with the status bit CH_VISIBLE is set are displayed
|
||||
* @param aDC = the current device context (can be NULL)
|
||||
* @param aNetcode if > 0, Display only the ratsnest relative to the
|
||||
* corresponding net_code
|
||||
*/
|
||||
void DrawGeneralRatsnest( wxDC* aDC, int aNetcode = 0 );
|
||||
|
||||
void trace_ratsnest_pad( wxDC* DC );
|
||||
void build_ratsnest_pad( BOARD_ITEM* ref,
|
||||
const wxPoint& refpos,
|
||||
|
@ -162,12 +162,12 @@ public:
|
||||
* Print the page pointed by ActiveScreen, set by the calling print function
|
||||
* @param aDC = wxDC given by the calling print function
|
||||
* @param aPrint_Sheet_Ref = true to print page references
|
||||
* @param aPrintMask = not used here
|
||||
* @param aPrintMirrorMode = not used here (Set when printing in mirror mode)
|
||||
* @param aPrintMaskLayer = a 32 bits mask: bit n = 1 -> layer n is printed
|
||||
* @param aPrintMirrorMode = true to plot mirrored
|
||||
* @param aData = a pointer on an auxiliary data (NULL if not used)
|
||||
*/
|
||||
virtual void PrintPage( wxDC* aDC, bool aPrint_Sheet_Ref,
|
||||
int aPrintMask, bool aPrintMirrorMode,
|
||||
int aPrintMaskLayer, bool aPrintMirrorMode,
|
||||
void * aData = NULL );
|
||||
|
||||
void GetKicadAbout( wxCommandEvent& event );
|
||||
@ -713,7 +713,17 @@ public:
|
||||
// Footprint edition (see also WinEDA_BasePcbFrame)
|
||||
void InstallModuleOptionsFrame( MODULE* Module, wxDC* DC );
|
||||
void StartMove_Module( MODULE* module, wxDC* DC );
|
||||
bool Delete_Module( MODULE* module, wxDC* DC, bool aAskBeforeDeleting );
|
||||
|
||||
/**
|
||||
* Function Delete Module
|
||||
* Remove a footprint from m_Modules linked list and put it in undelete buffer
|
||||
* The ratsnest and pad list are recalculated
|
||||
* @param aModule = footprint to delete
|
||||
* @param aDC = currentDevice Context. if NULL: do not redraw new ratsnest
|
||||
* @param aAskBeforeDeleting : if true: ask for confirmation before deleting
|
||||
*/
|
||||
bool Delete_Module( MODULE* aModule, wxDC* aDC, bool aAskBeforeDeleting );
|
||||
|
||||
void Change_Side_Module( MODULE* Module, wxDC* DC );
|
||||
|
||||
void InstallExchangeModuleFrame( MODULE* ExchangeModuleModule );
|
||||
|
@ -660,7 +660,7 @@ int WinEDA_PcbFrame::RecherchePlacementModule( MODULE* Module, wxDC* DC )
|
||||
if( Penalite >= 0 ) /* c a d if the module can be placed. */
|
||||
{
|
||||
error = 0;
|
||||
build_ratsnest_module( DC, Module );
|
||||
build_ratsnest_module( Module );
|
||||
cout = Compute_Ratsnest_PlaceModule( DC );
|
||||
DisplayChevelu = 1;
|
||||
Score = cout + (float) Penalite;
|
||||
@ -1047,7 +1047,7 @@ static MODULE* PickModule( WinEDA_PcbFrame* pcbframe, wxDC* DC )
|
||||
continue;
|
||||
pcbframe->GetBoard()->m_Status_Pcb &= ~RATSNEST_ITEM_LOCAL_OK;
|
||||
Module->DisplayInfo( pcbframe );
|
||||
pcbframe->build_ratsnest_module( DC, Module );
|
||||
pcbframe->build_ratsnest_module( Module );
|
||||
|
||||
/* Calculate external ratsnet. */
|
||||
for( unsigned ii = 0;
|
||||
|
@ -378,12 +378,11 @@ bool WinEDA_PcbFrame::HandleBlockEnd( wxDC* DC )
|
||||
|
||||
/* Block operations: */
|
||||
|
||||
/**
|
||||
/*
|
||||
* Function Block_SelectItems
|
||||
* Uses GetScreen()->m_BlockLocate
|
||||
* select items within the selected block.
|
||||
* selected items are put in the pick list
|
||||
* @param none
|
||||
*/
|
||||
void WinEDA_PcbFrame::Block_SelectItems()
|
||||
{
|
||||
@ -657,11 +656,10 @@ void WinEDA_PcbFrame::Block_Delete()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Function Block_Rotate
|
||||
* Rotate all items within the selected block.
|
||||
* The rotation center is the center of the block
|
||||
* @param none
|
||||
*/
|
||||
void WinEDA_PcbFrame::Block_Rotate()
|
||||
{
|
||||
@ -726,7 +724,6 @@ void WinEDA_PcbFrame::Block_Rotate()
|
||||
* Function Block_Flip
|
||||
* flips items within the selected block.
|
||||
* The flip center is the center of the block
|
||||
* @param none
|
||||
*/
|
||||
void WinEDA_PcbFrame::Block_Flip()
|
||||
{
|
||||
@ -788,12 +785,11 @@ void WinEDA_PcbFrame::Block_Flip()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Function Block_Move
|
||||
* moves all tracks and segments within the selected block.
|
||||
* New location is determined by the current offset from the selected block's
|
||||
* original location.
|
||||
* @param none
|
||||
*/
|
||||
void WinEDA_PcbFrame::Block_Move()
|
||||
{
|
||||
@ -849,12 +845,11 @@ void WinEDA_PcbFrame::Block_Move()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Function Block_Duplicate
|
||||
* duplicates all items within the selected block.
|
||||
* New location is determined by the current offset from the selected block's
|
||||
* original location.
|
||||
* @param none
|
||||
*/
|
||||
void WinEDA_PcbFrame::Block_Duplicate()
|
||||
{
|
||||
|
@ -558,6 +558,7 @@ void D_PAD:: TransformShapeWithClearanceToPolygon( std:: vector < CPolyPt>& aCor
|
||||
* @param aCornerBuffer = a buffer to store the polygon
|
||||
* @param aPad = the current pad used to create the thermal shape
|
||||
* @param aThermalGap = gap in thermal shape
|
||||
* @param aCopperThickness = stubs thickness in thermal shape
|
||||
* @param aMinThicknessValue = min copper thickness allowed
|
||||
* @param aCircleToSegmentsCount = the number of segments to approximate a circle
|
||||
* @param aCorrectionFactor = the correction to apply to circles radius to keep
|
||||
|
@ -326,22 +326,17 @@ BOARD_ITEM* DuplicateStruct( BOARD_ITEM* aItem )
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Function SaveCopyInUndoList
|
||||
* Create a copy of the current schematic item, and put it in the undo list.
|
||||
* Create a copy of the current board item, and put it in the undo list.
|
||||
*
|
||||
* flag_type_command =
|
||||
* aCommandType =
|
||||
* UR_CHANGED
|
||||
* UR_NEW
|
||||
* UR_DELETED
|
||||
* UR_MOVED
|
||||
* UR_FLIPPED
|
||||
* UR_ROTATED
|
||||
*
|
||||
* If it is a delete command, items are put on list with the .Flags member set to UR_DELETED.
|
||||
* When it will be really deleted, the EEDrawList and the subhierarchy will be deleted.
|
||||
* If it is only a copy, the EEDrawList and the subhierarchy must NOT be deleted.
|
||||
*
|
||||
*/
|
||||
void WinEDA_PcbFrame::SaveCopyInUndoList( BOARD_ITEM* aItem,
|
||||
UndoRedoOpType aCommandType,
|
||||
|
@ -1180,15 +1180,15 @@ SEARCH_RESULT BOARD::Visit( INSPECTOR* inspector, const void* testData,
|
||||
/**
|
||||
* Function FindNet
|
||||
* searches for a net with the given netcode.
|
||||
* @param anetcode The netcode to search for.
|
||||
* @param aNetcode The netcode to search for.
|
||||
* @return NETINFO_ITEM* - the net or NULL if not found.
|
||||
*/
|
||||
NETINFO_ITEM* BOARD::FindNet( int anetcode ) const
|
||||
NETINFO_ITEM* BOARD::FindNet( int aNetcode ) const
|
||||
{
|
||||
// the first valid netcode is 1 and the last is m_NetInfo->GetCount()-1.
|
||||
// zero is reserved for "no connection" and is not used.
|
||||
// NULL is returned for non valid netcodes
|
||||
NETINFO_ITEM* net = m_NetInfo->GetNetItem( anetcode );
|
||||
NETINFO_ITEM* net = m_NetInfo->GetNetItem( aNetcode );
|
||||
|
||||
#if defined(DEBUG)
|
||||
if( net ) // item can be NULL if anetcode is not valid
|
||||
@ -1196,7 +1196,7 @@ NETINFO_ITEM* BOARD::FindNet( int anetcode ) const
|
||||
if( anetcode != net->GetNet() )
|
||||
{
|
||||
printf( "FindNet() anetcode %d != GetNet() %d (net: %s)\n",
|
||||
anetcode, net->GetNet(), CONV_TO_UTF8( net->GetNetname() ) );
|
||||
aNetcode, net->GetNet(), CONV_TO_UTF8( net->GetNetname() ) );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -1431,7 +1431,7 @@ out:
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Function RedrawAreasOutlines
|
||||
* Redraw all areas outlines on layer aLayer ( redraw all if aLayer < 0 )
|
||||
*/
|
||||
@ -1479,7 +1479,7 @@ void BOARD::RedrawFilledAreas( WinEDA_DrawPanel* panel,
|
||||
* zone.
|
||||
* the test is made on zones on layer from aStartLayer to aEndLayer
|
||||
* Note: if a zone has its flag BUSY (in .m_State) is set, it is ignored.
|
||||
* @param refPos A wxPoint to test
|
||||
* @param aRefPos A wxPoint to test
|
||||
* @param aStartLayer the first layer to test
|
||||
* @param aEndLayer the last layer (-1 to ignore it) to test
|
||||
* @return ZONE_CONTAINER* return a pointer to the ZONE_CONTAINER found, else
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user