pcb 4.1.1
An interactive printed circuit board layout editor.

gui-drc-window.h

Go to the documentation of this file.
00001 /*
00002  *                            COPYRIGHT
00003  *
00004  *  PCB, interactive printed circuit board design
00005  *  Copyright (C) 1994,1995,1996 Thomas Nau
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License along
00018  *  with this program; if not, write to the Free Software Foundation, Inc.,
00019  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00020  *
00021  *  Contact addresses for paper mail and Email:
00022  *  Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
00023  *  Thomas.Nau@rz.uni-ulm.de
00024  *
00025  */
00026 
00027 #ifndef PCB_HID_GTK_GUI_DRC_WINDOW_H
00028 #define PCB_HID_GTK_GUI_DRC_WINDOW_H
00029 
00030 
00031 #define GHID_TYPE_DRC_VIOLATION           (ghid_drc_violation_get_type())
00032 #define GHID_DRC_VIOLATION(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GHID_TYPE_DRC_VIOLATION, GhidDrcViolation))
00033 #define GHID_DRC_VIOLATION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass),  GHID_TYPE_DRC_VIOLATION, GhidDrcViolationClass))
00034 #define GHID_IS_DRC_VIOLATION(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GHID_TYPE_DRC_VIOLATION))
00035 #define GHID_DRC_VIOLATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),  GHID_TYPE_DRC_VIOLATION, GhidDrcViolationClass))
00036 
00037 typedef struct _GhidDrcViolationClass GhidDrcViolationClass;
00038 typedef struct _GhidDrcViolation GhidDrcViolation;
00039 
00040 
00041 struct _GhidDrcViolationClass
00042 {
00043   GObjectClass parent_class;
00044 };
00045 
00046 struct _GhidDrcViolation
00047 {
00048   GObject parent_instance;
00049 
00050   char *title;
00051   char *explanation;
00052   Coord x_coord;
00053   Coord y_coord;
00054   Angle angle;
00055   bool have_measured;
00056   Coord measured_value;
00057   Coord required_value;
00058   int object_count;
00059   long int *object_id_list;
00060   int *object_type_list;
00061   GdkDrawable *pixmap;
00062 };
00063 
00064 
00065 GType ghid_drc_violation_get_type (void);
00066 
00067 GhidDrcViolation *ghid_drc_violation_new (DrcViolationType *violation,
00068                                           GdkDrawable *pixmap);
00069 
00070 
00071 #define GHID_TYPE_VIOLATION_RENDERER           (ghid_violation_renderer_get_type())
00072 #define GHID_VIOLATION_RENDERER(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GHID_TYPE_VIOLATION_RENDERER, GhidViolationRenderer))
00073 #define GHID_VIOLATION_RENDERER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass),  GHID_TYPE_VIOLATION_RENDERER, GhidViolationRendererClass))
00074 #define GHID_IS_VIOLATION_RENDERER(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GHID_TYPE_VIOLATION_RENDERER))
00075 #define GHID_VIOLATION_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),  GHID_TYPE_VIOLATION_RENDERER, GhidViolationRendererClass))
00076 
00077 typedef struct _GhidViolationRendererClass GhidViolationRendererClass;
00078 typedef struct _GhidViolationRenderer GhidViolationRenderer;
00079 
00080 
00081 struct _GhidViolationRendererClass
00082 {
00083   GtkCellRendererTextClass parent_class;
00084 };
00085 
00086 struct _GhidViolationRenderer
00087 {
00088   GtkCellRendererText parent_instance;
00089 
00090   GhidDrcViolation *violation;
00091 };
00092 
00093 
00094 GType ghid_violation_renderer_get_type (void);
00095 
00096 GtkCellRenderer *ghid_violation_renderer_new (void);
00097 
00098 #endif /* PCB_HID_GTK_GUI_DRC_WINDOW_H */