PCB-FPW developer documentation based on version: 0.0.11

Functions | Variables

pcb-lfpw.c File Reference

Lesstif program for the pcb footprintwizard (pcb-lfpw). More...

Go to the source code of this file.

Functions

int print_version ()
 Print the version of the Lesstif footprintwizard to stderr.
int print_usage ()
 Print the usage message for the Lesstif footprintwizard to stderr.
static int cmdline_options (int argc, char *argv[])
 Parse the command line options.
int main (int argc, char **argv)
 The Lesstif GUI for the footprintwizard.

Variables

XtAppContext appcontext
Widget main_window = NULL
Widget about_dialog = NULL
char * fpw_filename = NULL
char * program_name = NULL
Boolean debug = 0
Boolean silent = 0
Boolean verbose = 0

Detailed Description

Lesstif program for the pcb footprintwizard (pcb-lfpw).

Author:
Copyright 2007, 2008, 2009, 2010 by Bert Timmerman <bert.timmerman@xs4all.nl>

pcb-lfpw (LesstifFootPrintWizard) is a program for the creation of footprint files to be used by with the pcb layout application (see http://pcb.sourgeforge.net) for the placement of parts in a pcb layout.

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.

Definition in file pcb-lfpw.c.


Function Documentation

static int cmdline_options ( int  argc,
char *  argv[] 
) [static]

Parse the command line options.

Returns:
.

Definition at line 132 of file pcb-lfpw.c.

References debug, print_usage(), print_version(), silent, and verbose.

Referenced by main().

Here is the call graph for this function:

int main ( int  argc,
char **  argv 
)

The Lesstif GUI for the footprintwizard.

The CLI for the footprintwizard.

Returns:
EXIT_SUCCESS if successfull.
Parameters:
argc : number of arguments on CLI
argv : array of argument variables

Definition at line 193 of file pcb-lfpw.c.

References about_dialog, cmdline_options(), create_about_dialog(), create_main_window(), debug, footprint_filename, footprint_name, fp_suffix, main_window, print_usage(), print_version(), read_footprintwizard_file(), silent, verbose, and write_footprint().

Here is the call graph for this function:

int print_usage (  ) 

Print the usage message for the Lesstif footprintwizard to stderr.

Print the usage message for the footprintwizard to stderr.

Returns:
EXIT_SUCCESS.

Definition at line 107 of file pcb-lfpw.c.

int print_version (  ) 

Print the version of the Lesstif footprintwizard to stderr.

Print the version of the footprintwizard to stderr.

Returns:
EXIT_SUCCESS.

Definition at line 90 of file pcb-lfpw.c.


Variable Documentation

Widget about_dialog = NULL
Boolean debug = 0

Global for being verbose on debugging information.

Definition at line 76 of file pcb-lfpw.c.

Widget main_window = NULL

global main pcb-lfpw window

Definition at line 70 of file pcb-lfpw.c.

Referenced by change_main_window_title(), entry_has_changed(), and main().

Boolean silent = 0

Global for suppressing the logging of critical messages.

Definition at line 78 of file pcb-lfpw.c.

Boolean verbose = 0

Global for being verbose on logging of information.

Definition at line 80 of file pcb-lfpw.c.