2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-04-19 22:54:24 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-04-19 22:54:24 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-04-19 22:54:24 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-04-19 22:54:24 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
|
|
|
|
|
|
|
#include "actions-types.h"
|
|
|
|
|
2008-08-22 23:33:02 +08:00
|
|
|
#include "core/gimp.h"
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
#include "widgets/gimpactiongroup.h"
|
|
|
|
|
|
|
|
#include "debug-actions.h"
|
2004-04-20 21:25:55 +08:00
|
|
|
#include "debug-commands.h"
|
2004-04-19 22:54:24 +08:00
|
|
|
|
2006-04-10 16:06:18 +08:00
|
|
|
|
2004-07-12 05:53:17 +08:00
|
|
|
#ifdef ENABLE_DEBUG_MENU
|
2004-04-19 22:54:24 +08:00
|
|
|
|
2006-04-10 16:06:18 +08:00
|
|
|
static const GimpActionEntry debug_actions[] =
|
2004-04-19 22:54:24 +08:00
|
|
|
{
|
2008-11-15 20:31:36 +08:00
|
|
|
{ "debug-menu", NULL, "_Debug" },
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
{ "debug-mem-profile", NULL,
|
2006-06-16 17:24:43 +08:00
|
|
|
"_Memory Profile", NULL, NULL,
|
2004-04-19 22:54:24 +08:00
|
|
|
G_CALLBACK (debug_mem_profile_cmd_callback),
|
|
|
|
NULL },
|
|
|
|
|
2008-10-21 01:21:21 +08:00
|
|
|
{ "debug-benchmark-projection", NULL,
|
2008-11-15 20:31:36 +08:00
|
|
|
"Benchmark _Projection", NULL,
|
2008-10-21 01:21:21 +08:00
|
|
|
"Invalidates the entire projection, measures the time it takes to "
|
|
|
|
"validate (render) it again, and print the result to stdout.",
|
|
|
|
G_CALLBACK (debug_benchmark_projection_cmd_callback),
|
|
|
|
NULL },
|
|
|
|
|
2009-02-24 04:43:30 +08:00
|
|
|
{ "debug-show-image-graph", NULL,
|
|
|
|
"Show Image _Graph", NULL,
|
|
|
|
"Creates a new image showing the GEGL graph of this image",
|
|
|
|
G_CALLBACK (debug_show_image_graph_cmd_callback),
|
|
|
|
NULL },
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
{ "debug-dump-items", NULL,
|
|
|
|
"_Dump Items", NULL, NULL,
|
|
|
|
G_CALLBACK (debug_dump_menus_cmd_callback),
|
2004-05-05 23:54:42 +08:00
|
|
|
NULL },
|
|
|
|
|
|
|
|
{ "debug-dump-managers", NULL,
|
|
|
|
"Dump _UI Managers", NULL, NULL,
|
|
|
|
G_CALLBACK (debug_dump_managers_cmd_callback),
|
2006-09-06 05:36:20 +08:00
|
|
|
NULL },
|
|
|
|
|
|
|
|
{ "debug-dump-attached-data", NULL,
|
|
|
|
"Dump Attached Data", NULL, NULL,
|
|
|
|
G_CALLBACK (debug_dump_attached_data_cmd_callback),
|
2004-04-19 22:54:24 +08:00
|
|
|
NULL }
|
|
|
|
};
|
|
|
|
|
2004-07-12 05:53:17 +08:00
|
|
|
#endif
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
void
|
2004-04-27 21:55:26 +08:00
|
|
|
debug_actions_setup (GimpActionGroup *group)
|
2004-04-19 22:54:24 +08:00
|
|
|
{
|
2004-07-12 05:53:17 +08:00
|
|
|
#ifdef ENABLE_DEBUG_MENU
|
2008-12-03 23:27:42 +08:00
|
|
|
gimp_action_group_add_actions (group, NULL,
|
2004-04-19 22:54:24 +08:00
|
|
|
debug_actions,
|
2004-04-27 21:55:26 +08:00
|
|
|
G_N_ELEMENTS (debug_actions));
|
2004-07-12 05:53:17 +08:00
|
|
|
#endif
|
2004-04-19 22:54:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
debug_actions_update (GimpActionGroup *group,
|
|
|
|
gpointer data)
|
|
|
|
{
|
|
|
|
}
|