pcb 4.1.1
An interactive printed circuit board layout editor.

report.c File Reference

More...

#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"
Include dependency graph for report.c:

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 []

Detailed Description


Copyright.


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

Thomas.Nau@rz.uni-ulm.de

Definition in file report.c.


Define Documentation

#define USER_UNITMASK   (Settings.grid_unit->allow)

Definition at line 76 of file report.c.

Referenced by ReportDialog().


Function Documentation

static char* CreateBuriedViaDescription ( int  from,
int  to 
) [static]

Definition at line 144 of file report.c.

References s.

Referenced by ReportDialog().

static int Report ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [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().

Here is the call graph for this function:

static int ReportDialog ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ReportDrills ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ReportFoundPins ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

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().

Here is the call graph for this function:

static int ReportNetLengthByName ( char *  tofind,
int  x,
int  y 
) [static]
static double XYtoNetLength ( Coord  x,
Coord  y,
int *  found 
) [static]

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().

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
  {"ReportObject", N_("Click on an object"), ReportDialog,
   reportdialog_help, reportdialog_syntax}
  ,
  {"Report", 0, Report,
   report_help, report_syntax}
}

Definition at line 1034 of file report.c.

const char report_help[] = N_("Produce various report.") [static]

Definition at line 974 of file report.c.

const char report_syntax[] [static]
Initial value:
  N_("Report(Object|DrillReport|FoundPins|NetLength|AllNetLengths|[,name])")

Definition at line 971 of file report.c.

const char reportdialog_help[] [static]
Initial value:
  N_("Report on the object under the crosshair")

Definition at line 139 of file report.c.

const char reportdialog_syntax[] = N_("ReportDialog()") [static]

Definition at line 137 of file report.c.