Bump gEDA version
[geda-gaf.git] / gschem / src / actions.init.c
blob47e8edcc4719f0ff6b4988fa8f7594579bfeef49
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.init.c
22 * \brief Generated action initializations.
24 * This file is preprocessed into actions.init.x which contains a call
25 * to \ref gschem_action_register for each individual action defined
26 * in actions.c. The resulting file looks like this:
28 * action_file_new = gschem_action_register (
29 * "file-new",
30 * "gtk-new",
31 * _("New File"),
32 * _("New"),
33 * _("_New"),
34 * NULL,
35 * GSCHEM_ACTION_TYPE_ACTUATE,
36 * action_callback_file_new);
37 * ...
39 * actions.init.x should only be included once in the definition of
40 * \ref init_module_gschem_core_builtins.
43 #define DEFINE_ACTION(c_id, id, icon, name, label, menu_label, tooltip, type) \
44 KEEP_LINE \
45 action_ ## c_id = \
46 gschem_action_register (id, \
47 icon, \
48 name, \
49 label, \
50 menu_label, \
51 tooltip, \
52 GSCHEM_ACTION_TYPE_ ## type, \
53 action_callback_ ## c_id);
54 #include "actions.c"
55 #undef DEFINE_ACTION