pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include <math.h>
#include "report.h"
#include "crosshair.h"
#include "data.h"
#include "drill.h"
#include "error.h"
#include "search.h"
#include "misc.h"
#include "mymem.h"
#include "rats.h"
#include "rtree.h"
#include "strflags.h"
#include "macro.h"
#include "undo.h"
#include "find.h"
#include "draw.h"
#include "pcb-printf.h"
Go to the source code of this file.
Defines | |
#define | USER_UNITMASK (Settings.grid_unit->allow) |
Functions | |
static int | ReportDrills (int argc, char **argv, Coord x, Coord y) |
static char * | CreateBuriedViaDescription (int from, int to) |
static int | ReportDialog (int argc, char **argv, Coord x, Coord y) |
static int | ReportFoundPins (int argc, char **argv, Coord x, Coord y) |
static double | XYtoNetLength (Coord x, Coord y, int *found) |
Assumes that we start with a blank connection state, e.g. ClearFlagOnAllObjects() has been run. | |
static int | ReportAllNetLengths (int argc, char **argv, Coord x, Coord y) |
static int | ReportNetLength (int argc, char **argv, Coord x, Coord y) |
static int | ReportNetLengthByName (char *tofind, int x, int y) |
static int | Report (int argc, char **argv, Coord x, Coord y) |
Reports on an object. | |
Variables | |
static const char | reportdialog_syntax [] = N_("ReportDialog()") |
static const char | reportdialog_help [] |
static const char | report_syntax [] |
static const char | report_help [] = N_("Produce various report.") |
HID_Action | report_action_list [] |
PCB, interactive printed circuit board design
Copyright (C) 1994,1995,1996,1997,1998,1999 Thomas Nau
This module, report.c, was written and is Copyright (C) 1997 harry eaton
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
Definition in file report.c.
#define USER_UNITMASK (Settings.grid_unit->allow) |
Definition at line 76 of file report.c.
Referenced by ReportDialog().
static char* CreateBuriedViaDescription | ( | int | from, |
int | to | ||
) | [static] |
Reports on an object.
Definition at line 1008 of file report.c.
References _, AFAIL, AUSAGE, hid_st::get_coords, gui, report, ReportAllNetLengths(), ReportDialog(), ReportDrills(), ReportFoundPins(), ReportNetLength(), and ReportNetLengthByName().
Definition at line 630 of file report.c.
References _, ClearFlagOnAllObjects(), PCBType::Data, ELEMENT_LOOP, END_LOOP, LibraryMenuType::Entry, SettingType::grid_unit, gui, IncrementUndoSerialNumber(), LibraryEntryType::ListEntry, hid_st::log, LibraryType::Menu, LibraryType::MenuN, LibraryMenuType::Name, NAMEONPCB_INDEX, PCBType::NetlistLib, pin_st::Number, PAD_LOOP, PCB, pcb_snprintf(), pin, PIN_LOOP, Settings, unit::suffix, Undo(), pin_st::X, XYtoNetLength(), and pin_st::Y.
Referenced by Report().
Definition at line 163 of file report.c.
References _, __r_dump_tree(), LayerType::arc_tree, box, pin_st::BuriedFrom, pin_st::BuriedTo, C_, ArcType::Clearance, pin_st::Clearance, CreateBuriedViaDescription(), PCBType::Data, ArcType::Delta, TextType::Direction, Distance(), pin_st::DrillingHole, DataType::element_tree, EMPTY, END_LOOP, flags_to_string(), GetArcEnds(), GetLayerNumber(), RatType::group1, RatType::group2, gui, polygon_st::HoleIndexN, PointType::ID, layer, len, line, LayerType::line_tree, ElementType::MarkX, ElementType::MarkY, pad_st::Mask, pin_st::Mask, Message(), pad_st::Name, ElementType::Name, pin_st::Name, NAME_INDEX, DataType::name_tree, pad_st::Number, LineType::Number, pin_st::Number, PAD_LOOP, DataType::pad_tree, PCB, pcb_snprintf(), pin, PIN_LOOP, DataType::pin_tree, polygon_st::PointMax, polygon_st::PointN, Polygon, LayerType::polygon_tree, ptr1, ptr2, ptr3, DataType::rat_tree, report, hid_st::report_dialog, REPORT_TYPES, rtree::root, TextType::Scale, SCALE_TEXT, SearchScreen(), hid_st::shift_is_pressed, ArcType::StartAngle, TEST_FLAG, LayerType::text_tree, TextType::TextString, ArcType::Thickness, pin_st::Thickness, UNKNOWN, USER_UNITMASK, DataType::via_tree, ArcType::Width, PointType::X, TextType::X, ArcType::X, pin_st::X, BoxType::X1, BoxType::X2, PointType::Y, TextType::Y, ArcType::Y, pin_st::Y, BoxType::Y1, and BoxType::Y2.
Referenced by Report().
Definition at line 79 of file report.c.
References _, PCBType::Data, DrillInfoType::Drill, DrillInfoType::DrillN, DrillType::DrillSize, DrillType::ElementN, FreeDrillInfo(), GetDrillInfo(), SettingType::grid_unit, gui, malloc(), n, PCB, pcb_snprintf(), DrillType::PinCount, hid_st::report_dialog, Settings, unit::suffix, DrillType::UnplatedCount, and DrillType::ViaCount.
Referenced by Report().
Definition at line 541 of file report.c.
References _, DynamicStringType::Data, PCBType::Data, DSAddString(), DSClearString(), ELEMENT_LOOP, END_LOOP, gui, NAMEONPCB_NAME, pin_st::Number, PAD_LOOP, PCB, pin, PIN_LOOP, hid_st::report_dialog, and TEST_FLAG.
Referenced by Report().
Definition at line 718 of file report.c.
References _, ClearFlagOnAllObjects(), Concat(), PCBType::Data, ELEMENT_LOOP, END_LOOP, LibraryMenuType::Entry, LibraryMenuType::EntryN, hid_st::get_coords, SettingType::grid_unit, gui, IncrementUndoSerialNumber(), LibraryEntryType::ListEntry, hid_st::log, LibraryType::Menu, LibraryType::MenuN, n, LibraryMenuType::Name, NAMEONPCB_INDEX, PCBType::NetlistLib, pin_st::Number, PAD_LOOP, PCB, pcb_snprintf(), pin, PIN_LOOP, Settings, unit::suffix, TEST_FLAG, Undo(), and XYtoNetLength().
Referenced by Report().
static int ReportNetLengthByName | ( | char * | tofind, |
int | x, | ||
int | y | ||
) | [static] |
Definition at line 819 of file report.c.
References _, ClearFlagOnAllObjects(), LibraryMenuType::Entry, SettingType::grid_unit, gui, IncrementUndoSerialNumber(), hid_st::log, LibraryType::Menu, LibraryType::MenuN, Message(), LibraryMenuType::Name, PCBType::NetlistLib, PCB, pcb_snprintf(), ConnectionType::ptr2, SeekPad(), Settings, unit::suffix, ConnectionType::type, Undo(), X, XYtoNetLength(), and Y.
Referenced by Report().
Assumes that we start with a blank connection state, e.g. ClearFlagOnAllObjects() has been run.
Does not add its own changes to the undo system
Definition at line 588 of file report.c.
References abs, ALLARC_LOOP, ALLLINE_LOOP, PCBType::Data, ENDALL_LOOP, PCBType::Grid, line, LookupConnection(), M_PI, PCB, and TEST_FLAG.
Referenced by ReportAllNetLengths(), ReportNetLength(), and ReportNetLengthByName().
{ {"ReportObject", N_("Click on an object"), ReportDialog, reportdialog_help, reportdialog_syntax} , {"Report", 0, Report, report_help, report_syntax} }
const char report_help[] = N_("Produce various report.") [static] |
const char report_syntax[] [static] |
const char reportdialog_help[] [static] |
const char reportdialog_syntax[] = N_("ReportDialog()") [static] |