pcb 4.1.1
An interactive printed circuit board layout editor.

select.h File Reference

Prototypes for select routines. More...

#include "global.h"
Include dependency graph for select.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SELECT_TYPES

Functions

bool SelectObject (void)
 Toggles the selection of any kind of object.
bool SelectBlock (BoxType *, bool)
 Selects/unselects all visible objects within the passed box.
bool SelectedOperation (ObjectFunctionType *, bool, int)
 Performs several operations on selected objects which are also visible.
void * ObjectOperation (ObjectFunctionType *, int, void *, void *, void *)
 Performs several operations on the passed object.
bool SelectByFlag (int flag, bool select)
 Selects/unselects all objects which have (any of) the specified flag(s) set.
bool SelectBuriedVias (bool select)
 Selects all blind/buried vias.

Detailed Description

Prototypes for select routines.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 1994,1995,1996 Thomas Nau

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Contact addresses for paper mail and Email:

Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany

Thomas.Nau@rz.uni-ulm.de

Definition in file select.h.


Define Documentation

#define SELECT_TYPES
Value:
(VIA_TYPE | LINE_TYPE | TEXT_TYPE | POLYGON_TYPE | ELEMENT_TYPE |       \
         PIN_TYPE | PAD_TYPE | ELEMENTNAME_TYPE | RATLINE_TYPE | ARC_TYPE)

Definition at line 40 of file select.h.

Referenced by NotifyMode(), and SelectObject().


Function Documentation

bool SelectBlock ( BoxType Box,
bool  select 
)
bool SelectBuriedVias ( bool  select)

Selects all blind/buried vias.

Returns:
true if any object has been selected.

Definition at line 1027 of file select.c.

References AddObjectToFlagUndoList(), ASSIGN_FLAG, PCBType::Data, END_LOOP, PCB, TEST_FLAG, VIA_IS_BURIED, and VIA_LOOP.

Referenced by ActionSelect().

Here is the call graph for this function:

bool SelectByFlag ( int  flag,
bool  select 
)

Selects/unselects all objects which have (any of) the specified flag(s) set.

This is typically the FOUNDFLAG, assigned during a connection scan.

"select" determines if they are to be selected or unselected.

Returns:
true if the state of any object has changed.
Note:
Text objects and elements cannot be selected by this routine.

Definition at line 728 of file select.c.

References AddObjectToFlagUndoList(), ALLPAD_LOOP, ALLPIN_LOOP, ASSIGN_FLAG, PCBType::Data, DrawArc(), DrawLine(), DrawPad(), DrawPin(), DrawPolygon(), DrawRat(), DrawVia(), PCBType::ElementOn, END_LOOP, ENDALL_LOOP, layer, line, PCB, pin, PCBType::PinOn, RAT_LOOP, PCBType::RatOn, TEST_FLAG, VIA_LOOP, PCBType::ViaOn, VISIBLEARC_LOOP, VISIBLELINE_LOOP, and VISIBLEPOLYGON_LOOP.

Referenced by ActionSelect(), ActionUnselect(), nbcb_select_common(), and netlist_select_cb().

Here is the call graph for this function: