Bump gEDA version
[geda-gaf.git] / gschem / src / actions.decl.h
blobf90ac5a049d9d5a20b4ebf24cc63e7f6f92f149e
1 /* gEDA - GPL Electronic Design Automation
2 * gschem - gEDA Schematic Capture
3 * Copyright (C) 1998-2010 Ales Hvezda
4 * Copyright (C) 1998-2020 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 /*! \file actions.decl.h
22 * \brief Generated action declarations.
24 * This file is preprocessed into actions.decl.x which contains
25 * variable declarations for the individual actions defined in
26 * actions.c. The resulting file looks like this:
28 * extern GschemAction *action_file_new;
29 * extern GschemAction *action_file_new_window;
30 * extern GschemAction *action_file_open;
31 * ...
33 * Source files which reference individual actions by name (e.g. in
34 * order to change their sensitivity) should include this file as
36 * #include "actions.decl.x"
38 * Don't include the un-processed file directly--this won't work.
41 #define DEFINE_ACTION(c_id, id, icon, name, label, menu_label, tooltip, type) \
42 KEEP_LINE extern GschemAction *action_ ## c_id;
43 #include "actions.c"
44 #undef DEFINE_ACTION